OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTEXT_STUB_WITH_EXTENSIONS_H_ | 5 #ifndef UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ |
6 #define UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ | 6 #define UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "ui/gl/gl_context_stub.h" | 9 #include "ui/gl/gl_context_stub.h" |
9 | 10 |
10 namespace gfx { | 11 namespace gfx { |
11 | 12 |
12 // Lightweight GLContext stub implementation that returns a constructed | 13 // Lightweight GLContext stub implementation that returns a constructed |
13 // extensions string. We use this to create a context that we can use to | 14 // extensions string. We use this to create a context that we can use to |
14 // initialize GL extensions with, without actually creating a platform context. | 15 // initialize GL extensions with, without actually creating a platform context. |
15 class GL_EXPORT GLContextStubWithExtensions : public gfx::GLContextStub { | 16 class GL_EXPORT GLContextStubWithExtensions : public gfx::GLContextStub { |
16 public: | 17 public: |
17 GLContextStubWithExtensions() {} | 18 GLContextStubWithExtensions() {} |
(...skipping 11 matching lines...) Expand all Loading... |
29 private: | 30 private: |
30 std::string extensions_; | 31 std::string extensions_; |
31 std::string version_str_; | 32 std::string version_str_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(GLContextStubWithExtensions); | 34 DISALLOW_COPY_AND_ASSIGN(GLContextStubWithExtensions); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace gfx | 37 } // namespace gfx |
37 | 38 |
38 #endif // UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ | 39 #endif // UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ |
OLD | NEW |