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

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 2075343003: Use a cc::Display for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mailbox-test
Patch Set: layouttests-display2: rebase Created 4 years, 6 months 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 | « no previous file | cc/test/pixel_test_delegating_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 09340e7543680187ebd87dc3818be14abf58c02e..3070594b9021676abf247eeda3e2589655e0c732 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -46,18 +46,23 @@ void LayerTreePixelTest::InitializeSettings(LayerTreeSettings* settings) {
std::unique_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface() {
scoped_refptr<TestInProcessContextProvider> compositor;
scoped_refptr<TestInProcessContextProvider> worker;
+ scoped_refptr<TestInProcessContextProvider> display;
if (test_type_ == PIXEL_TEST_GL) {
compositor = new TestInProcessContextProvider(nullptr);
worker = new TestInProcessContextProvider(compositor.get());
+ display = new TestInProcessContextProvider(nullptr);
}
const bool allow_force_reclaim_resources = !HasImplThread();
const bool synchronous_composite =
!layer_tree_host()->settings().single_thread_proxy_scheduler;
+ // Always test Webview shenanigans.
+ const gfx::Size surface_expansion_size(40, 60);
std::unique_ptr<PixelTestDelegatingOutputSurface> delegating_output_surface(
new PixelTestDelegatingOutputSurface(
- std::move(compositor), std::move(worker), shared_bitmap_manager(),
- gpu_memory_buffer_manager(), allow_force_reclaim_resources,
- synchronous_composite));
+ std::move(compositor), std::move(worker), std::move(display),
+ RendererSettings(), shared_bitmap_manager(),
+ gpu_memory_buffer_manager(), surface_expansion_size,
+ allow_force_reclaim_resources, synchronous_composite));
delegating_output_surface->SetEnlargePassTextureAmount(
enlarge_texture_amount_);
return std::move(delegating_output_surface);
« no previous file with comments | « no previous file | cc/test/pixel_test_delegating_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698