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

Side by Side 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: remove recoding_source_ from PictureLayer, and move all its internal state 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/playback/raster_source.h" 5 #include "cc/playback/raster_source.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/base/region.h" 10 #include "cc/base/region.h"
(...skipping 22 matching lines...) Expand all
33 requires_clear_(other->requires_clear_), 33 requires_clear_(other->requires_clear_),
34 can_use_lcd_text_(can_use_lcd_text), 34 can_use_lcd_text_(can_use_lcd_text),
35 is_solid_color_(other->is_solid_color_), 35 is_solid_color_(other->is_solid_color_),
36 solid_color_(other->solid_color_), 36 solid_color_(other->solid_color_),
37 recorded_viewport_(other->recorded_viewport_), 37 recorded_viewport_(other->recorded_viewport_),
38 size_(other->size_), 38 size_(other->size_),
39 clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_), 39 clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_),
40 slow_down_raster_scale_factor_for_debug_( 40 slow_down_raster_scale_factor_for_debug_(
41 other->slow_down_raster_scale_factor_for_debug_), 41 other->slow_down_raster_scale_factor_for_debug_),
42 should_attempt_to_use_distance_field_text_(false), 42 should_attempt_to_use_distance_field_text_(false),
43 image_decode_controller_(nullptr) { 43 image_decode_controller_(nullptr) {}
44 }
45 44
46 RasterSource::RasterSource(const RasterSource* other, bool can_use_lcd_text) 45 RasterSource::RasterSource(const RasterSource* other, bool can_use_lcd_text)
47 : display_list_(other->display_list_), 46 : display_list_(other->display_list_),
48 painter_reported_memory_usage_(other->painter_reported_memory_usage_), 47 painter_reported_memory_usage_(other->painter_reported_memory_usage_),
49 background_color_(other->background_color_), 48 background_color_(other->background_color_),
50 requires_clear_(other->requires_clear_), 49 requires_clear_(other->requires_clear_),
51 can_use_lcd_text_(can_use_lcd_text), 50 can_use_lcd_text_(can_use_lcd_text),
52 is_solid_color_(other->is_solid_color_), 51 is_solid_color_(other->is_solid_color_),
53 solid_color_(other->solid_color_), 52 solid_color_(other->solid_color_),
54 recorded_viewport_(other->recorded_viewport_), 53 recorded_viewport_(other->recorded_viewport_),
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 DCHECK(image_decode_controller); 300 DCHECK(image_decode_controller);
302 image_decode_controller_ = image_decode_controller; 301 image_decode_controller_ = image_decode_controller;
303 } 302 }
304 303
305 RasterSource::PlaybackSettings::PlaybackSettings() 304 RasterSource::PlaybackSettings::PlaybackSettings()
306 : playback_to_shared_canvas(false), 305 : playback_to_shared_canvas(false),
307 skip_images(false), 306 skip_images(false),
308 use_image_hijack_canvas(true) {} 307 use_image_hijack_canvas(true) {}
309 308
310 } // namespace cc 309 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698