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

Unified Diff: cc/trees/layer_tree_host_pixeltest_synchronous.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/trees/layer_tree_host_pixeltest_readback.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_synchronous.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_synchronous.cc b/cc/trees/layer_tree_host_pixeltest_synchronous.cc
index 1eb32ba6440c51873f46c65de2c1b8c1da946c47..dbddedf686c9d82edd1f30825f200e6940188835 100644
--- a/cc/trees/layer_tree_host_pixeltest_synchronous.cc
+++ b/cc/trees/layer_tree_host_pixeltest_synchronous.cc
@@ -34,6 +34,7 @@ TEST_F(LayerTreeHostSynchronousPixelTest, OneContentLayer) {
gfx::Size bounds(200, 200);
FakeContentLayerClient client;
+ client.set_bounds(bounds);
SkPaint green_paint;
green_paint.setColor(SkColorSetARGB(255, 0, 255, 0));
client.add_draw_rect(gfx::Rect(bounds), green_paint);
@@ -65,12 +66,14 @@ TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) {
gfx::Size bounds(200, 200);
FakeContentLayerClient client;
+ client.set_bounds(bounds);
SkPaint green_paint;
green_paint.setColor(SkColorSetARGB(255, 0, 255, 0));
client.add_draw_rect(gfx::Rect(bounds), green_paint);
scoped_refptr<PictureLayer> root =
PictureLayer::Create(layer_settings(), &client);
root->SetBounds(bounds);
+ client.set_bounds(bounds);
root->SetIsDrawable(true);
RunSingleThreadedPixelTest(PIXEL_TEST_GL, root,
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_readback.cc ('k') | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698