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

Unified Diff: include/core/SkPicture.h

Issue 364823009: Port suitableForGpuRasterization to SkRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reed review complete Created 6 years, 4 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 | « gyp/core.gypi ('k') | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index e3b33e9438618267b865e0e264e1c46919ab7843..4b65caab7ce35aaf899754471dd60f0ea6a36cd0 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -197,6 +197,7 @@ public:
// Takes ref on listener.
void addDeletionListener(DeletionListener* listener) const;
+
private:
// V2 : adds SkPixelRef's generation ID.
// V3 : PictInfo tag at beginning, and EOF tag at the end
@@ -293,7 +294,18 @@ private:
SkAutoTDelete<SkRecord> fRecord;
SkAutoTUnref<SkBBoxHierarchy> fBBH;
- bool fRecordWillPlayBackBitmaps; // TODO: const
+
+ struct Analysis {
+ Analysis()
+ : fWillPlaybackBitmaps(false)
+ , fSuitableForGpuRasterization(false) { }
+ Analysis(const SkRecord&);
+
+ bool fWillPlaybackBitmaps;
+ bool fSuitableForGpuRasterization;
+ };
mtklein 2014/08/18 19:22:14 if you're feeling super snazzy } const fAnalysis;
tomhudson 2014/08/18 21:37:00 Done.
+
+ const Analysis fAnalysis;
};
#endif
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698