diff options
author | 2015-09-15 13:13:50 -0700 | |
---|---|---|
committer | 2015-09-15 13:13:50 -0700 | |
commit | 27b6335c71bccb96206ff0495793433bfa982777 (patch) | |
tree | 750282c33f8c895c0282bee6393943efbee51c60 /src/gpu/GrTextContext.cpp | |
parent | fb1e2fc8aa25b8c2ef0714c27cfcb1ee0f8f806b (diff) |
On gpu, use max(r,g,b) for coverage alpha in LCD and update lcd blend gm.
BUG=skia:
Review URL: https://codereview.chromium.org/1339213004
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r-- | src/gpu/GrTextContext.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp index be62619783..6ab730cdfa 100644 --- a/src/gpu/GrTextContext.cpp +++ b/src/gpu/GrTextContext.cpp @@ -79,11 +79,9 @@ void GrTextContext::drawPosText(GrDrawContext* dc, GrRenderTarget* rt, } bool GrTextContext::ShouldDisableLCD(const SkPaint& paint) { - if (paint.getShader() || - !SkXfermode::AsMode(paint.getXfermode(), nullptr) || + if (!SkXfermode::AsMode(paint.getXfermode(), nullptr) || paint.getMaskFilter() || paint.getRasterizer() || - paint.getColorFilter() || paint.getPathEffect() || paint.isFakeBoldText() || paint.getStyle() != SkPaint::kFill_Style) |