OLD | NEW |
(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(); } |
OLD | NEW |