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

Unified Diff: services/ui/ws/frame_generator_unittest.cc

Issue 2494833002: Revert of Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (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_unittest.cc ('k') | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator_unittest.cc
diff --git a/services/ui/ws/frame_generator_unittest.cc b/services/ui/ws/frame_generator_unittest.cc
index 12630eb94916e5b838d37a611f76e94c7239497f..b977f0a0fc45a307ad4221b508c2d8a964dc62f4 100644
--- a/services/ui/ws/frame_generator_unittest.cc
+++ b/services/ui/ws/frame_generator_unittest.cc
@@ -24,7 +24,6 @@
// Typical id for the display root ServerWindow.
constexpr WindowId kRootDisplayId(0, 2);
-const base::UnguessableToken kArbitraryToken = base::UnguessableToken::Create();
// Makes the window visible and creates the default surface for it.
void InitWindow(ServerWindow* window) {
@@ -37,7 +36,7 @@
cc::FrameSinkId(
WindowIdToTransportId(window->id()),
static_cast<uint32_t>(mojom::CompositorFrameSinkType::DEFAULT)),
- cc::LocalFrameId(1u, kArbitraryToken)),
+ cc::LocalFrameId(1u, 1u)),
gfx::Size(100, 100));
}
@@ -126,7 +125,7 @@
cc::FrameSinkId(
WindowIdToTransportId(child_window.id()),
static_cast<uint32_t>(mojom::CompositorFrameSinkType::UNDERLAY)),
- cc::LocalFrameId(1u, kArbitraryToken)),
+ cc::LocalFrameId(1u, 1u)),
gfx::Size(100, 100));
render_pass = cc::RenderPass::Create();
« no previous file with comments | « cc/surfaces/surface_unittest.cc ('k') | third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698