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

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: 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') | content/test/layouttest_support.cc » ('J')
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..d0ec4054e80807ba74e64f1f7f696a56d8d10b4c 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -46,18 +46,20 @@ 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;
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),
+ shared_bitmap_manager(), gpu_memory_buffer_manager(),
+ 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') | content/test/layouttest_support.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698