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

Unified Diff: cc/layers/surface_layer_impl_unittest.cc

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Changed SurfaceManager::kRootSurfaceId to a private field to avoid static initialization 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/ipc/struct_traits_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/surface_layer_impl_unittest.cc
diff --git a/cc/layers/surface_layer_impl_unittest.cc b/cc/layers/surface_layer_impl_unittest.cc
index 7c0d76cb9d51953bbfbebfdabd07e2016d223bc1..ea556d8dae165f109aa62c55536b2e1ab792abc7 100644
--- a/cc/layers/surface_layer_impl_unittest.cc
+++ b/cc/layers/surface_layer_impl_unittest.cc
@@ -17,6 +17,8 @@ static constexpr FrameSinkId kArbitraryFrameSinkId(1, 1);
TEST(SurfaceLayerImplTest, Occlusion) {
gfx::Size layer_size(1000, 1000);
gfx::Size viewport_size(1000, 1000);
+ const LocalFrameId kArbitraryLocalFrameId(9,
+ base::UnguessableToken::Create());
LayerTestCommon::LayerImplTest impl;
@@ -24,7 +26,7 @@ TEST(SurfaceLayerImplTest, Occlusion) {
impl.AddChildToRoot<SurfaceLayerImpl>();
surface_layer_impl->SetBounds(layer_size);
surface_layer_impl->SetDrawsContent(true);
- SurfaceId surface_id(kArbitraryFrameSinkId, LocalFrameId(9, 1));
+ SurfaceId surface_id(kArbitraryFrameSinkId, kArbitraryLocalFrameId);
surface_layer_impl->SetSurfaceId(surface_id);
surface_layer_impl->SetSurfaceScale(1.f);
surface_layer_impl->SetSurfaceSize(layer_size);
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/layers/surface_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698