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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1489713004: Remove the clip parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clipremoval
Patch Set: Created 5 years 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/trees/layer_tree_host_pixeltest_tiles.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 2f5847028cf689acff4a51c496856b6a3e4db224..152b8732c572450d95399c70ebd8979b21663590 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -1571,7 +1571,6 @@ class TestOpacityChangeLayerDelegate : public ContentLayerClient {
return gfx::Rect(test_layer_->bounds());
}
scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
- const gfx::Rect& clip,
PaintingControlSetting picture_control) override {
// Set layer opacity to 0.
if (test_layer_)
@@ -1579,7 +1578,7 @@ class TestOpacityChangeLayerDelegate : public ContentLayerClient {
// Return a dummy display list.
scoped_refptr<DisplayItemList> display_list =
- DisplayItemList::Create(clip, DisplayItemListSettings());
+ DisplayItemList::Create(PaintableRegion(), DisplayItemListSettings());
return display_list;
}
bool FillsBoundsCompletely() const override { return false; }
@@ -2179,13 +2178,12 @@ class LayerTreeHostTestChangeLayerPropertiesInPaintContents
gfx::Rect PaintableRegion() override { return gfx::Rect(layer_->bounds()); }
scoped_refptr<DisplayItemList> PaintContentsToDisplayList(
- const gfx::Rect& clip,
PaintingControlSetting picture_control) override {
layer_->SetBounds(gfx::Size(2, 2));
// Return a dummy display list.
scoped_refptr<DisplayItemList> display_list =
- DisplayItemList::Create(clip, DisplayItemListSettings());
+ DisplayItemList::Create(PaintableRegion(), DisplayItemListSettings());
return display_list;
}
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_tiles.cc ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698