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

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: more tests 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 #pragma once 7 #pragma once
8 8
9 // This file implements glue to a GL interface so we can mock it for unit 9 // This file implements glue to a GL interface so we can mock it for unit
10 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 10 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 virtual void GetFloatv(GLenum pname, GLfloat* params) = 0; 267 virtual void GetFloatv(GLenum pname, GLfloat* params) = 0;
268 268
269 virtual void GetFramebufferAttachmentParameterivEXT(GLenum target, 269 virtual void GetFramebufferAttachmentParameterivEXT(GLenum target,
270 GLenum attachment, 270 GLenum attachment,
271 GLenum pname, 271 GLenum pname,
272 GLint* params) = 0; 272 GLint* params) = 0;
273 273
274 virtual void GetIntegerv(GLenum pname, GLint* params) = 0; 274 virtual void GetIntegerv(GLenum pname, GLint* params) = 0;
275 275
276 virtual void GetProgramBinary(GLuint program,
277 GLsizei bufSize,
278 GLsizei* length,
279 GLenum* binaryFormat,
280 GLvoid* binary) = 0;
281
276 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0; 282 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0;
277 283
278 // TODO(gman): Implement this 284 // TODO(gman): Implement this
279 virtual void GetProgramInfoLog(GLuint program, 285 virtual void GetProgramInfoLog(GLuint program,
280 GLsizei bufsize, 286 GLsizei bufsize,
281 GLsizei* length, 287 GLsizei* length,
282 char* infolog) = 0; 288 char* infolog) = 0;
283 289
284 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0; 290 virtual void GetQueryiv(GLenum target, GLenum pname, GLint* params) = 0;
285 291
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 virtual void LineWidth(GLfloat width) = 0; 398 virtual void LineWidth(GLfloat width) = 0;
393 399
394 virtual void LinkProgram(GLuint program) = 0; 400 virtual void LinkProgram(GLuint program) = 0;
395 401
396 virtual void PixelStorei(GLenum pname, GLint param) = 0; 402 virtual void PixelStorei(GLenum pname, GLint param) = 0;
397 403
398 virtual void PointParameteri(GLenum pname, GLint param) = 0; 404 virtual void PointParameteri(GLenum pname, GLint param) = 0;
399 405
400 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; 406 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
401 407
408 virtual void ProgramBinary(GLuint program,
409 GLenum binaryFormat,
410 const GLvoid* binary,
411 GLsizei length) = 0;
412
402 virtual void QueryCounter(GLuint id, GLenum target) = 0; 413 virtual void QueryCounter(GLuint id, GLenum target) = 0;
403 414
404 virtual void ReadBuffer(GLenum src) = 0; 415 virtual void ReadBuffer(GLenum src) = 0;
405 416
406 virtual void ReadPixels(GLint x, GLint y, 417 virtual void ReadPixels(GLint x, GLint y,
407 GLsizei width, GLsizei height, 418 GLsizei width, GLsizei height,
408 GLenum format, 419 GLenum format,
409 GLenum type, 420 GLenum type,
410 void* pixels) = 0; 421 void* pixels) = 0;
411 422
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 644
634 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 645 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
635 646
636 private: 647 private:
637 static GLInterface* interface_; 648 static GLInterface* interface_;
638 }; 649 };
639 650
640 } // namespace gfx 651 } // namespace gfx
641 652
642 #endif // UI_GL_GL_INTERFACE_H_ 653 #endif // UI_GL_GL_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698