| Index: Source/platform/graphics/GraphicsContext.h
|
| diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
|
| index 87aa504bbcf46a6a0f6bab6fe324f17cd5443f35..c96948a8395648716aa7195a0d0e51042d9732ef 100644
|
| --- a/Source/platform/graphics/GraphicsContext.h
|
| +++ b/Source/platform/graphics/GraphicsContext.h
|
| @@ -161,8 +161,10 @@ public:
|
| void setShouldClampToSourceRect(bool clampToSourceRect) { mutableState()->setShouldClampToSourceRect(clampToSourceRect); }
|
| bool shouldClampToSourceRect() const { return immutableState()->shouldClampToSourceRect(); }
|
|
|
| - void setShouldSmoothFonts(bool smoothFonts) { mutableState()->setShouldSmoothFonts(smoothFonts); }
|
| - bool shouldSmoothFonts() const { return immutableState()->shouldSmoothFonts(); }
|
| + // 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*);
|
| @@ -535,6 +537,7 @@ private:
|
| bool m_isCertainlyOpaque : 1;
|
| bool m_printing : 1;
|
| bool m_antialiasHairlineImages : 1;
|
| + bool m_shouldSmoothFonts : 1;
|
| };
|
|
|
| } // namespace blink
|
|
|