| 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/raster/raster_source.h" | 5 #include "cc/raster/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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 return false; | 276 return false; |
| 277 gfx::Rect bounded_rect = layer_rect; | 277 gfx::Rect bounded_rect = layer_rect; |
| 278 bounded_rect.Intersect(gfx::Rect(size_)); | 278 bounded_rect.Intersect(gfx::Rect(size_)); |
| 279 return recorded_viewport_.Contains(bounded_rect); | 279 return recorded_viewport_.Contains(bounded_rect); |
| 280 } | 280 } |
| 281 | 281 |
| 282 gfx::Size RasterSource::GetSize() const { | 282 gfx::Size RasterSource::GetSize() const { |
| 283 return size_; | 283 return size_; |
| 284 } | 284 } |
| 285 | 285 |
| 286 bool RasterSource::HasNonSRGBContent() const { |
| 287 return display_list_->HasNonSRGBContent(); |
| 288 } |
| 289 |
| 286 bool RasterSource::IsSolidColor() const { | 290 bool RasterSource::IsSolidColor() const { |
| 287 return is_solid_color_; | 291 return is_solid_color_; |
| 288 } | 292 } |
| 289 | 293 |
| 290 SkColor RasterSource::GetSolidColor() const { | 294 SkColor RasterSource::GetSolidColor() const { |
| 291 DCHECK(IsSolidColor()); | 295 DCHECK(IsSolidColor()); |
| 292 return solid_color_; | 296 return solid_color_; |
| 293 } | 297 } |
| 294 | 298 |
| 295 bool RasterSource::HasRecordings() const { | 299 bool RasterSource::HasRecordings() const { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 325 use_image_hijack_canvas(true) {} | 329 use_image_hijack_canvas(true) {} |
| 326 | 330 |
| 327 RasterSource::PlaybackSettings::PlaybackSettings(const PlaybackSettings&) = | 331 RasterSource::PlaybackSettings::PlaybackSettings(const PlaybackSettings&) = |
| 328 default; | 332 default; |
| 329 | 333 |
| 330 RasterSource::PlaybackSettings::PlaybackSettings(PlaybackSettings&&) = default; | 334 RasterSource::PlaybackSettings::PlaybackSettings(PlaybackSettings&&) = default; |
| 331 | 335 |
| 332 RasterSource::PlaybackSettings::~PlaybackSettings() = default; | 336 RasterSource::PlaybackSettings::~PlaybackSettings() = default; |
| 333 | 337 |
| 334 } // namespace cc | 338 } // namespace cc |
| OLD | NEW |