Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: src/gpu/GrTextContext.cpp

Issue 1313623002: Add support for blending of LCD for all blend modes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() ||

Powered by Google App Engine
This is Rietveld 408576698