Index: src/gpu/GrTextContext.cpp |
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp |
index 92a851bc5a59765542ce1a770671d37844f81657..300f55594ce1a22abe55be4e2ca3b252274bc51b 100644 |
--- a/src/gpu/GrTextContext.cpp |
+++ b/src/gpu/GrTextContext.cpp |
@@ -79,8 +79,9 @@ void GrTextContext::drawPosText(GrDrawContext* dc, GrRenderTarget* rt, |
} |
bool GrTextContext::ShouldDisableLCD(const SkPaint& paint) { |
robertphillips
2015/09/03 13:28:41
Can't we just pass nullptr to AsMode ?
egdaniel
2015/09/03 13:50:38
Oh yeah, i originally had null here, then changed
|
+ SkXfermode::Mode mode; |
if (paint.getShader() || |
- !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode) || |
+ !SkXfermode::AsMode(paint.getXfermode(), &mode) || |
paint.getMaskFilter() || |
paint.getRasterizer() || |
paint.getColorFilter() || |