aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2014-11-13 14:05:58 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-13 14:05:58 -0800
commit112e7e277702e104357f2d44742253ee1b0109ac (patch)
treea26bbfb0c5d0a44f8dd852e72758dd3f46100dbd /include/core/SkDevice.h
parent975ae5e4b881d4df41fd06453a650d6312127c8d (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/SkDevice.h')
-rw-r--r--include/core/SkDevice.h8
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; }
/**