Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 129 | 129 |
| 130 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); } | 130 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); } |
| 131 | 131 |
| 132 FloatRect getClipBounds() const; | 132 FloatRect getClipBounds() const; |
| 133 bool getTransformedClipBounds(FloatRect* bounds) const; | 133 bool getTransformedClipBounds(FloatRect* bounds) const; |
| 134 SkMatrix getTotalMatrix() const; | 134 SkMatrix getTotalMatrix() const; |
| 135 | 135 |
| 136 void setShouldAntialias(bool antialias) { mutableState()->setShouldAntialias (antialias); } | 136 void setShouldAntialias(bool antialias) { mutableState()->setShouldAntialias (antialias); } |
| 137 bool shouldAntialias() const { return immutableState()->shouldAntialias(); } | 137 bool shouldAntialias() const { return immutableState()->shouldAntialias(); } |
| 138 | 138 |
| 139 // Enables the use of the shouldAntialias flag for images. Note that this | |
| 140 // only affects the (rasterized) image geometry, and not the quality of the | |
| 141 // interpolation (for that, see setImageInterpolationQuality.) | |
| 142 void enableDefaultAntialiasingForImages() { m_antialiasImages = true; } | |
| 143 bool shouldAntialiasImages() const { return m_antialiasImages && shouldAntia lias(); } | |
|
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
| |
| 144 | |
| 139 void setShouldClampToSourceRect(bool clampToSourceRect) { mutableState()->se tShouldClampToSourceRect(clampToSourceRect); } | 145 void setShouldClampToSourceRect(bool clampToSourceRect) { mutableState()->se tShouldClampToSourceRect(clampToSourceRect); } |
| 140 bool shouldClampToSourceRect() const { return immutableState()->shouldClampT oSourceRect(); } | 146 bool shouldClampToSourceRect() const { return immutableState()->shouldClampT oSourceRect(); } |
| 141 | 147 |
| 142 void setShouldSmoothFonts(bool smoothFonts) { mutableState()->setShouldSmoot hFonts(smoothFonts); } | 148 void setShouldSmoothFonts(bool smoothFonts) { mutableState()->setShouldSmoot hFonts(smoothFonts); } |
| 143 bool shouldSmoothFonts() const { return immutableState()->shouldSmoothFonts( ); } | 149 bool shouldSmoothFonts() const { return immutableState()->shouldSmoothFonts( ); } |
| 144 | 150 |
| 145 // Turn off LCD text for the paint if not supported on this context. | 151 // Turn off LCD text for the paint if not supported on this context. |
| 146 void adjustTextRenderMode(SkPaint*); | 152 void adjustTextRenderMode(SkPaint*); |
| 147 bool couldUseLCDRenderedText(); | 153 bool couldUseLCDRenderedText(); |
| 148 | 154 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 497 bool m_trackTextRegion : 1; | 503 bool m_trackTextRegion : 1; |
| 498 SkRect m_textRegion; | 504 SkRect m_textRegion; |
| 499 | 505 |
| 500 // Are we on a high DPI display? If so, spelling and grammar markers are lar ger. | 506 // Are we on a high DPI display? If so, spelling and grammar markers are lar ger. |
| 501 bool m_useHighResMarker : 1; | 507 bool m_useHighResMarker : 1; |
| 502 // FIXME: Make this go away: crbug.com/236892 | 508 // FIXME: Make this go away: crbug.com/236892 |
| 503 bool m_updatingControlTints : 1; | 509 bool m_updatingControlTints : 1; |
| 504 bool m_accelerated : 1; | 510 bool m_accelerated : 1; |
| 505 bool m_isCertainlyOpaque : 1; | 511 bool m_isCertainlyOpaque : 1; |
| 506 bool m_printing : 1; | 512 bool m_printing : 1; |
| 513 bool m_antialiasImages : 1; | |
| 507 }; | 514 }; |
| 508 | 515 |
| 509 } // namespace WebCore | 516 } // namespace WebCore |
| 510 | 517 |
| 511 #endif // GraphicsContext_h | 518 #endif // GraphicsContext_h |
| OLD | NEW |