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

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

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file implements glue to a GL interface so we can mock it for unit 5 // This file implements glue to a GL interface so we can mock it for unit
6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
7 // side code. 7 // side code.
8 8
9 #ifndef UI_GFX_GL_GL_INTERFACE_H_ 9 #ifndef UI_GFX_GL_GL_INTERFACE_H_
10 #define UI_GFX_GL_GL_INTERFACE_H_ 10 #define UI_GFX_GL_GL_INTERFACE_H_
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 virtual void TexParameterfv(GLenum target, 454 virtual void TexParameterfv(GLenum target,
455 GLenum pname, 455 GLenum pname,
456 const GLfloat* params) = 0; 456 const GLfloat* params) = 0;
457 457
458 virtual void TexParameteri(GLenum target, GLenum pname, GLint param) = 0; 458 virtual void TexParameteri(GLenum target, GLenum pname, GLint param) = 0;
459 459
460 virtual void TexParameteriv(GLenum target, 460 virtual void TexParameteriv(GLenum target,
461 GLenum pname, 461 GLenum pname,
462 const GLint* params) = 0; 462 const GLint* params) = 0;
463 463
464 virtual void TexStorage2DEXT(GLenum target,
465 GLsizei levels,
466 GLenum internalformat,
467 GLsizei width,
468 GLsizei height) = 0;
469
464 virtual void TexSubImage2D(GLenum target, 470 virtual void TexSubImage2D(GLenum target,
465 GLint level, 471 GLint level,
466 GLint xoffset, GLint yoffset, 472 GLint xoffset, GLint yoffset,
467 GLsizei width, GLsizei height, 473 GLsizei width, GLsizei height,
468 GLenum format, 474 GLenum format,
469 GLenum type, 475 GLenum type,
470 const void* pixels) = 0; 476 const void* pixels) = 0;
471 477
472 virtual void Uniform1f(GLint location, GLfloat x) = 0; 478 virtual void Uniform1f(GLint location, GLfloat x) = 0;
473 479
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 590
585 virtual GLenum GetGraphicsResetStatusARB() = 0; 591 virtual GLenum GetGraphicsResetStatusARB() = 0;
586 592
587 private: 593 private:
588 static GLInterface* interface_; 594 static GLInterface* interface_;
589 }; 595 };
590 596
591 } // namespace gfx 597 } // namespace gfx
592 598
593 #endif // UI_GFX_GL_GL_INTERFACE_H_ 599 #endif // UI_GFX_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/generate_bindings.py ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698