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

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

Issue 10795037: Revert 147328 - Current status of patch: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GL_GL_INTERFACE_H_ 5 #ifndef UI_GL_GL_INTERFACE_H_
6 #define UI_GL_GL_INTERFACE_H_ 6 #define UI_GL_GL_INTERFACE_H_
7 7
8 // This file implements glue to a GL interface so we can mock it for unit 8 // This file implements glue to a GL interface so we can mock it for unit
9 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 9 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
10 // side code. 10 // side code.
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 virtual void GetFloatv(GLenum pname, GLfloat* params) = 0; 266 virtual void GetFloatv(GLenum pname, GLfloat* params) = 0;
267 267
268 virtual void GetFramebufferAttachmentParameterivEXT(GLenum target, 268 virtual void GetFramebufferAttachmentParameterivEXT(GLenum target,
269 GLenum attachment, 269 GLenum attachment,
270 GLenum pname, 270 GLenum pname,
271 GLint* params) = 0; 271 GLint* params) = 0;
272 272
273 virtual void GetIntegerv(GLenum pname, GLint* params) = 0; 273 virtual void GetIntegerv(GLenum pname, GLint* params) = 0;
274 274
275 virtual void GetProgramBinary(GLuint program,
276 GLsizei bufSize,
277 GLsizei* length,
278 GLenum* binaryFormat,
279 GLvoid* binary) = 0;
280
281 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0; 275 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0;
282 276
283 // TODO(gman): Implement this 277 // TODO(gman): Implement this
284 virtual void GetProgramInfoLog(GLuint program, 278 virtual void GetProgramInfoLog(GLuint program,
285 GLsizei bufsize, 279 GLsizei bufsize,
286 GLsizei* length, 280 GLsizei* length,
287 char* infolog) = 0; 281 char* infolog) = 0;
288 282
289 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0; 283 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0;
290 284
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 virtual void LineWidth(GLfloat width) = 0; 391 virtual void LineWidth(GLfloat width) = 0;
398 392
399 virtual void LinkProgram(GLuint program) = 0; 393 virtual void LinkProgram(GLuint program) = 0;
400 394
401 virtual void PixelStorei(GLenum pname, GLint param) = 0; 395 virtual void PixelStorei(GLenum pname, GLint param) = 0;
402 396
403 virtual void PointParameteri(GLenum pname, GLint param) = 0; 397 virtual void PointParameteri(GLenum pname, GLint param) = 0;
404 398
405 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 399 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
406 400
407 virtual void ProgramBinary(GLuint program,
408 GLenum binaryFormat,
409 const GLvoid* binary,
410 GLsizei length) = 0;
411
412 virtual void QueryCounter(GLuint id, GLenum target) = 0; 401 virtual void QueryCounter(GLuint id, GLenum target) = 0;
413 402
414 virtual void ReadBuffer(GLenum src) = 0; 403 virtual void ReadBuffer(GLenum src) = 0;
415 404
416 virtual void ReadPixels(GLint x, GLint y, 405 virtual void ReadPixels(GLint x, GLint y,
417 GLsizei width, GLsizei height, 406 GLsizei width, GLsizei height,
418 GLenum format, 407 GLenum format,
419 GLenum type, 408 GLenum type,
420 void* pixels) = 0; 409 void* pixels) = 0;
421 410
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 632
644 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 633 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
645 634
646 private: 635 private:
647 static GLInterface* interface_; 636 static GLInterface* interface_;
648 }; 637 };
649 638
650 } // namespace gfx 639 } // namespace gfx
651 640
652 #endif // UI_GL_GL_INTERFACE_H_ 641 #endif // UI_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « ui/gl/generate_bindings.py ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698