aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextContext.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-09-15 13:13:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-15 13:13:50 -0700
commit27b6335c71bccb96206ff0495793433bfa982777 (patch)
tree750282c33f8c895c0282bee6393943efbee51c60 /src/gpu/GrTextContext.cpp
parentfb1e2fc8aa25b8c2ef0714c27cfcb1ee0f8f806b (diff)
On gpu, use max(r,g,b) for coverage alpha in LCD and update lcd blend gm.
Diffstat (limited to 'src/gpu/GrTextContext.cpp')
-rw-r--r--src/gpu/GrTextContext.cpp4
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)