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

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

Issue 6712050: Revert 78801 - Addition of GL-redirecting mechanism for the Skia/GPU back-end. During execution o... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
266 virtual void LineWidth(GLfloat width) = 0; 264 virtual void LineWidth(GLfloat width) = 0;
267 265
268 virtual void LinkProgram(GLuint program) = 0; 266 virtual void LinkProgram(GLuint program) = 0;
269 267
270 virtual void PixelStorei(GLenum pname, GLint param) = 0; 268 virtual void PixelStorei(GLenum pname, GLint param) = 0;
271 269
272 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 270 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
273 271
274 virtual void ReadPixels( 272 virtual void ReadPixels(
275 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, 273 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 const GLfloat* value) = 0; 370 const GLfloat* value) = 0;
373 371
374 virtual void UniformMatrix3fv( 372 virtual void UniformMatrix3fv(
375 GLint location, GLsizei count, GLboolean transpose, 373 GLint location, GLsizei count, GLboolean transpose,
376 const GLfloat* value) = 0; 374 const GLfloat* value) = 0;
377 375
378 virtual void UniformMatrix4fv( 376 virtual void UniformMatrix4fv(
379 GLint location, GLsizei count, GLboolean transpose, 377 GLint location, GLsizei count, GLboolean transpose,
380 const GLfloat* value) = 0; 378 const GLfloat* value) = 0;
381 379
382 virtual GLboolean UnmapBuffer(GLenum target) = 0;
383
384 virtual void UseProgram(GLuint program) = 0; 380 virtual void UseProgram(GLuint program) = 0;
385 381
386 virtual void ValidateProgram(GLuint program) = 0; 382 virtual void ValidateProgram(GLuint program) = 0;
387 383
388 virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0; 384 virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0;
389 385
390 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0; 386 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0;
391 387
392 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0; 388 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0;
393 389
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 423
428 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; 424 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0;
429 425
430 private: 426 private:
431 static GLInterface* interface_; 427 static GLInterface* interface_;
432 }; 428 };
433 429
434 } // namespace gfx 430 } // namespace gfx
435 431
436 #endif // APP_GFX_GL_GL_INTERFACE_H_ 432 #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