Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c5f80f0

Browse files
committed
++
1 parent 1c34b80 commit c5f80f0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

impeller/aiks/canvas.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -901,14 +901,12 @@ static bool UseColorSourceContents(
901901
const std::shared_ptr<VerticesGeometry>& vertices,
902902
const Paint& paint) {
903903
// If there are no vertex color or texture coordinates. Or if there
904-
// are vertex coordinates then only if the contents are an image or
905-
// a solid color.
904+
// are vertex coordinates but its just a color.
906905
if (vertices->HasVertexColors()) {
907906
return false;
908907
}
909908
if (vertices->HasTextureCoordinates() &&
910-
(paint.color_source.GetType() == ColorSource::Type::kImage ||
911-
paint.color_source.GetType() == ColorSource::Type::kColor)) {
909+
(paint.color_source.GetType() == ColorSource::Type::kColor)) {
912910
return true;
913911
}
914912
return !vertices->HasTextureCoordinates();
@@ -928,8 +926,7 @@ void Canvas::DrawVertices(const std::shared_ptr<VerticesGeometry>& vertices,
928926
entity.SetTransform(GetCurrentTransform());
929927
entity.SetBlendMode(paint.blend_mode);
930928

931-
// If there are no vertex color or texture coordinates. Or if there
932-
// are vertex coordinates then only if the contents are an image.
929+
// If there are no vertex color or texture coordinates.
933930
if (UseColorSourceContents(vertices, paint)) {
934931
entity.SetContents(CreateContentsForGeometryWithFilters(paint, vertices));
935932
AddRenderEntityToCurrentPass(std::move(entity));

0 commit comments

Comments
 (0)