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

Unified Diff: ui/compositor/layer_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 | « third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index fff271db59ea928c1525367cf6f50a20ff3858b2..6af9ee719b955df2474e2d0c8357d06a986fda74 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -1852,7 +1852,9 @@ TEST_F(LayerWithDelegateTest, ExternalContentMirroring) {
const auto satisfy_callback = base::Bind(&FakeSatisfyCallback);
const auto require_callback = base::Bind(&FakeRequireCallback);
- cc::SurfaceId surface_id(cc::FrameSinkId(0, 1), cc::LocalFrameId(2, 3));
+ cc::SurfaceId surface_id(
+ cc::FrameSinkId(0, 1),
+ cc::LocalFrameId(2, base::UnguessableToken::Create()));
layer->SetShowSurface(surface_id, satisfy_callback, require_callback,
gfx::Size(10, 10), 1.0f, gfx::Size(10, 10));
@@ -1867,7 +1869,9 @@ TEST_F(LayerWithDelegateTest, ExternalContentMirroring) {
EXPECT_EQ(gfx::Size(10, 10), surface->surface_size());
EXPECT_EQ(1.0f, surface->surface_scale());
- surface_id = cc::SurfaceId(cc::FrameSinkId(1, 2), cc::LocalFrameId(3, 4));
+ surface_id =
+ cc::SurfaceId(cc::FrameSinkId(1, 2),
+ cc::LocalFrameId(3, base::UnguessableToken::Create()));
layer->SetShowSurface(surface_id, satisfy_callback, require_callback,
gfx::Size(20, 20), 2.0f, gfx::Size(20, 20));
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698