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

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

Issue 6677105: Redirect Skia/Ganesh GL calls to Mesa during the layout tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add GL mock functions. Created 9 years, 9 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 | « app/gfx/gl/gl_bindings_skia.cc ('k') | gpu/command_buffer/common/gl_mock.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_GFX_GL_GL_INTERFACE_H_ 9 #ifndef APP_GFX_GL_GL_INTERFACE_H_
10 #define APP_GFX_GL_GL_INTERFACE_H_ 10 #define APP_GFX_GL_GL_INTERFACE_H_
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 virtual GLboolean IsFramebufferEXT(GLuint framebuffer) = 0; 254 virtual GLboolean IsFramebufferEXT(GLuint framebuffer) = 0;
255 255
256 virtual GLboolean IsProgram(GLuint program) = 0; 256 virtual GLboolean IsProgram(GLuint program) = 0;
257 257
258 virtual GLboolean IsRenderbufferEXT(GLuint renderbuffer) = 0; 258 virtual GLboolean IsRenderbufferEXT(GLuint renderbuffer) = 0;
259 259
260 virtual GLboolean IsShader(GLuint shader) = 0; 260 virtual GLboolean IsShader(GLuint shader) = 0;
261 261
262 virtual GLboolean IsTexture(GLuint texture) = 0; 262 virtual GLboolean IsTexture(GLuint texture) = 0;
263 263
264 virtual void* MapBuffer(GLenum target, GLenum access) = 0;
265
264 virtual void LineWidth(GLfloat width) = 0; 266 virtual void LineWidth(GLfloat width) = 0;
265 267
266 virtual void LinkProgram(GLuint program) = 0; 268 virtual void LinkProgram(GLuint program) = 0;
267 269
268 virtual void PixelStorei(GLenum pname, GLint param) = 0; 270 virtual void PixelStorei(GLenum pname, GLint param) = 0;
269 271
270 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 272 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
271 273
272 virtual void ReadPixels( 274 virtual void ReadPixels(
273 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, 275 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 const GLfloat* value) = 0; 372 const GLfloat* value) = 0;
371 373
372 virtual void UniformMatrix3fv( 374 virtual void UniformMatrix3fv(
373 GLint location, GLsizei count, GLboolean transpose, 375 GLint location, GLsizei count, GLboolean transpose,
374 const GLfloat* value) = 0; 376 const GLfloat* value) = 0;
375 377
376 virtual void UniformMatrix4fv( 378 virtual void UniformMatrix4fv(
377 GLint location, GLsizei count, GLboolean transpose, 379 GLint location, GLsizei count, GLboolean transpose,
378 const GLfloat* value) = 0; 380 const GLfloat* value) = 0;
379 381
382 virtual GLboolean UnmapBuffer(GLenum target) = 0;
383
380 virtual void UseProgram(GLuint program) = 0; 384 virtual void UseProgram(GLuint program) = 0;
381 385
382 virtual void ValidateProgram(GLuint program) = 0; 386 virtual void ValidateProgram(GLuint program) = 0;
383 387
384 virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0; 388 virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0;
385 389
386 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0; 390 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0;
387 391
388 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0; 392 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0;
389 393
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 427
424 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; 428 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0;
425 429
426 private: 430 private:
427 static GLInterface* interface_; 431 static GLInterface* interface_;
428 }; 432 };
429 433
430 } // namespace gfx 434 } // namespace gfx
431 435
432 #endif // APP_GFX_GL_GL_INTERFACE_H_ 436 #endif // APP_GFX_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_bindings_skia.cc ('k') | gpu/command_buffer/common/gl_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698