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

Unified Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 551183005: [TextBlob] Fix LCD text handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: pass a bool instead of a GC Created 6 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
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.cpp
diff --git a/Source/platform/graphics/GraphicsContext.cpp b/Source/platform/graphics/GraphicsContext.cpp
index f40f5c98a3d134f14998cef88eab492597ef62f7..0f15c1dea38969b7375b9f66ee024899f61e475a 100644
--- a/Source/platform/graphics/GraphicsContext.cpp
+++ b/Source/platform/graphics/GraphicsContext.cpp
@@ -378,7 +378,7 @@ SkMatrix GraphicsContext::getTotalMatrix() const
return totalMatrix;
}
-void GraphicsContext::adjustTextRenderMode(SkPaint* paint)
+void GraphicsContext::adjustTextRenderMode(SkPaint* paint) const
{
if (contextDisabled())
return;
@@ -389,7 +389,7 @@ void GraphicsContext::adjustTextRenderMode(SkPaint* paint)
paint->setLCDRenderText(couldUseLCDRenderedText());
}
-bool GraphicsContext::couldUseLCDRenderedText()
+bool GraphicsContext::couldUseLCDRenderedText() const
{
// Our layers only have a single alpha channel. This means that subpixel
// rendered text cannot be composited correctly when the layer is
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698