Index: cc/resources/picture.h |
diff --git a/cc/resources/picture.h b/cc/resources/picture.h |
index ec76f455555daaa773d5d450e074c6dd9a86fe06..a2a4ec2b65487880fbe573f0d410de5db40dba1d 100644 |
--- a/cc/resources/picture.h |
+++ b/cc/resources/picture.h |
@@ -18,6 +18,7 @@ |
#include "base/trace_event/trace_event.h" |
#include "cc/base/cc_export.h" |
#include "cc/base/region.h" |
+#include "cc/resources/recording_source.h" |
#include "skia/ext/refptr.h" |
#include "third_party/skia/include/core/SkPicture.h" |
#include "ui/gfx/geometry/rect.h" |
@@ -44,18 +45,12 @@ class CC_EXPORT Picture |
typedef std::vector<SkPixelRef*> PixelRefs; |
typedef base::hash_map<PixelRefMapKey, PixelRefs> PixelRefMap; |
- enum RecordingMode { |
- RECORD_NORMALLY, |
- RECORD_WITH_SK_NULL_CANVAS, |
- RECORD_WITH_PAINTING_DISABLED, |
- RECORDING_MODE_COUNT, // Must be the last entry. |
- }; |
- |
- static scoped_refptr<Picture> Create(const gfx::Rect& layer_rect, |
- ContentLayerClient* client, |
- const gfx::Size& tile_grid_size, |
- bool gather_pixels_refs, |
- RecordingMode recording_mode); |
+ static scoped_refptr<Picture> Create( |
+ const gfx::Rect& layer_rect, |
+ ContentLayerClient* client, |
+ const gfx::Size& tile_grid_size, |
+ bool gather_pixels_refs, |
+ RecordingSource::RecordingMode recording_mode); |
static scoped_refptr<Picture> CreateFromValue(const base::Value* value); |
static scoped_refptr<Picture> CreateFromSkpValue(const base::Value* value); |
@@ -141,7 +136,7 @@ class CC_EXPORT Picture |
// playback on a different thread this can only be called once. |
void Record(ContentLayerClient* client, |
const gfx::Size& tile_grid_size, |
- RecordingMode recording_mode); |
+ RecordingSource::RecordingMode recording_mode); |
// Gather pixel refs from recording. |
void GatherPixelRefs(const gfx::Size& tile_grid_info); |