This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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));
You can’t perform that action at this time.
0 commit comments