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

Unified Diff: cc/test/solid_color_content_layer_client.h

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « cc/test/fake_display_list_recording_source.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/solid_color_content_layer_client.h
diff --git a/cc/test/solid_color_content_layer_client.h b/cc/test/solid_color_content_layer_client.h
index c39d567c6f10a4d4872e3970541872299d07a2c6..a615eb44ea976eb8efa3ad7bc15a7aa21feceb4f 100644
--- a/cc/test/solid_color_content_layer_client.h
+++ b/cc/test/solid_color_content_layer_client.h
@@ -13,7 +13,10 @@ namespace cc {
class SolidColorContentLayerClient : public ContentLayerClient {
public:
- explicit SolidColorContentLayerClient(SkColor color) : color_(color) {}
+ explicit SolidColorContentLayerClient(SkColor color, gfx::Size size)
+ : color_(color), size_(size) {}
+
+ gfx::Rect PaintableRegion() override;
// ContentLayerClient implementation.
scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
@@ -24,6 +27,7 @@ class SolidColorContentLayerClient : public ContentLayerClient {
private:
SkColor color_;
+ gfx::Size size_;
};
} // namespace cc
« no previous file with comments | « cc/test/fake_display_list_recording_source.cc ('k') | cc/test/solid_color_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698