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

Unified Diff: cc/playback/raster_source.h

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 5 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: cc/playback/raster_source.h
diff --git a/cc/playback/raster_source.h b/cc/playback/raster_source.h
index c50c4a0f626a4bdf2e38864d3d910ccf65822b0e..63edd55696cf6065230adcceefcd7c7f3dbf3e75 100644
--- a/cc/playback/raster_source.h
+++ b/cc/playback/raster_source.h
@@ -13,7 +13,7 @@
#include "base/macros.h"
#include "cc/base/cc_export.h"
#include "cc/debug/rendering_stats_instrumentation.h"
-#include "cc/playback/recording_source.h"
+#include "cc/layers/picture_layer.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/core/SkPicture.h"
@@ -39,8 +39,9 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
bool use_image_hijack_canvas;
};
- static scoped_refptr<RasterSource> CreateFromRecordingSource(
- const RecordingSource* other,
+ static scoped_refptr<RasterSource> CreateFromDataStruct(
+ const PictureLayerData& layer_data,
+ const ContentLayerClientData& client_data,
bool can_use_lcd_text);
// TODO(trchen): Deprecated.
@@ -121,7 +122,9 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
protected:
friend class base::RefCountedThreadSafe<RasterSource>;
- RasterSource(const RecordingSource* other, bool can_use_lcd_text);
+ RasterSource(const PictureLayerData& layer_data,
+ const ContentLayerClientData& client_data,
+ bool can_use_lcd_text);
RasterSource(const RasterSource* other, bool can_use_lcd_text);
virtual ~RasterSource();

Powered by Google App Engine
This is Rietveld 408576698