| OLD | NEW |
| 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/math_util.h" | 10 #include "cc/base/math_util.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 requires_clear_(other->requires_clear_), | 34 requires_clear_(other->requires_clear_), |
| 35 can_use_lcd_text_(can_use_lcd_text), | 35 can_use_lcd_text_(can_use_lcd_text), |
| 36 is_solid_color_(other->is_solid_color_), | 36 is_solid_color_(other->is_solid_color_), |
| 37 solid_color_(other->solid_color_), | 37 solid_color_(other->solid_color_), |
| 38 recorded_viewport_(other->recorded_viewport_), | 38 recorded_viewport_(other->recorded_viewport_), |
| 39 size_(other->size_), | 39 size_(other->size_), |
| 40 clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_), | 40 clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_), |
| 41 slow_down_raster_scale_factor_for_debug_( | 41 slow_down_raster_scale_factor_for_debug_( |
| 42 other->slow_down_raster_scale_factor_for_debug_), | 42 other->slow_down_raster_scale_factor_for_debug_), |
| 43 should_attempt_to_use_distance_field_text_(false), | 43 should_attempt_to_use_distance_field_text_(false), |
| 44 image_decode_controller_(nullptr) { | 44 image_decode_controller_(nullptr) {} |
| 45 } | |
| 46 | 45 |
| 47 RasterSource::RasterSource(const RasterSource* other, bool can_use_lcd_text) | 46 RasterSource::RasterSource(const RasterSource* other, bool can_use_lcd_text) |
| 48 : display_list_(other->display_list_), | 47 : display_list_(other->display_list_), |
| 49 painter_reported_memory_usage_(other->painter_reported_memory_usage_), | 48 painter_reported_memory_usage_(other->painter_reported_memory_usage_), |
| 50 background_color_(other->background_color_), | 49 background_color_(other->background_color_), |
| 51 requires_clear_(other->requires_clear_), | 50 requires_clear_(other->requires_clear_), |
| 52 can_use_lcd_text_(can_use_lcd_text), | 51 can_use_lcd_text_(can_use_lcd_text), |
| 53 is_solid_color_(other->is_solid_color_), | 52 is_solid_color_(other->is_solid_color_), |
| 54 solid_color_(other->solid_color_), | 53 solid_color_(other->solid_color_), |
| 55 recorded_viewport_(other->recorded_viewport_), | 54 recorded_viewport_(other->recorded_viewport_), |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 bool can_use_lcd_text = false; | 297 bool can_use_lcd_text = false; |
| 299 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); | 298 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); |
| 300 } | 299 } |
| 301 | 300 |
| 302 RasterSource::PlaybackSettings::PlaybackSettings() | 301 RasterSource::PlaybackSettings::PlaybackSettings() |
| 303 : playback_to_shared_canvas(false), | 302 : playback_to_shared_canvas(false), |
| 304 skip_images(false), | 303 skip_images(false), |
| 305 use_image_hijack_canvas(true) {} | 304 use_image_hijack_canvas(true) {} |
| 306 | 305 |
| 307 } // namespace cc | 306 } // namespace cc |
| OLD | NEW |