diff options
author | fmalita <fmalita@chromium.org> | 2014-11-13 14:05:58 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-13 14:05:58 -0800 |
commit | 112e7e277702e104357f2d44742253ee1b0109ac (patch) | |
tree | a26bbfb0c5d0a44f8dd852e72758dd3f46100dbd /include/core | |
parent | 975ae5e4b881d4df41fd06453a650d6312127c8d (diff) |
Observe surface LCD settings in SkBaseDevice::drawTextBlob()
We're currently overwriting the paint LCD text flag based on the the run
font data => this cancels any LCD filtering we might have performed
higher up the stack.
BUG=423362
R=reed@google.com
Review URL: https://codereview.chromium.org/718913003
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkDevice.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index d9354491c0..43cb32c8c9 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -117,8 +117,6 @@ public: #endif }; - bool shouldDisableLCD(const SkPaint&) const; - protected: enum Usage { kGeneral_Usage, @@ -130,6 +128,12 @@ protected: uint32_t fFlags; // SkPaint::getFlags() }; + /** + * Returns the text-related flags, possibly modified based on the state of the + * device (e.g. support for LCD). + */ + uint32_t filterTextFlags(const SkPaint&) const; + virtual bool onShouldDisableLCD(const SkPaint&) const { return false; } /** |