Chromium Code Reviews| Index: Source/platform/graphics/GraphicsContext.h |
| diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h |
| index add6d3c26e59a1e6324dce9fc15eb4094038e3fd..7c60ce6f1b25231fa5bbd321ff440209769d051a 100644 |
| --- a/Source/platform/graphics/GraphicsContext.h |
| +++ b/Source/platform/graphics/GraphicsContext.h |
| @@ -136,6 +136,12 @@ public: |
| void setShouldAntialias(bool antialias) { mutableState()->setShouldAntialias(antialias); } |
| bool shouldAntialias() const { return immutableState()->shouldAntialias(); } |
| + // Enables the use of the shouldAntialias flag for images. Note that this |
| + // only affects the (rasterized) image geometry, and not the quality of the |
| + // interpolation (for that, see setImageInterpolationQuality.) |
| + void enableDefaultAntialiasingForImages() { m_antialiasImages = true; } |
| + bool shouldAntialiasImages() const { return m_antialiasImages && shouldAntialias(); } |
|
Justin Novosad
2014/03/28 18:20:38
I think the name is a bit misleading. Perhaps: sho
fs
2014/03/31 08:21:11
Makes sense. Renamed accordingly.
It also occurre
|
| + |
| void setShouldClampToSourceRect(bool clampToSourceRect) { mutableState()->setShouldClampToSourceRect(clampToSourceRect); } |
| bool shouldClampToSourceRect() const { return immutableState()->shouldClampToSourceRect(); } |
| @@ -504,6 +510,7 @@ private: |
| bool m_accelerated : 1; |
| bool m_isCertainlyOpaque : 1; |
| bool m_printing : 1; |
| + bool m_antialiasImages : 1; |
| }; |
| } // namespace WebCore |