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

Side by Side Diff: cc/trees/layer_tree_host_pixeltest_readback.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #include "cc/layers/solid_color_layer.h" 6 #include "cc/layers/solid_color_layer.h"
7 #include "cc/layers/texture_layer.h" 7 #include "cc/layers/texture_layer.h"
8 #include "cc/output/copy_output_request.h" 8 #include "cc/output/copy_output_request.h"
9 #include "cc/output/copy_output_result.h" 9 #include "cc/output/copy_output_result.h"
10 #include "cc/test/fake_picture_layer.h" 10 #include "cc/test/fake_picture_layer.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL, 452 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL,
453 READBACK_DEFAULT), 453 READBACK_DEFAULT),
454 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL, 454 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL,
455 READBACK_BITMAP))); 455 READBACK_BITMAP)));
456 456
457 class LayerTreeHostReadbackDeviceScalePixelTest 457 class LayerTreeHostReadbackDeviceScalePixelTest
458 : public LayerTreeHostReadbackPixelTest { 458 : public LayerTreeHostReadbackPixelTest {
459 protected: 459 protected:
460 LayerTreeHostReadbackDeviceScalePixelTest() 460 LayerTreeHostReadbackDeviceScalePixelTest()
461 : device_scale_factor_(1.f), 461 : device_scale_factor_(1.f),
462 white_client_(SK_ColorWHITE), 462 white_client_(SK_ColorWHITE, gfx::Size(200, 200)),
463 green_client_(SK_ColorGREEN), 463 green_client_(SK_ColorGREEN, gfx::Size(200, 200)),
464 blue_client_(SK_ColorBLUE) {} 464 blue_client_(SK_ColorBLUE, gfx::Size(200, 200)) {}
465 465
466 void InitializeSettings(LayerTreeSettings* settings) override { 466 void InitializeSettings(LayerTreeSettings* settings) override {
467 // Cause the device scale factor to be inherited by contents scales. 467 // Cause the device scale factor to be inherited by contents scales.
468 settings->layer_transforms_should_scale_layer_contents = true; 468 settings->layer_transforms_should_scale_layer_contents = true;
469 } 469 }
470 470
471 void SetupTree() override { 471 void SetupTree() override {
472 layer_tree_host()->SetDeviceScaleFactor(device_scale_factor_); 472 layer_tree_host()->SetDeviceScaleFactor(device_scale_factor_);
473 LayerTreePixelTest::SetupTree(); 473 LayerTreePixelTest::SetupTree();
474 } 474 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 READBACK_DEFAULT), 548 READBACK_DEFAULT),
549 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL, 549 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL,
550 READBACK_DEFAULT), 550 READBACK_DEFAULT),
551 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL, 551 ReadbackTestConfig(LayerTreeHostReadbackPixelTest::PIXEL_TEST_GL,
552 READBACK_BITMAP))); 552 READBACK_BITMAP)));
553 553
554 } // namespace 554 } // namespace
555 } // namespace cc 555 } // namespace cc
556 556
557 #endif // OS_ANDROID 557 #endif // OS_ANDROID
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | cc/trees/layer_tree_host_pixeltest_synchronous.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698