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

Unified Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 1079983002: Introduce SmallTypedArray IDL type and use it for bufferSubData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 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: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index 6c7ef4a61200aa725abc1486c827a51c0fb337a0..7a45e6e1f6f2b6a5a9a0bd851ccf2a171882ae6d 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -1347,6 +1347,15 @@ void WebGLRenderingContextBase::bufferSubDataImpl(GLenum target, long long offse
webContext()->bufferSubData(target, static_cast<GLintptr>(offset), size, data);
}
+void WebGLRenderingContextBase::bufferSubData(GLenum target, long long offset, const void* data, size_t byteLength)
+{
+ if (isContextLost())
+ return;
+ if (!data)
+ return;
+ bufferSubDataImpl(target, offset, byteLength, data);
+}
+
void WebGLRenderingContextBase::bufferSubData(GLenum target, long long offset, DOMArrayBuffer* data)
{
if (isContextLost())

Powered by Google App Engine
This is Rietveld 408576698