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

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

Issue 14902003: Move WrappedTexImage functionality to ui/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | 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) 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_API_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_API_IMPLEMENTATION_H_ 6 #define UI_GL_GL_API_IMPLEMENTATION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
(...skipping 29 matching lines...) Expand all
40 40
41 DriverGL* driver_; 41 DriverGL* driver_;
42 }; 42 };
43 43
44 // Implemenents the GL API by calling directly into the driver. 44 // Implemenents the GL API by calling directly into the driver.
45 class GL_EXPORT RealGLApi : public GLApiBase { 45 class GL_EXPORT RealGLApi : public GLApiBase {
46 public: 46 public:
47 RealGLApi(); 47 RealGLApi();
48 virtual ~RealGLApi(); 48 virtual ~RealGLApi();
49 void Initialize(DriverGL* driver); 49 void Initialize(DriverGL* driver);
50
51 virtual void glTexImage2DFn(
52 GLenum target, GLint level, GLint internalformat,
53 GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,
54 const void* pixels) OVERRIDE;
55 virtual void glTexStorage2DEXTFn(
56 GLenum target, GLsizei levels, GLenum internalformat, GLsizei width,
57 GLsizei height) OVERRIDE;
58 virtual void glTexSubImage2DFn(
59 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
60 GLsizei height, GLenum format, GLenum type, const void* pixels) OVERRIDE;
50 }; 61 };
51 62
52 // Inserts a TRACE for every GL call. 63 // Inserts a TRACE for every GL call.
53 class GL_EXPORT TraceGLApi : public GLApi { 64 class GL_EXPORT TraceGLApi : public GLApi {
54 public: 65 public:
55 TraceGLApi(GLApi* gl_api) : gl_api_(gl_api) { } 66 TraceGLApi(GLApi* gl_api) : gl_api_(gl_api) { }
56 virtual ~TraceGLApi(); 67 virtual ~TraceGLApi();
57 68
58 // Include the auto-generated part of this class. We split this because 69 // Include the auto-generated part of this class. We split this because
59 // it means we can easily edit the non-auto generated parts right here in 70 // it means we can easily edit the non-auto generated parts right here in
(...skipping 28 matching lines...) Expand all
88 // The current virtual context. 99 // The current virtual context.
89 GLContext* current_context_; 100 GLContext* current_context_;
90 101
91 // The supported extensions being advertised for this virtual context. 102 // The supported extensions being advertised for this virtual context.
92 std::string extensions_; 103 std::string extensions_;
93 }; 104 };
94 105
95 } // namespace gfx 106 } // namespace gfx
96 107
97 #endif // UI_GL_GL_API_IMPLEMENTATION_H_ 108 #endif // UI_GL_GL_API_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698