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

Unified Diff: cc/surfaces/surface_unittest.cc

Issue 2506883002: Revert of Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: 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
« no previous file with comments | « cc/surfaces/surface_manager_ref_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_unittest.cc
diff --git a/cc/surfaces/surface_unittest.cc b/cc/surfaces/surface_unittest.cc
index b2d65e93572e0fe469533ad067d7210183ca4a7c..5b8e614f4fefa3d970a774f9de96710ff968a1e8 100644
--- a/cc/surfaces/surface_unittest.cc
+++ b/cc/surfaces/surface_unittest.cc
@@ -40,10 +40,11 @@
LocalFrameId local_frame_id(6, base::UnguessableToken::Create());
SurfaceId surface_id(kArbitraryFrameSinkId, local_frame_id);
- factory.SubmitCompositorFrame(local_frame_id, CompositorFrame(),
- SurfaceFactory::DrawCallback());
- EXPECT_TRUE(manager.GetSurfaceForId(surface_id));
- factory.EvictSurface();
+ {
+ factory.Create(local_frame_id);
+ EXPECT_TRUE(manager.GetSurfaceForId(surface_id));
+ factory.Destroy(local_frame_id);
+ }
EXPECT_EQ(NULL, manager.GetSurfaceForId(surface_id));
}
« no previous file with comments | « cc/surfaces/surface_manager_ref_unittest.cc ('k') | cc/surfaces/surfaces_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698