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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/test/fake_display_list_raster_source.cc » ('j') | cc/tiles/tile_manager_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_display_list_raster_source.h
diff --git a/cc/test/fake_display_list_raster_source.h b/cc/test/fake_display_list_raster_source.h
index 4dcbfa9ef3ff43ad1f08d3cf32be35e135aefd68..d35775f70ce47c40c97102b3205fb36855fbff5e 100644
--- a/cc/test/fake_display_list_raster_source.h
+++ b/cc/test/fake_display_list_raster_source.h
@@ -43,6 +43,12 @@ class FakeDisplayListRasterSource : public DisplayListRasterSource {
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
float contents_scale) const override;
+ bool IsSolidColor() const override;
+
+ void set_is_solid_color(bool is_solid) {
+ is_solid_color_ = is_solid;
+ is_solid_color_overridden_ = true;
+ }
protected:
FakeDisplayListRasterSource(
@@ -55,6 +61,8 @@ class FakeDisplayListRasterSource : public DisplayListRasterSource {
~FakeDisplayListRasterSource() override;
private:
+ bool is_solid_color_;
+ bool is_solid_color_overridden_;
base::WaitableEvent* playback_allowed_event_;
};
« 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