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

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

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebGLTextureAttachment::attach Created 5 years, 1 month 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 unsigned long GLenum; 5 typedef unsigned long GLenum;
6 typedef boolean GLboolean; 6 typedef boolean GLboolean;
7 typedef unsigned long GLbitfield; 7 typedef unsigned long GLbitfield;
8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. 8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type.
9 typedef short GLshort; 9 typedef short GLshort;
10 typedef long GLint; 10 typedef long GLint;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 /* WebGL-specific enums */ 302 /* WebGL-specific enums */
303 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; 303 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
304 304
305 /* Buffer objects */ 305 /* Buffer objects */
306 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size); 306 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO ffset, GLintptr writeOffset, GLsizeiptr size);
307 void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer? returnedD ata); 307 void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer? returnedD ata);
308 308
309 /* Framebuffer objects */ 309 /* Framebuffer objects */
310 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ; 310 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) ;
311 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture texture, GLint level, GLint layer); 311 [CallWith=ScriptState] void framebufferTextureLayer(GLenum target, GLenum at tachment, WebGLTexture? texture, GLint level, GLint layer);
312 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname); 312 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname);
313 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); 313 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);
314 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height); 314 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height);
315 void readBuffer(GLenum mode); 315 void readBuffer(GLenum mode);
316 316
317 /* Renderbuffer objects */ 317 /* Renderbuffer objects */
318 void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum i nternalformat, GLsizei width, GLsizei height); 318 void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum i nternalformat, GLsizei width, GLsizei height);
319 319
320 /* Texture objects */ 320 /* Texture objects */
321 void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height); 321 void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsi zei width, GLsizei height);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 /* Vertex Array Objects */ 436 /* Vertex Array Objects */
437 WebGLVertexArrayObject createVertexArray(); 437 WebGLVertexArrayObject createVertexArray();
438 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array); 438 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array);
439 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 439 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
440 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray); 440 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray);
441 441
442 /* Reading */ 442 /* Reading */
443 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 443 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
444 }; 444 };
445 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 445 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698