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

Commit de53ba5

Browse files
brianosmanSkia Commit-Bot
authored andcommitted
Just use paint color as text blob color
Change-Id: I075e5929257f361c9badf0afb26cd8d30b152a20 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306851 Reviewed-by: Jim Van Verth <jvanverth@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
1 parent 5f2b2d6 commit de53ba5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/gpu/text/GrTextBlob.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,16 +298,7 @@ static SkPMColor4f calculate_colors(GrRenderTargetContext* rtc,
298298
return SK_PMColor4fWHITE;
299299
} else {
300300
SkPaintToGrPaint(rContext, colorInfo, paint, matrix, grPaint);
301-
302-
// Calculate the drawing color.
303-
SkColor4f c = paint.getColor4f();
304-
if (auto* xform = colorInfo.colorSpaceXformFromSRGB()) {
305-
c = xform->apply(c);
306-
}
307-
if (auto* cf = paint.getColorFilter()) {
308-
c = cf->filterColor4f(c, colorInfo.colorSpace(), colorInfo.colorSpace());
309-
}
310-
return c.premul();
301+
return grPaint->getColor4f();
311302
}
312303
}
313304

0 commit comments

Comments
 (0)