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

Unified Diff: include/core/SkPicture.h

Issue 1135363002: Defer execution of SkPicture::Analysis::Analysis Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 88dfdf106678683adb263efaf9f76bb9274f68a8..32adb598450ef9ec05b75faef0f174d8b362e897 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -168,7 +168,7 @@ public:
*/
#if SK_SUPPORT_GPU
- bool suitableForGpuRasterization(GrContext*, const char ** = NULL) const;
+ bool suitableForGpuRasterization(GrContext*, const char ** = NULL);
#endif
/** Return the approximate number of operations in this picture. This
@@ -288,11 +288,14 @@ private:
Analysis() {} // Only used by SkPictureData codepath.
explicit Analysis(const SkRecord&);
+ bool isAnalyzed() const {return fIsAnalyzed;}
+ void performAnalysis(const SkRecord&);
bool suitableForGpuRasterization(const char** reason, int sampleCount) const;
uint8_t fNumSlowPathsAndDashEffects;
bool fWillPlaybackBitmaps : 1;
bool fHasText : 1;
+ bool fIsAnalyzed : 1;
} fAnalysis;
friend class SkPictureRecorder; // SkRecord-based constructor.
« 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