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

Unified Diff: include/core/SkPicture.h

Issue 251533004: First pass at GPU veto (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 8 months 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/SkPicture.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
===================================================================
--- include/core/SkPicture.h (revision 14349)
+++ include/core/SkPicture.h (working copy)
@@ -364,6 +364,28 @@
SkAutoTUnref<SkPathHeap> fPathHeap; // reference counted
+ enum ContentFlags {
+ /**
+ * These flags continue SkPictInfo's chain since they are stored
+ * in the SkPicture header (temporarily).
+ */
robertphillips 2014/04/24 18:04:07 SkPictInfo is in src\core\SkPicturePlayback.h. Don
bsalomon 2014/04/24 18:20:52 4 << 1?
robertphillips 2014/04/24 18:27:27 New version should address this.
+ kFirstBit = (/*SkPictInfo::kLastPublic_Flag*/ 4 << 1),
+
+ /**
+ * This picture has at least one paint with a PathEffect
+ */
+ kHasPathEffects_ContentFlag = kFirstBit,
bsalomon 2014/04/24 18:20:52 Hm... It seems more flexible to count things rathe
+ };
+
+ uint32_t fContentFlags;
+
+ void setHasPathEffects() {
+ fContentFlags |= kHasPathEffects_ContentFlag;
+ }
+ bool getHasPathEffects() const {
+ return SkToBool(fContentFlags & kHasPathEffects_ContentFlag);
+ }
+
const SkPath& getPath(int index) const;
int addPathToHeap(const SkPath& path);
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698