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

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

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: build fix 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/bindings/core/v8/ScriptValueSerializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
index a891e84154d7fc68777ffb5ae9eef2f5c63f9781..337c700e02b2c7c5f1e79504be3f183bc0036516 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp
@@ -1327,7 +1327,7 @@ ScriptValueSerializer::writeTransferredOffscreenCanvas(
next);
m_writer.writeTransferredOffscreenCanvas(
offscreenCanvas->width(), offscreenCanvas->height(),
- offscreenCanvas->getAssociatedCanvasId(), offscreenCanvas->clientId(),
+ offscreenCanvas->placeholderCanvasId(), offscreenCanvas->clientId(),
offscreenCanvas->sinkId(), offscreenCanvas->localId(),
offscreenCanvas->nonce());
return nullptr;
@@ -2596,7 +2596,7 @@ bool ScriptValueDeserializer::tryGetTransferredOffscreenCanvas(
uint64_t nonce,
v8::Local<v8::Value>* object) {
OffscreenCanvas* offscreenCanvas = OffscreenCanvas::create(width, height);
- offscreenCanvas->setAssociatedCanvasId(canvasId);
+ offscreenCanvas->setPlaceholderCanvasId(canvasId);
offscreenCanvas->setSurfaceId(clientId, sinkId, localId, nonce);
*object = toV8(offscreenCanvas, m_reader.getScriptState());
if ((*object).IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698