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

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

Issue 2781183002: Remove image_decode_tasks_enabled flag. (Closed)
Patch Set: fixes Created 3 years, 8 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/raster/raster_source_unittest.cc ('k') | cc/tiles/tile_manager_unittest.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 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_recording_source.h" 5 #include "cc/test/fake_recording_source.h"
6 6
7 #include "cc/test/fake_raster_source.h" 7 #include "cc/test/fake_raster_source.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 FakeRecordingSource::FakeRecordingSource() : playback_allowed_event_(nullptr) {} 11 FakeRecordingSource::FakeRecordingSource() : playback_allowed_event_(nullptr) {}
12 12
13 scoped_refptr<RasterSource> FakeRecordingSource::CreateRasterSource( 13 scoped_refptr<RasterSource> FakeRecordingSource::CreateRasterSource(
14 bool can_use_lcd) const { 14 bool can_use_lcd) const {
15 return FakeRasterSource::CreateFromRecordingSourceWithWaitable( 15 return FakeRasterSource::CreateFromRecordingSourceWithWaitable(
16 this, can_use_lcd, playback_allowed_event_); 16 this, can_use_lcd, playback_allowed_event_);
17 } 17 }
18 18
19 bool FakeRecordingSource::EqualsTo(const FakeRecordingSource& other) { 19 bool FakeRecordingSource::EqualsTo(const FakeRecordingSource& other) {
20 return size_ == other.size_ && 20 return size_ == other.size_ &&
21 slow_down_raster_scale_factor_for_debug_ == 21 slow_down_raster_scale_factor_for_debug_ ==
22 other.slow_down_raster_scale_factor_for_debug_ && 22 other.slow_down_raster_scale_factor_for_debug_ &&
23 generate_discardable_images_metadata_ ==
24 other.generate_discardable_images_metadata_ &&
25 requires_clear_ == other.requires_clear_ && 23 requires_clear_ == other.requires_clear_ &&
26 is_solid_color_ == other.is_solid_color_ && 24 is_solid_color_ == other.is_solid_color_ &&
27 clear_canvas_with_debug_color_ == 25 clear_canvas_with_debug_color_ ==
28 other.clear_canvas_with_debug_color_ && 26 other.clear_canvas_with_debug_color_ &&
29 solid_color_ == other.solid_color_ && 27 solid_color_ == other.solid_color_ &&
30 background_color_ == other.background_color_; 28 background_color_ == other.background_color_;
31 } 29 }
32 30
33 } // namespace cc 31 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/raster_source_unittest.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698