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

Unified Diff: Source/bindings/tests/results/core/V8ArrayBuffer.cpp

Issue 1097773004: Sharing of SharedArrayBuffer via PostMessage transfer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: . Created 5 years, 6 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: Source/bindings/tests/results/core/V8ArrayBuffer.cpp
diff --git a/Source/bindings/tests/results/core/V8ArrayBuffer.cpp b/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
index 4157aa78361040027a6c24f2324f3b7a2447925a..547122c4e82a9a62e6b613c8168d829f4bf80453 100644
--- a/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
+++ b/Source/bindings/tests/results/core/V8ArrayBuffer.cpp
@@ -11,6 +11,7 @@
#include "bindings/core/v8/V8ArrayBuffer.h"
#include "bindings/core/v8/V8DOMConfiguration.h"
#include "bindings/core/v8/V8ObjectConstructor.h"
+#include "bindings/core/v8/V8SharedArrayBuffer.h"
haraken 2015/06/11 05:59:28 This won't be needed.
#include "core/dom/ContextFeatures.h"
#include "core/dom/DOMArrayBufferDeallocationObserver.h"
#include "core/dom/Document.h"
@@ -47,7 +48,7 @@ TestArrayBuffer* V8ArrayBuffer::toImpl(v8::Local<v8::Object> object)
// Transfer the ownership of the allocated memory to an ArrayBuffer without
// copying.
v8::ArrayBuffer::Contents v8Contents = v8buffer->Externalize();
- WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), 0);
+ WTF::ArrayBufferContents contents(v8Contents.Data(), v8Contents.ByteLength(), WTF::ArrayBufferContents::NotShared, 0);
RefPtr<TestArrayBuffer> buffer = TestArrayBuffer::create(contents);
// Since this transfer doesn't allocate new memory, do not call
// DOMArrayBufferDeallocationObserver::blinkAllocatedMemory.

Powered by Google App Engine
This is Rietveld 408576698