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

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

Issue 1300573002: WebGL 2: add readPixels API to read pixels into pixel pack buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: offset should not be less than 0 Created 5 years, 4 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 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 GLuint getUniformBlockIndex(WebGLProgram? program, DOMString uniformBlockNam e); 425 GLuint getUniformBlockIndex(WebGLProgram? program, DOMString uniformBlockNam e);
426 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram? prog ram, GLuint uniformBlockIndex, GLenum pname); 426 [CallWith=ScriptState] any getActiveUniformBlockParameter(WebGLProgram? prog ram, GLuint uniformBlockIndex, GLenum pname);
427 DOMString getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBlo ckIndex); 427 DOMString getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBlo ckIndex);
428 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL uint uniformBlockBinding); 428 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL uint uniformBlockBinding);
429 429
430 /* Vertex Array Objects */ 430 /* Vertex Array Objects */
431 WebGLVertexArrayObject createVertexArray(); 431 WebGLVertexArrayObject createVertexArray();
432 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); 432 void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
433 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 433 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
434 void bindVertexArray(WebGLVertexArrayObject? vertexArray); 434 void bindVertexArray(WebGLVertexArrayObject? vertexArray);
435
436 /* Reading */
437 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
435 }; 438 };
436 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 439 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698