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

Unified Diff: ui/gl/gl_context_stub.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_osmesa.cc ('k') | ui/gl/gl_context_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_stub.h
diff --git a/ui/gl/gl_context_stub.h b/ui/gl/gl_context_stub.h
index d98927b2c5114edd08caf2d4cabcfb1443ba163f..7ddc3d1f02855ea7384b95243aef935435bac29b 100644
--- a/ui/gl/gl_context_stub.h
+++ b/ui/gl/gl_context_stub.h
@@ -27,12 +27,25 @@ class GL_EXPORT GLContextStub : public GLContextReal {
bool IsCurrent(GLSurface* surface) override;
void* GetHandle() override;
void OnSetSwapInterval(int interval) override;
+ std::string GetGLVersion() override;
std::string GetGLRenderer() override;
+ bool WasAllocatedUsingRobustnessExtension() override;
+ std::string GetExtensions() override;
+
+ void SetUseStubApi(bool stub_api);
+ void SetExtensionsString(const char* extensions);
+ void SetGLVersionString(const char* version_str);
protected:
~GLContextStub() override;
+ GLApi* CreateGLApi(DriverGL* driver) override;
+
private:
+ bool use_stub_api_;
+ std::string version_str_;
+ std::string extensions_;
+
DISALLOW_COPY_AND_ASSIGN(GLContextStub);
};
« no previous file with comments | « ui/gl/gl_context_osmesa.cc ('k') | ui/gl/gl_context_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698