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

Unified Diff: cc/resources/picture.h

Issue 225023031: Hack SkRecord in as an alternate recording mode in cc/resources/picture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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 | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index 26d106b0daae5b7e9d7d5c2c0b8d49dd3dbba8a6..4761ca629a682b15f323257698bd8e86e2078548 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -22,6 +22,7 @@
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkBBHFactory.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "third_party/skia/include/record/SkRecording.h"
#include "ui/gfx/rect.h"
class SkPixelRef;
@@ -49,6 +50,7 @@ class CC_EXPORT Picture
RECORD_NORMALLY,
RECORD_WITH_SK_NULL_CANVAS,
RECORD_WITH_PAINTING_DISABLED,
+ RECORD_WITH_SKRECORD,
RECORDING_MODE_COUNT, // Must be the last entry.
};
@@ -156,6 +158,7 @@ class CC_EXPORT Picture
gfx::Rect layer_rect_;
gfx::Rect opaque_rect_;
skia::RefPtr<SkPicture> picture_;
+ scoped_ptr<const EXPERIMENTAL::SkPlayback> playback_;
typedef std::vector<scoped_refptr<Picture> > PictureVector;
PictureVector clones_;
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698