| 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/region.h" | 10 #include "cc/base/region.h" |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 bool RasterSource::CanUseLCDText() const { | 301 bool RasterSource::CanUseLCDText() const { |
| 302 return can_use_lcd_text_; | 302 return can_use_lcd_text_; |
| 303 } | 303 } |
| 304 | 304 |
| 305 scoped_refptr<RasterSource> RasterSource::CreateCloneWithoutLCDText() const { | 305 scoped_refptr<RasterSource> RasterSource::CreateCloneWithoutLCDText() const { |
| 306 bool can_use_lcd_text = false; | 306 bool can_use_lcd_text = false; |
| 307 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); | 307 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void RasterSource::SetImageDecodeController( | |
| 311 ImageDecodeController* image_decode_controller) { | |
| 312 DCHECK(image_decode_controller); | |
| 313 image_decode_controller_ = image_decode_controller; | |
| 314 } | |
| 315 | |
| 316 RasterSource::PlaybackSettings::PlaybackSettings() | 310 RasterSource::PlaybackSettings::PlaybackSettings() |
| 317 : playback_to_shared_canvas(false), | 311 : playback_to_shared_canvas(false), |
| 318 skip_images(false), | 312 skip_images(false), |
| 319 use_image_hijack_canvas(true) {} | 313 use_image_hijack_canvas(true) {} |
| 320 | 314 |
| 321 } // namespace cc | 315 } // namespace cc |
| OLD | NEW |