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

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

Issue 10797055: gpu in-memory program cache implementation with a memory limit + lru eviction. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nit fixes 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
412 virtual void ProgramParameteri(GLuint program, GLenum pname, GLint value) = 0;
413
401 virtual void QueryCounter(GLuint id, GLenum target) = 0; 414 virtual void QueryCounter(GLuint id, GLenum target) = 0;
402 415
403 virtual void ReadBuffer(GLenum src) = 0; 416 virtual void ReadBuffer(GLenum src) = 0;
404 417
405 virtual void ReadPixels(GLint x, GLint y, 418 virtual void ReadPixels(GLint x, GLint y,
406 GLsizei width, GLsizei height, 419 GLsizei width, GLsizei height,
407 GLenum format, 420 GLenum format,
408 GLenum type, 421 GLenum type,
409 void* pixels) = 0; 422 void* pixels) = 0;
410 423
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 645
633 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 646 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
634 647
635 private: 648 private:
636 static GLInterface* interface_; 649 static GLInterface* interface_;
637 }; 650 };
638 651
639 } // namespace gfx 652 } // namespace gfx
640 653
641 #endif // UI_GL_GL_INTERFACE_H_ 654 #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