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

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

Issue 2266563002: Implement buffer{Sub}Data overloads with sub source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const GLenum TEXTURE_IMMUTABLE_FORMAT = 0x912F; 281 const GLenum TEXTURE_IMMUTABLE_FORMAT = 0x912F;
282 const GLenum MAX_ELEMENT_INDEX = 0x8D6B; 282 const GLenum MAX_ELEMENT_INDEX = 0x8D6B;
283 const GLenum NUM_SAMPLE_COUNTS = 0x9380; 283 const GLenum NUM_SAMPLE_COUNTS = 0x9380;
284 const GLenum TEXTURE_IMMUTABLE_LEVELS = 0x82DF; 284 const GLenum TEXTURE_IMMUTABLE_LEVELS = 0x82DF;
285 const GLint TIMEOUT_IGNORED = -1; 285 const GLint TIMEOUT_IGNORED = -1;
286 286
287 /* WebGL-specific enums */ 287 /* WebGL-specific enums */
288 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; 288 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
289 289
290 /* Buffer objects */ 290 /* Buffer objects */
291 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0);
292 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr cData, GLuint srcOffset, optional GLuint length = 0);
291 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size); 293 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size);
292 void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer? returnedD ata); 294 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0);
295 // TODO(zmo): Obsolete, remove after WebGL2 conformance tests are updated.
296 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBuffer? ds tData);
293 297
294 /* Framebuffer objects */ 298 /* Framebuffer objects */
295 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ; 299 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ;
296 [CallWith=ScriptState] void framebufferTextureLayer(GLenum target, GLenum at tachment, WebGLTexture? texture, GLint level, GLint layer); 300 [CallWith=ScriptState] void framebufferTextureLayer(GLenum target, GLenum at tachment, WebGLTexture? texture, GLint level, GLint layer);
297 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname); 301 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname);
298 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); 302 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);
299 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height); 303 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height);
300 void readBuffer(GLenum mode); 304 void readBuffer(GLenum mode);
301 305
302 /* Renderbuffer objects */ 306 /* Renderbuffer objects */
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 /* Vertex Array Objects */ 430 /* Vertex Array Objects */
427 WebGLVertexArrayObject createVertexArray(); 431 WebGLVertexArrayObject createVertexArray();
428 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array); 432 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array);
429 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 433 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
430 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray); 434 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray);
431 435
432 /* Reading */ 436 /* Reading */
433 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 437 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
434 }; 438 };
435 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 439 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698