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

Unified Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp

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
Index: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
index 970e6a6f35b3090e2c69ff0de021474c53bf8a36..d67604b2f665232225d78d3d86a44a7143efe422 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp
@@ -28,11 +28,15 @@ OffscreenCanvasFrameDispatcherImpl::OffscreenCanvasFrameDispatcherImpl(
uint32_t clientId,
uint32_t sinkId,
uint32_t localId,
- uint64_t nonce,
+ uint64_t nonceHigh,
+ uint64_t nonceLow,
int width,
int height)
- : m_surfaceId(cc::FrameSinkId(clientId, sinkId),
- cc::LocalFrameId(localId, nonce)),
+ : m_surfaceId(
+ cc::FrameSinkId(clientId, sinkId),
+ cc::LocalFrameId(
+ localId,
+ base::UnguessableToken::Deserialize(nonceHigh, nonceLow))),
m_width(width),
m_height(height),
m_nextResourceId(1u),
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698