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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl

Issue 2379203002: implement getBufferSubDataAsync prototype (Closed)
Patch Set: small clarification Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 typedef long long GLint64; 5 typedef long long GLint64;
6 6
7 [ 7 [
8 RuntimeEnabled=UnsafeES3APIs, 8 RuntimeEnabled=UnsafeES3APIs,
9 NoInterfaceObject, 9 NoInterfaceObject,
10 ] interface WebGL2RenderingContextBase { 10 ] interface WebGL2RenderingContextBase {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 const GLint TIMEOUT_IGNORED = -1; 275 const GLint TIMEOUT_IGNORED = -1;
276 276
277 /* WebGL-specific enums */ 277 /* WebGL-specific enums */
278 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; 278 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
279 279
280 /* Buffer objects */ 280 /* Buffer objects */
281 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0); 281 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0);
282 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0); 282 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0);
283 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size); 283 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size);
284 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); 284 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0);
285 [CallWith=ScriptState, RuntimeEnabled=ExperimentalCanvasFeatures] Promise<Ar rayBufferView> getBufferSubDataAsync(GLenum target, GLintptr srcByteOffset, Arra yBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0);
285 286
286 /* Framebuffer objects */ 287 /* Framebuffer objects */
287 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ; 288 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ;
288 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer); 289 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer);
289 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname); 290 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname);
290 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); 291 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);
291 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height); 292 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height);
292 void readBuffer(GLenum mode); 293 void readBuffer(GLenum mode);
293 294
294 /* Renderbuffer objects */ 295 /* Renderbuffer objects */
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 /* Vertex Array Objects */ 445 /* Vertex Array Objects */
445 WebGLVertexArrayObject createVertexArray(); 446 WebGLVertexArrayObject createVertexArray();
446 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); 447 void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
447 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 448 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
448 void bindVertexArray(WebGLVertexArrayObject? vertexArray); 449 void bindVertexArray(WebGLVertexArrayObject? vertexArray);
449 450
450 /* Reading */ 451 /* Reading */
451 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 452 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
452 }; 453 };
453 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 454 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698