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

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

Issue 1499793003: Fix classes that have too many virtuals for inline constructors. Base URL: https://chromium.googlesource.com/chromium/src.git@enable-virtuals-as-complexity
Patch Set: Finish fixing the codebase that's accessible from Linux. Created 5 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
OLDNEW
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 "ui/gl/gl_context_stub.h" 8 #include "ui/gl/gl_context_stub.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 // Lightweight GLContext stub implementation that returns a constructed 12 // Lightweight GLContext stub implementation that returns a constructed
13 // extensions string. We use this to create a context that we can use to 13 // 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. 14 // initialize GL extensions with, without actually creating a platform context.
15 class GL_EXPORT GLContextStubWithExtensions : public gfx::GLContextStub { 15 class GL_EXPORT GLContextStubWithExtensions : public gfx::GLContextStub {
16 public: 16 public:
17 GLContextStubWithExtensions() {} 17 GLContextStubWithExtensions();
18 std::string GetExtensions() override; 18 std::string GetExtensions() override;
19 19
20 void AddExtensionsString(const char* extensions); 20 void AddExtensionsString(const char* extensions);
21 void SetGLVersionString(const char* version_str); 21 void SetGLVersionString(const char* version_str);
22 bool WasAllocatedUsingRobustnessExtension() override; 22 bool WasAllocatedUsingRobustnessExtension() override;
23 23
24 protected: 24 protected:
25 std::string GetGLVersion() override; 25 std::string GetGLVersion() override;
26 26
27 ~GLContextStubWithExtensions() override {} 27 ~GLContextStubWithExtensions() override {}
28 28
29 private: 29 private:
30 std::string extensions_; 30 std::string extensions_;
31 std::string version_str_; 31 std::string version_str_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(GLContextStubWithExtensions); 33 DISALLOW_COPY_AND_ASSIGN(GLContextStubWithExtensions);
34 }; 34 };
35 35
36 } // namespace gfx 36 } // namespace gfx
37 37
38 #endif // UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_ 38 #endif // UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698