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

Side by Side Diff: ui/gfx/gl/gl_interface.h

Issue 7564013: Roll skia to r2034 (and add new gl bindings) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_bindings_skia_in_process.cc ('k') | webkit/glue/gl_bindings_skia_cmd_buffer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file implements glue to a GL interface so we can mock it for unit 5 // This file implements glue to a GL interface so we can mock it for unit
6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
7 // side code. 7 // side code.
8 8
9 #ifndef UI_GFX_GL_GL_INTERFACE_H_ 9 #ifndef UI_GFX_GL_GL_INTERFACE_H_
10 #define UI_GFX_GL_GL_INTERFACE_H_ 10 #define UI_GFX_GL_GL_INTERFACE_H_
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual void DepthRangef(GLclampf zNear, GLclampf zFar) = 0; 161 virtual void DepthRangef(GLclampf zNear, GLclampf zFar) = 0;
162 162
163 virtual void DetachShader(GLuint program, GLuint shader) = 0; 163 virtual void DetachShader(GLuint program, GLuint shader) = 0;
164 164
165 virtual void Disable(GLenum cap) = 0; 165 virtual void Disable(GLenum cap) = 0;
166 166
167 virtual void DisableVertexAttribArray(GLuint index) = 0; 167 virtual void DisableVertexAttribArray(GLuint index) = 0;
168 168
169 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0; 169 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0;
170 170
171 virtual void DrawBuffer(GLenum mode) = 0;
172
173 virtual void DrawBuffersARB(GLsizei n, const GLenum* bufs) = 0;
174
171 virtual void DrawElements(GLenum mode, 175 virtual void DrawElements(GLenum mode,
172 GLsizei count, 176 GLsizei count,
173 GLenum type, 177 GLenum type,
174 const void* indices) = 0; 178 const void* indices) = 0;
175 179
176 virtual void EGLImageTargetTexture2DOES( 180 virtual void EGLImageTargetTexture2DOES(
177 GLenum target, GLeglImageOES image) = 0; 181 GLenum target, GLeglImageOES image) = 0;
178 182
179 virtual void Enable(GLenum cap) = 0; 183 virtual void Enable(GLenum cap) = 0;
180 184
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 virtual void* MapBuffer(GLenum target, GLenum access) = 0; 343 virtual void* MapBuffer(GLenum target, GLenum access) = 0;
340 344
341 virtual void LineWidth(GLfloat width) = 0; 345 virtual void LineWidth(GLfloat width) = 0;
342 346
343 virtual void LinkProgram(GLuint program) = 0; 347 virtual void LinkProgram(GLuint program) = 0;
344 348
345 virtual void PixelStorei(GLenum pname, GLint param) = 0; 349 virtual void PixelStorei(GLenum pname, GLint param) = 0;
346 350
347 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 351 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
348 352
353 virtual void ReadBuffer(GLenum src) = 0;
354
349 virtual void ReadPixels(GLint x, GLint y, 355 virtual void ReadPixels(GLint x, GLint y,
350 GLsizei width, GLsizei height, 356 GLsizei width, GLsizei height,
351 GLenum format, 357 GLenum format,
352 GLenum type, 358 GLenum type,
353 void* pixels) = 0; 359 void* pixels) = 0;
354 360
355 virtual void ReleaseShaderCompiler(void) = 0; 361 virtual void ReleaseShaderCompiler(void) = 0;
356 362
357 virtual void RenderbufferStorageEXT(GLenum target, 363 virtual void RenderbufferStorageEXT(GLenum target,
358 GLenum internalformat, 364 GLenum internalformat,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 553
548 virtual GLenum GetGraphicsResetStatusARB() = 0; 554 virtual GLenum GetGraphicsResetStatusARB() = 0;
549 555
550 private: 556 private:
551 static GLInterface* interface_; 557 static GLInterface* interface_;
552 }; 558 };
553 559
554 } // namespace gfx 560 } // namespace gfx
555 561
556 #endif // UI_GFX_GL_GL_INTERFACE_H_ 562 #endif // UI_GFX_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_bindings_skia_in_process.cc ('k') | webkit/glue/gl_bindings_skia_cmd_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698