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

Side by Side Diff: cc/test/fake_raster_source.cc

Issue 2752523006: cc: Use SkCreateColorSpaceXformCanvas for color transforms (Closed)
Patch Set: Rebase Created 3 years, 9 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/test/fake_raster_source.h ('k') | ui/gfx/color_space.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test/fake_raster_source.h" 5 #include "cc/test/fake_raster_source.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "cc/paint/paint_flags.h" 10 #include "cc/paint/paint_flags.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 FakeRasterSource::FakeRasterSource(const RecordingSource* recording_source, 134 FakeRasterSource::FakeRasterSource(const RecordingSource* recording_source,
135 bool can_use_lcd, 135 bool can_use_lcd,
136 base::WaitableEvent* playback_allowed_event) 136 base::WaitableEvent* playback_allowed_event)
137 : RasterSource(recording_source, can_use_lcd), 137 : RasterSource(recording_source, can_use_lcd),
138 playback_allowed_event_(playback_allowed_event) {} 138 playback_allowed_event_(playback_allowed_event) {}
139 139
140 FakeRasterSource::~FakeRasterSource() {} 140 FakeRasterSource::~FakeRasterSource() {}
141 141
142 void FakeRasterSource::PlaybackToCanvas( 142 void FakeRasterSource::PlaybackToCanvas(
143 SkCanvas* canvas, 143 SkCanvas* canvas,
144 const gfx::ColorSpace& canvas_color_space,
144 const PlaybackSettings& settings) const { 145 const PlaybackSettings& settings) const {
145 if (playback_allowed_event_) 146 if (playback_allowed_event_)
146 playback_allowed_event_->Wait(); 147 playback_allowed_event_->Wait();
147 RasterSource::PlaybackToCanvas(canvas, settings); 148 RasterSource::PlaybackToCanvas(canvas, canvas_color_space, settings);
148 } 149 }
149 150
150 } // namespace cc 151 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_raster_source.h ('k') | ui/gfx/color_space.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698