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

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

Issue 2569863005: Move getBufferSubDataAsync to an extension (Closed)
Patch Set: fixup Created 4 years 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 typedef unsigned long long GLuint64; 6 typedef unsigned long long GLuint64;
7 7
8 [ 8 [
9 NoInterfaceObject, 9 NoInterfaceObject,
10 ] interface WebGL2RenderingContextBase { 10 ] interface WebGL2RenderingContextBase {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 const GLint TIMEOUT_IGNORED = -1; 272 const GLint TIMEOUT_IGNORED = -1;
273 273
274 /* WebGL-specific enums */ 274 /* WebGL-specific enums */
275 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; 275 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
276 276
277 /* Buffer objects */ 277 /* Buffer objects */
278 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0); 278 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0);
279 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0); 279 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0);
280 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size); 280 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size);
281 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); 281 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0);
282 // TODO(kainino): Move getBufferSubDataAsync to an extension. http://crbug.c om/616554
283 //[CallWith=ScriptState, RuntimeEnabled=ExperimentalCanvasFeatures] Promise< ArrayBufferView> getBufferSubDataAsync(GLenum target, GLintptr srcByteOffset, Ar rayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0 );
284 282
285 /* Framebuffer objects */ 283 /* Framebuffer objects */
286 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ; 284 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ;
287 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer); 285 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer);
288 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname); 286 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname);
289 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); 287 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);
290 void invalidateSubFramebuffer(GLenum target, sequence<GLenum> attachments, G Lint x, GLint y, GLsizei width, GLsizei height); 288 void invalidateSubFramebuffer(GLenum target, sequence<GLenum> attachments, G Lint x, GLint y, GLsizei width, GLsizei height);
291 void readBuffer(GLenum mode); 289 void readBuffer(GLenum mode);
292 290
293 /* Renderbuffer objects */ 291 /* Renderbuffer objects */
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 WebGLVertexArrayObject createVertexArray(); 444 WebGLVertexArrayObject createVertexArray();
447 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); 445 void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
448 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 446 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
449 void bindVertexArray(WebGLVertexArrayObject? vertexArray); 447 void bindVertexArray(WebGLVertexArrayObject? vertexArray);
450 448
451 /* Reading */ 449 /* Reading */
452 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, ArrayBufferView dstData, GLintptr offset); 450 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, ArrayBufferView dstData, GLintptr offset);
453 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 451 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
454 }; 452 };
455 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 453 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698