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

Side by Side Diff: sky/engine/platform/graphics/GraphicsContext.h.rej

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 --- platform/graphics/GraphicsContext.h
2 +++ platform/graphics/GraphicsContext.h
3 @@ -155,11 +155,10 @@
4 // FIXME: the setter is only used once, at construction time; convert to a constructor param,
5 // and possibly consolidate with other flags (paintDisabled, isPrinting, .. .)
6 void setShouldSmoothFonts(bool smoothFonts) { m_shouldSmoothFonts = smoothF onts; }
7 - bool shouldSmoothFonts() const { return m_shouldSmoothFonts; }
8
9 // Turn off LCD text for the paint if not supported on this context.
10 void adjustTextRenderMode(SkPaint*) const;
11 - bool couldUseLCDRenderedText() const;
12 + bool couldUseLCDRenderedText() const { return m_isCertainlyOpaque && m_shou ldSmoothFonts; }
13
14 void setTextDrawingMode(TextDrawingModeFlags mode) { mutableState()->setTex tDrawingMode(mode); }
15 TextDrawingModeFlags textDrawingMode() const { return immutableState()->tex tDrawingMode(); }
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/GraphicsContext.h.orig ('k') | sky/engine/platform/graphics/GraphicsContextRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698