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

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

Issue 8381001: Split GL binding init into core and extension part (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added dependencies to gl.gyp. Used NOT_REACHED() instead of DCHECK(0). Created 9 years, 1 month 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
« no previous file with comments | « ui/gfx/gl/gl_implementation_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
29 GLuint shader) = 0; 29 GLuint shader) = 0;
30 30
31 virtual void BeginQuery(GLenum target, GLuint id) = 0; 31 virtual void BeginQuery(GLenum target, GLuint id) = 0;
32 32
33 virtual void BindAttribLocation(GLuint program, 33 virtual void BindAttribLocation(GLuint program,
34 GLuint index, 34 GLuint index,
35 const char* name) = 0; 35 const char* name) = 0;
36 36
37 virtual void BindBuffer(GLenum target, GLuint buffer) = 0; 37 virtual void BindBuffer(GLenum target, GLuint buffer) = 0;
38 38
39 virtual void BindFragDataLocationIndexedARB(GLuint program, 39 virtual void BindFragDataLocationIndexed(GLuint program,
40 GLuint colorNumber, 40 GLuint colorNumber,
41 GLuint index, 41 GLuint index,
42 const char* name) = 0; 42 const char* name) = 0;
43 43
44 virtual void BindFragDataLocation(GLuint program, 44 virtual void BindFragDataLocation(GLuint program,
45 GLuint colorNumber, 45 GLuint colorNumber,
46 const char* name) = 0; 46 const char* name) = 0;
47 47
48 virtual void BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0; 48 virtual void BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0;
49 49
50 virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 0; 50 virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 0;
51 51
52 virtual void BindTexture(GLenum target, GLuint texture) = 0; 52 virtual void BindTexture(GLenum target, GLuint texture) = 0;
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 584
585 virtual GLenum GetGraphicsResetStatusARB() = 0; 585 virtual GLenum GetGraphicsResetStatusARB() = 0;
586 586
587 private: 587 private:
588 static GLInterface* interface_; 588 static GLInterface* interface_;
589 }; 589 };
590 590
591 } // namespace gfx 591 } // namespace gfx
592 592
593 #endif // UI_GFX_GL_GL_INTERFACE_H_ 593 #endif // UI_GFX_GL_GL_INTERFACE_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_implementation_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698