Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: include/core/SkDevice.h

Issue 718913003: Observe surface LCD settings in SkBaseDevice::drawTextBlob() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: adopting Mike's comment Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index d9354491c08ff57a2f39610cbccd88f7e931c68b..43cb32c8c92574f0ed44fd0cc2ee111752f36f5b 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; }
/**
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698