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

Unified Diff: include/record/SkRecording.h

Issue 366443002: Implement SkRecord::willPlaybackBitmaps, cache in SkPicture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add header to gypi Created 6 years, 6 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
Index: include/record/SkRecording.h
diff --git a/include/record/SkRecording.h b/include/record/SkRecording.h
index a4e8809c3a3f5ad2327de3dcf328e2fa217673e5..e9aca78688b2208112d0e388bfeeee0f87c8e31f 100644
--- a/include/record/SkRecording.h
+++ b/include/record/SkRecording.h
@@ -44,10 +44,13 @@ public:
// Draw recorded commands into a canvas.
void draw(SkCanvas*) const;
+ bool willPlaybackBitmaps() const { return fWillPlaybackBitmaps; }
mtklein 2014/07/01 18:58:01 This file and all its classes will be deleted. I
mtklein 2014/07/01 19:02:23 Alternatively, we can do it proactively in SkPictu
tomhudson 2014/07/02 15:25:41 Done.
+
private:
explicit SkPlayback(const SkRecord*);
SkAutoTDelete<const SkRecord> fRecord;
+ bool fWillPlaybackBitmaps;
friend class SkRecording;
};
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkRecordAnalysis.h » ('j') | tests/RecordTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698