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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 9150bf55b9216013fb32ccb81e726127801c3e4c..68336e918867868f6ef387c5ff27b1d2921937c3 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1833,7 +1833,7 @@ TEST_F(LayerWithDelegateTest, ExternalContentMirroring) {
const auto* surface = static_cast<cc::SurfaceLayer*>(cc_layer);
// Mirroring preserves surface state.
- EXPECT_EQ(surface_info, surface->surface_info());
+ EXPECT_EQ(surface_info, surface->primary_surface_info());
surface_id =
cc::SurfaceId(cc::FrameSinkId(1, 2),
@@ -1846,7 +1846,7 @@ TEST_F(LayerWithDelegateTest, ExternalContentMirroring) {
surface = static_cast<cc::SurfaceLayer*>(mirror->cc_layer_for_testing());
// Surface updates propagate to the mirror.
- EXPECT_EQ(surface_info_2, surface->surface_info());
+ EXPECT_EQ(surface_info_2, surface->primary_surface_info());
}
// Test if frame size in dip is properly calculated in SetShowSurface

Powered by Google App Engine
This is Rietveld 408576698