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

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

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: tiny fix for android and windows build 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
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
275 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0; 281 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0;
276 282
277 // TODO(gman): Implement this 283 // TODO(gman): Implement this
278 virtual void GetProgramInfoLog(GLuint program, 284 virtual void GetProgramInfoLog(GLuint program,
279 GLsizei bufsize, 285 GLsizei bufsize,
280 GLsizei* length, 286 GLsizei* length,
281 char* infolog) = 0; 287 char* infolog) = 0;
282 288
283 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0; 289 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0;
284 290
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 virtual void LineWidth(GLfloat width) = 0; 397 virtual void LineWidth(GLfloat width) = 0;
392 398
393 virtual void LinkProgram(GLuint program) = 0; 399 virtual void LinkProgram(GLuint program) = 0;
394 400
395 virtual void PixelStorei(GLenum pname, GLint param) = 0; 401 virtual void PixelStorei(GLenum pname, GLint param) = 0;
396 402
397 virtual void PointParameteri(GLenum pname, GLint param) = 0; 403 virtual void PointParameteri(GLenum pname, GLint param) = 0;
398 404
399 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 405 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
400 406
407 virtual void ProgramBinary(GLuint program,
408 GLenum binaryFormat,
409 const GLvoid* binary,
410 GLsizei length) = 0;
411
401 virtual void QueryCounter(GLuint id, GLenum target) = 0; 412 virtual void QueryCounter(GLuint id, GLenum target) = 0;
402 413
403 virtual void ReadBuffer(GLenum src) = 0; 414 virtual void ReadBuffer(GLenum src) = 0;
404 415
405 virtual void ReadPixels(GLint x, GLint y, 416 virtual void ReadPixels(GLint x, GLint y,
406 GLsizei width, GLsizei height, 417 GLsizei width, GLsizei height,
407 GLenum format, 418 GLenum format,
408 GLenum type, 419 GLenum type,
409 void* pixels) = 0; 420 void* pixels) = 0;
410 421
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 643
633 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 644 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
634 645
635 private: 646 private:
636 static GLInterface* interface_; 647 static GLInterface* interface_;
637 }; 648 };
638 649
639 } // namespace gfx 650 } // namespace gfx
640 651
641 #endif // UI_GL_GL_INTERFACE_H_ 652 #endif // UI_GL_GL_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698