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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2485473003: Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: rebase Created 4 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
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index c1622096e16eb87ee4128da0b98d16b532ad7ab4..7da9ea218f7f6db81b8e85f1b138ae189433a274 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -197,8 +197,6 @@ TEST_F(DisplayTest, DisplayDamaged) {
EXPECT_TRUE(scheduler_->display_resized_);
EXPECT_FALSE(scheduler_->has_new_root_surface);
- factory_.Create(local_frame_id);
-
// First draw from surface should have full damage.
RenderPassList pass_list;
std::unique_ptr<RenderPass> pass = RenderPass::Create();
@@ -415,8 +413,6 @@ TEST_F(DisplayTest, DisplayDamaged) {
software_output_device_->damage_rect());
EXPECT_EQ(0u, output_surface_->last_sent_frame()->latency_info.size());
}
-
- factory_.Destroy(local_frame_id);
}
class MockedContext : public TestWebGraphicsContext3D {
@@ -444,7 +440,6 @@ TEST_F(DisplayTest, Finish) {
display_->SetSurfaceId(surface_id, 1.f);
display_->Resize(gfx::Size(100, 100));
- factory_.Create(local_frame_id);
{
RenderPassList pass_list;
@@ -490,8 +485,6 @@ TEST_F(DisplayTest, Finish) {
EXPECT_CALL(*context_ptr, shallowFinishCHROMIUM());
display_->Resize(gfx::Size(250, 250));
testing::Mock::VerifyAndClearExpectations(context_ptr);
-
- factory_.Destroy(local_frame_id);
}
class CountLossDisplayClient : public StubDisplayClient {

Powered by Google App Engine
This is Rietveld 408576698