mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add patch for V8 build rules R=qsr@chromium.org Review URL: https://codereview.chromium.org/816543004
16 lines
906 B
Plaintext
16 lines
906 B
Plaintext
--- platform/graphics/GraphicsContext.h
|
|
+++ platform/graphics/GraphicsContext.h
|
|
@@ -155,11 +155,10 @@
|
|
// FIXME: the setter is only used once, at construction time; convert to a constructor param,
|
|
// and possibly consolidate with other flags (paintDisabled, isPrinting, ...)
|
|
void setShouldSmoothFonts(bool smoothFonts) { m_shouldSmoothFonts = smoothFonts; }
|
|
- bool shouldSmoothFonts() const { return m_shouldSmoothFonts; }
|
|
|
|
// Turn off LCD text for the paint if not supported on this context.
|
|
void adjustTextRenderMode(SkPaint*) const;
|
|
- bool couldUseLCDRenderedText() const;
|
|
+ bool couldUseLCDRenderedText() const { return m_isCertainlyOpaque && m_shouldSmoothFonts; }
|
|
|
|
void setTextDrawingMode(TextDrawingModeFlags mode) { mutableState()->setTextDrawingMode(mode); }
|
|
TextDrawingModeFlags textDrawingMode() const { return immutableState()->textDrawingMode(); }
|