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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp

Issue 2812833003: Revert of [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: Created 3 years, 8 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/modules/mediasource/SourceBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
index ff7badec60d8c669ed4689c3fcd03ad91ca05b25..8ac5648a551c47179a8cb4762dbba9082f01332d 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
@@ -360,15 +360,13 @@
data->ByteLength(), exception_state);
}
-void SourceBuffer::appendBuffer(NotShared<DOMArrayBufferView> data,
+void SourceBuffer::appendBuffer(DOMArrayBufferView* data,
ExceptionState& exception_state) {
- BLINK_SBLOG << __func__ << " this=" << this
- << " size=" << data.View()->byteLength();
+ BLINK_SBLOG << __func__ << " this=" << this << " size=" << data->byteLength();
// Section 3.2 appendBuffer()
// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#widl-SourceBuffer-appendBuffer-void-ArrayBufferView-data
- AppendBufferInternal(
- static_cast<const unsigned char*>(data.View()->BaseAddress()),
- data.View()->byteLength(), exception_state);
+ AppendBufferInternal(static_cast<const unsigned char*>(data->BaseAddress()),
+ data->byteLength(), exception_state);
}
void SourceBuffer::abort(ExceptionState& exception_state) {

Powered by Google App Engine
This is Rietveld 408576698