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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

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/layers/picture_layer.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index bbb2fb217cc98d24cafe8b41380e4024a963ed23..a2a1312eb2573c5f1d9b8e90ae033e21e18a3b70 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -415,6 +415,7 @@ TEST_F(PictureLayerImplTest, TileGridAlignment) {
// Create an active recording source, but make sure it's not solid.
scoped_ptr<FakeDisplayListRecordingSource> active_recording_source =
FakeDisplayListRecordingSource::CreateFilledRecordingSource(layer_size);
+ active_recording_source->SetLayerBounds(layer_size);
active_recording_source->add_draw_rect(gfx::Rect(layer_size));
active_recording_source->add_draw_rect(
gfx::Rect(0, 0, layer_size.width() - 1, layer_size.height() - 1));
@@ -4495,6 +4496,7 @@ void PictureLayerImplTest::TestQuadsForSolidColor(bool test_for_solid) {
gfx::Rect layer_rect(layer_bounds);
FakeContentLayerClient client;
+ client.set_bounds(layer_bounds);
scoped_refptr<PictureLayer> layer =
PictureLayer::Create(layer_settings_, &client);
FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
@@ -4559,6 +4561,7 @@ TEST_F(PictureLayerImplTest, NonSolidToSolidNoTilings) {
gfx::Rect layer_rect(layer_bounds);
FakeContentLayerClient client;
+ client.set_bounds(layer_bounds);
scoped_refptr<PictureLayer> layer =
PictureLayer::Create(layer_settings_, &client);
FakeLayerTreeHostClient host_client(FakeLayerTreeHostClient::DIRECT_3D);
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698