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

Unified Diff: cc/test/fake_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/playback/display_list_recording_source_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.h
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h
index e24fee7eb2a769f589039300e187c81c020beca1..a73cfa3880bbba65d499182321fbaf7022cd1174 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -38,6 +38,7 @@ class FakeContentLayerClient : public ContentLayerClient {
FakeContentLayerClient();
~FakeContentLayerClient() override;
+ gfx::Rect PaintableRegion() override;
scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
const gfx::Rect& clip,
PaintingControlSetting painting_control) override;
@@ -80,6 +81,11 @@ class FakeContentLayerClient : public ContentLayerClient {
reported_memory_usage_ = reported_memory_usage;
}
+ void set_bounds(gfx::Size bounds) {
+ bounds_ = bounds;
+ bounds_set_ = true;
+ }
+
private:
typedef std::vector<std::pair<gfx::RectF, SkPaint>> RectPaintVector;
typedef std::vector<ImageData> ImageVector;
@@ -90,6 +96,8 @@ class FakeContentLayerClient : public ContentLayerClient {
SkCanvas* last_canvas_;
PaintingControlSetting last_painting_control_;
size_t reported_memory_usage_;
+ gfx::Size bounds_;
+ bool bounds_set_;
};
} // namespace cc
« no previous file with comments | « cc/playback/display_list_recording_source_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698