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

Unified Diff: include/core/SkCanvas.h

Issue 1513513002: try adding flag to allow lcd text even in a layer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: hobgoblins Created 5 years 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 | « gm/lcdtext.cpp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index cd6421beb184c75c7879aac2ecc9e10e1504a6e1..33d565c0a186bbcf40df69f1be8b95e4bfb8b4a9 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -336,6 +336,13 @@ public:
return this->saveLayer(&bounds, paint);
}
+ /**
+ * Temporary name.
+ * Will allow any requests for LCD text to be respected, so the caller must be careful to
+ * only draw on top of opaque sections of the layer to get good results.
+ */
+ int saveLayerPreserveLCDTextRequests(const SkRect* bounds, const SkPaint* paint);
+
/** DEPRECATED - use saveLayer(const SkRect*, const SkPaint*) instead.
This behaves the same as saveLayer(const SkRect*, const SkPaint*),
@@ -1316,6 +1323,11 @@ protected:
const SkImageFilter* imageFilter = NULL);
private:
+ enum PrivateSaveFlags {
+ // These must not overlap the public flags.
+ kPreserveLCDText_PrivateSaveFlag = 1 << 5,
+ };
+
enum ShaderOverrideOpacity {
kNone_ShaderOverrideOpacity, //!< there is no overriding shader (bitmap or image)
kOpaque_ShaderOverrideOpacity, //!< the overriding shader is opaque
« no previous file with comments | « gm/lcdtext.cpp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698