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

Unified Diff: ui/gl/gl_context.cc

Issue 2670213005: Hook ANGLE_request_extension up to the passthrough cmd decoder. (Closed)
Patch Set: Fix extension check. Created 3 years, 10 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
Index: ui/gl/gl_context.cc
diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc
index 3c1d61a0455e8b3b4fe90d68c5f0f2ad4ce1033e..d1ef28558144f1df375f4871f9a06a86abc9a45f 100644
--- a/ui/gl/gl_context.cc
+++ b/ui/gl/gl_context.cc
@@ -138,6 +138,12 @@ CurrentGL* GLContext::GetCurrentGL() {
return current_gl_.get();
}
+void GLContext::ReinitializeDynamicBindings() {
+ DCHECK(IsCurrent(nullptr));
+ dynamic_bindings_initialized_ = false;
+ InitializeDynamicBindings();
+}
+
bool GLContext::HasExtension(const char* name) {
std::string extensions = GetExtensions();
extensions += " ";

Powered by Google App Engine
This is Rietveld 408576698