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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp

Issue 1878463002: Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 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/webmidi/MIDIOutput.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
index 5cad114545104c6d0209d88e7c3e82dbe5956412..1f21d1af9b37795fdd0917687643a220f0b1a16e 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp
@@ -213,7 +213,7 @@ void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, Exception
if (timestamp == 0.0)
timestamp = now(getExecutionContext());
- RefPtr<DOMUint8Array> array = DOMUint8Array::create(unsignedData.size());
+ DOMUint8Array* array = DOMUint8Array::create(unsignedData.size());
DOMUint8Array::ValueType* const arrayData = array->data();
const uint32_t arrayLength = array->length();
@@ -226,7 +226,7 @@ void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, Exception
arrayData[i] = unsignedData[i] & 0xff;
}
- send(array.get(), timestamp, exceptionState);
+ send(array, timestamp, exceptionState);
}
void MIDIOutput::send(DOMUint8Array* data, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698