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

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: Created 8 years, 6 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 virtual void* MapBuffer(GLenum target, GLenum access) = 0; 396 virtual void* MapBuffer(GLenum target, GLenum access) = 0;
391 397
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 PolygonOffset(GLfloat factor, GLfloat units) = 0; 404 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
399 405
406 virtual void ProgramBinary(GLuint program,
407 GLenum binaryFormat,
408 const GLvoid* binary,
409 GLsizei length) = 0;
410
400 virtual void QueryCounter(GLuint id, GLenum target) = 0; 411 virtual void QueryCounter(GLuint id, GLenum target) = 0;
401 412
402 virtual void ReadBuffer(GLenum src) = 0; 413 virtual void ReadBuffer(GLenum src) = 0;
403 414
404 virtual void ReadPixels(GLint x, GLint y, 415 virtual void ReadPixels(GLint x, GLint y,
405 GLsizei width, GLsizei height, 416 GLsizei width, GLsizei height,
406 GLenum format, 417 GLenum format,
407 GLenum type, 418 GLenum type,
408 void* pixels) = 0; 419 void* pixels) = 0;
409 420
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 642
632 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 643 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
633 644
634 private: 645 private:
635 static GLInterface* interface_; 646 static GLInterface* interface_;
636 }; 647 };
637 648
638 } // namespace gfx 649 } // namespace gfx
639 650
640 #endif // UI_GL_GL_INTERFACE_H_ 651 #endif // UI_GL_GL_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698