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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Moved include statement from surface_id_struct_traits.h to local_frame_id_struct_traits.h Created 4 years, 2 months 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/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
index a597416fb0b73be4a4836d57e00025d9696113d9..b3b1f47d21302fa007c8d377e7d53358084339ce 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp
@@ -205,14 +205,15 @@ ScriptWrappable* V8ScriptValueDeserializer::readDOMObject(
case OffscreenCanvasTransferTag: {
uint32_t width = 0, height = 0, canvasId = 0, clientId = 0, sinkId = 0,
localId = 0;
- uint64_t nonce = 0;
+ uint64_t nonceHigh = 0, nonceLow = 0;
if (!readUint32(&width) || !readUint32(&height) ||
!readUint32(&canvasId) || !readUint32(&clientId) ||
- !readUint32(&sinkId) || !readUint32(&localId) || !readUint64(&nonce))
+ !readUint32(&sinkId) || !readUint32(&localId) ||
+ !readUint64(&nonceHigh) || !readUint64(&nonceLow))
return nullptr;
OffscreenCanvas* canvas = OffscreenCanvas::create(width, height);
canvas->setAssociatedCanvasId(canvasId);
- canvas->setSurfaceId(clientId, sinkId, localId, nonce);
+ canvas->setSurfaceId(clientId, sinkId, localId, nonceHigh, nonceLow);
return canvas;
}
default:

Powered by Google App Engine
This is Rietveld 408576698