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

Unified Diff: cc/playback/raster_source.cc

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep RecordingSource, move three members to PictureLayer 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.cc
diff --git a/cc/playback/raster_source.cc b/cc/playback/raster_source.cc
index d464779c3fef57ee577b1e2c3df8783826dea5dd..ed625d5f265ceddcdde193aba638cf055fd850a3 100644
--- a/cc/playback/raster_source.cc
+++ b/cc/playback/raster_source.cc
@@ -22,26 +22,34 @@ namespace cc {
scoped_refptr<RasterSource> RasterSource::CreateFromRecordingSource(
const RecordingSource* other,
- bool can_use_lcd_text) {
- return make_scoped_refptr(new RasterSource(other, can_use_lcd_text));
+ bool can_use_lcd_text,
+ const gfx::Rect& recorded_viewport,
+ const scoped_refptr<DisplayItemList>& display_list,
+ const size_t& painter_reported_memory_usage) {
+ return make_scoped_refptr(new RasterSource(other, can_use_lcd_text,
+ recorded_viewport, display_list,
+ painter_reported_memory_usage));
}
-RasterSource::RasterSource(const RecordingSource* other, bool can_use_lcd_text)
- : display_list_(other->display_list_),
- painter_reported_memory_usage_(other->painter_reported_memory_usage_),
+RasterSource::RasterSource(const RecordingSource* other,
+ bool can_use_lcd_text,
+ const gfx::Rect& recorded_viewport,
+ const scoped_refptr<DisplayItemList>& display_list,
+ const size_t& painter_reported_memory_usage)
+ : display_list_(display_list),
+ painter_reported_memory_usage_(painter_reported_memory_usage),
background_color_(other->background_color_),
requires_clear_(other->requires_clear_),
can_use_lcd_text_(can_use_lcd_text),
is_solid_color_(other->is_solid_color_),
solid_color_(other->solid_color_),
- recorded_viewport_(other->recorded_viewport_),
+ recorded_viewport_(recorded_viewport),
size_(other->size_),
clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_),
slow_down_raster_scale_factor_for_debug_(
other->slow_down_raster_scale_factor_for_debug_),
should_attempt_to_use_distance_field_text_(false),
- image_decode_controller_(nullptr) {
-}
+ image_decode_controller_(nullptr) {}
RasterSource::RasterSource(const RasterSource* other, bool can_use_lcd_text)
: display_list_(other->display_list_),

Powered by Google App Engine
This is Rietveld 408576698