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

Unified Diff: src/core/SkRecord.h

Issue 364823009: Port suitableForGpuRasterization to SkRecord (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More SkPicture.h cleanup 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 | « src/core/SkPictureRecorder.cpp ('k') | src/core/SkRecordAnalysis.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecord.h
diff --git a/src/core/SkRecord.h b/src/core/SkRecord.h
index 96da69b12ef8c150729c07c8e846fab5452cb1dc..e7ff37c6eb69fae93d19dc2d291de6236f1028c0 100644
--- a/src/core/SkRecord.h
+++ b/src/core/SkRecord.h
@@ -13,6 +13,15 @@
#include "SkTLogic.h"
#include "SkTemplates.h"
+struct SkRecordAnalysis {
+ SkRecordAnalysis()
+ : fWillPlaybackBitmaps(false)
+ , fSuitableForGpuRasterization(false) { }
+
+ bool fWillPlaybackBitmaps;
+ bool fSuitableForGpuRasterization;
+};
+
// SkRecord (REC-ord) represents a sequence of SkCanvas calls, saved for future use.
// These future uses may include: replay, optimization, serialization, or combinations of those.
//
@@ -110,6 +119,8 @@ public:
return fRecords[i].set(this->allocCommand<T>());
}
+ SkRecordAnalysis fAccelerationInfo;
mtklein 2014/08/18 16:34:58 Let's keep this parallel to SkRecord like fWillPla
tomhudson 2014/08/18 16:58:47 (This was intended to be a private member with acc
+
private:
// Implementation notes!
//
« no previous file with comments | « src/core/SkPictureRecorder.cpp ('k') | src/core/SkRecordAnalysis.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698