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

Unified Diff: third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.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/modules/canvas/HTMLCanvasElementModule.cpp
diff --git a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp
index 29baee4a7f7ad88d864b5d997bfea841915e91e3..5d444a088941ffe61fe8dfee51798f4a155c0ec3 100644
--- a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp
+++ b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp
@@ -75,7 +75,14 @@ OffscreenCanvas* HTMLCanvasElementModule::transferControlToOffscreenInternal(
bridge->getSurfaceId().frame_sink_id().client_id(),
bridge->getSurfaceId().frame_sink_id().sink_id(),
bridge->getSurfaceId().local_frame_id().local_id(),
- bridge->getSurfaceId().local_frame_id().nonce());
+ bridge->getSurfaceId()
+ .local_frame_id()
+ .nonce()
+ .GetHighForSerialization(),
+ bridge->getSurfaceId()
+ .local_frame_id()
+ .nonce()
+ .GetLowForSerialization());
}
return offscreenCanvas;
}

Powered by Google App Engine
This is Rietveld 408576698