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

Side by Side Diff: cc/test/fake_display_list_raster_source.h

Issue 1365793003: cc: Re-enable disabled tile manager unittests (plus fixes) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 #ifndef CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_ 5 #ifndef CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_
6 #define CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_ 6 #define CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/playback/display_list_raster_source.h" 9 #include "cc/playback/display_list_raster_source.h"
10 #include "third_party/skia/include/core/SkCanvas.h" 10 #include "third_party/skia/include/core/SkCanvas.h"
(...skipping 25 matching lines...) Expand all
36 static scoped_refptr<FakeDisplayListRasterSource> 36 static scoped_refptr<FakeDisplayListRasterSource>
37 CreateFromRecordingSourceWithWaitable( 37 CreateFromRecordingSourceWithWaitable(
38 const DisplayListRecordingSource* recording_source, 38 const DisplayListRecordingSource* recording_source,
39 bool can_use_lcd, 39 bool can_use_lcd,
40 base::WaitableEvent* playback_allowed_event); 40 base::WaitableEvent* playback_allowed_event);
41 41
42 void PlaybackToCanvas(SkCanvas* canvas, 42 void PlaybackToCanvas(SkCanvas* canvas,
43 const gfx::Rect& canvas_bitmap_rect, 43 const gfx::Rect& canvas_bitmap_rect,
44 const gfx::Rect& canvas_playback_rect, 44 const gfx::Rect& canvas_playback_rect,
45 float contents_scale) const override; 45 float contents_scale) const override;
46 bool IsSolidColor() const override;
47
48 void set_is_solid_color(bool is_solid) {
49 is_solid_color_ = is_solid;
50 is_solid_color_overridden_ = true;
51 }
46 52
47 protected: 53 protected:
48 FakeDisplayListRasterSource( 54 FakeDisplayListRasterSource(
49 const DisplayListRecordingSource* recording_source, 55 const DisplayListRecordingSource* recording_source,
50 bool can_use_lcd); 56 bool can_use_lcd);
51 FakeDisplayListRasterSource( 57 FakeDisplayListRasterSource(
52 const DisplayListRecordingSource* recording_source, 58 const DisplayListRecordingSource* recording_source,
53 bool can_use_lcd, 59 bool can_use_lcd,
54 base::WaitableEvent* playback_allowed_event); 60 base::WaitableEvent* playback_allowed_event);
55 ~FakeDisplayListRasterSource() override; 61 ~FakeDisplayListRasterSource() override;
56 62
57 private: 63 private:
64 bool is_solid_color_;
65 bool is_solid_color_overridden_;
58 base::WaitableEvent* playback_allowed_event_; 66 base::WaitableEvent* playback_allowed_event_;
59 }; 67 };
60 68
61 } // namespace cc 69 } // namespace cc
62 70
63 #endif // CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_ 71 #endif // CC_TEST_FAKE_DISPLAY_LIST_RASTER_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/fake_display_list_raster_source.cc » ('j') | cc/tiles/tile_manager_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698