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

Side by Side Diff: cc/playback/raster_source.cc

Issue 2702633002: color: Remove implied color space (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « cc/playback/raster_source.h ('k') | cc/raster/bitmap_raster_buffer_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 return false; 255 return false;
256 gfx::Rect bounded_rect = layer_rect; 256 gfx::Rect bounded_rect = layer_rect;
257 bounded_rect.Intersect(gfx::Rect(size_)); 257 bounded_rect.Intersect(gfx::Rect(size_));
258 return recorded_viewport_.Contains(bounded_rect); 258 return recorded_viewport_.Contains(bounded_rect);
259 } 259 }
260 260
261 gfx::Size RasterSource::GetSize() const { 261 gfx::Size RasterSource::GetSize() const {
262 return size_; 262 return size_;
263 } 263 }
264 264
265 bool RasterSource::HasImpliedColorSpace() const {
266 return display_list_->HasImpliedColorSpace();
267 }
268
269 const gfx::ColorSpace& RasterSource::GetImpliedColorSpace() const {
270 return display_list_->GetImpliedColorSpace();
271 }
272
273 bool RasterSource::IsSolidColor() const { 265 bool RasterSource::IsSolidColor() const {
274 return is_solid_color_; 266 return is_solid_color_;
275 } 267 }
276 268
277 SkColor RasterSource::GetSolidColor() const { 269 SkColor RasterSource::GetSolidColor() const {
278 DCHECK(IsSolidColor()); 270 DCHECK(IsSolidColor());
279 return solid_color_; 271 return solid_color_;
280 } 272 }
281 273
282 bool RasterSource::HasRecordings() const { 274 bool RasterSource::HasRecordings() const {
(...skipping 29 matching lines...) Expand all
312 use_image_hijack_canvas(true) {} 304 use_image_hijack_canvas(true) {}
313 305
314 RasterSource::PlaybackSettings::PlaybackSettings(const PlaybackSettings&) = 306 RasterSource::PlaybackSettings::PlaybackSettings(const PlaybackSettings&) =
315 default; 307 default;
316 308
317 RasterSource::PlaybackSettings::PlaybackSettings(PlaybackSettings&&) = default; 309 RasterSource::PlaybackSettings::PlaybackSettings(PlaybackSettings&&) = default;
318 310
319 RasterSource::PlaybackSettings::~PlaybackSettings() = default; 311 RasterSource::PlaybackSettings::~PlaybackSettings() = default;
320 312
321 } // namespace cc 313 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/raster_source.h ('k') | cc/raster/bitmap_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698