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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.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/webgl/WebGLRenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
index dd0ca30a4e48da2f66b333b8bed98e1d3bf1eee6..4102488ffba81f2b7832c45206ccff65ed6b590e 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
@@ -1251,7 +1251,7 @@ ImageData* WebGLRenderingContextBase::paintRenderingResultsToImageData(SourceDra
WTF::ArrayBufferContents contents;
if (!drawingBuffer()->paintRenderingResultsToImageData(width, height, sourceBuffer, contents))
return nullptr;
- RefPtr<DOMArrayBuffer> imageDataPixels = DOMArrayBuffer::create(contents);
+ DOMArrayBuffer* imageDataPixels = DOMArrayBuffer::create(contents);
return ImageData::create(
IntSize(width, height),

Powered by Google App Engine
This is Rietveld 408576698