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

Unified Diff: ui/gl/gl_context_stub_with_extensions.h

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_context_stub.cc ('k') | ui/gl/gl_context_stub_with_extensions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_stub_with_extensions.h
diff --git a/ui/gl/gl_context_stub_with_extensions.h b/ui/gl/gl_context_stub_with_extensions.h
deleted file mode 100644
index f586c397cb5f1766b352a8cd3f4a0352b9292dc4..0000000000000000000000000000000000000000
--- a/ui/gl/gl_context_stub_with_extensions.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_
-#define UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_
-
-#include "base/macros.h"
-#include "ui/gl/gl_context_stub.h"
-#include "ui/gl/gl_export.h"
-
-namespace gl {
-
-// Lightweight GLContext stub implementation that returns a constructed
-// extensions string. We use this to create a context that we can use to
-// initialize GL extensions with, without actually creating a platform context.
-class GL_EXPORT GLContextStubWithExtensions : public GLContextStub {
- public:
- GLContextStubWithExtensions() {}
- std::string GetExtensions() override;
-
- void AddExtensionsString(const char* extensions);
- void SetGLVersionString(const char* version_str);
- bool WasAllocatedUsingRobustnessExtension() override;
-
- protected:
- std::string GetGLVersion() override;
-
- ~GLContextStubWithExtensions() override {}
-
- private:
- std::string extensions_;
- std::string version_str_;
-
- DISALLOW_COPY_AND_ASSIGN(GLContextStubWithExtensions);
-};
-
-} // namespace gl
-
-#endif // UI_GL_GL_CONTEXT_STUB_WITH_EXTENSIONS_H_
« no previous file with comments | « ui/gl/gl_context_stub.cc ('k') | ui/gl/gl_context_stub_with_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698