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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2144393003: cc: Allow TestDelegatingOutputSurface to be used for non-pixel tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 0778b6a26f155f63a638ce95d1a160e7985e7721..b17a63a03effb11b1ab63772c5372042c5594f19 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -123,10 +123,9 @@ class DisplayTest : public testing::Test {
scheduler_ = scheduler.get();
display_ = base::MakeUnique<Display>(
- &manager_, &shared_bitmap_manager_,
- nullptr /* gpu_memory_buffer_manager */, settings,
- id_allocator_.client_id(), std::move(begin_frame_source),
- std::move(output_surface), std::move(scheduler),
+ &shared_bitmap_manager_, nullptr /* gpu_memory_buffer_manager */,
+ settings, std::move(begin_frame_source), std::move(output_surface),
+ std::move(scheduler),
base::MakeUnique<TextureMailboxDeleter>(task_runner_.get()));
}
@@ -175,7 +174,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
SetUpDisplay(settings, nullptr);
StubDisplayClient client;
- display_->Initialize(&client);
+ display_->Initialize(&client, &manager_, id_allocator_.client_id());
SurfaceId surface_id(id_allocator_.GenerateId());
EXPECT_FALSE(scheduler_->damaged);
@@ -438,7 +437,7 @@ TEST_F(DisplayTest, Finish) {
SetUpDisplay(settings, std::move(context));
StubDisplayClient client;
- display_->Initialize(&client);
+ display_->Initialize(&client, &manager_, id_allocator_.client_id());
display_->SetSurfaceId(surface_id, 1.f);
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698