Chromium Code Reviews| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 295 bool can_use_lcd_text = false; | 295 bool can_use_lcd_text = false; |
| 296 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); | 296 return scoped_refptr<RasterSource>(new RasterSource(this, can_use_lcd_text)); |
| 297 } | 297 } |
| 298 | 298 |
| 299 void RasterSource::SetImageDecodeController( | 299 void RasterSource::SetImageDecodeController( |
| 300 ImageDecodeController* image_decode_controller) { | 300 ImageDecodeController* image_decode_controller) { |
| 301 DCHECK(image_decode_controller); | 301 DCHECK(image_decode_controller); |
| 302 image_decode_controller_ = image_decode_controller; | 302 image_decode_controller_ = image_decode_controller; |
| 303 } | 303 } |
| 304 | 304 |
| 305 ImageDecodeController* RasterSource::GetImageDecodeController() const { | |
|
vmpstr
2016/07/14 21:41:53
You can just inline this and call it image_decode_
ericrk
2016/07/14 22:04:20
Sure, updated set_... as well.
| |
| 306 return image_decode_controller_; | |
| 307 } | |
| 308 | |
| 305 RasterSource::PlaybackSettings::PlaybackSettings() | 309 RasterSource::PlaybackSettings::PlaybackSettings() |
| 306 : playback_to_shared_canvas(false), | 310 : playback_to_shared_canvas(false), |
| 307 skip_images(false), | 311 skip_images(false), |
| 308 use_image_hijack_canvas(true) {} | 312 use_image_hijack_canvas(true) {} |
| 309 | 313 |
| 310 } // namespace cc | 314 } // namespace cc |
| OLD | NEW |