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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp

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: third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp b/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
index dd5047330e1f78625ce29b75a3d7a95f2df2d702..097549c63650c333ddc9c7311cd524cd53ae5909 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
@@ -102,6 +102,12 @@ bool WebGLDrawBuffers::satisfiesWebGLRequirements(
gpu::gles2::GLES2Interface* gl = webglContext->contextGL();
Extensions3DUtil* extensionsUtil = webglContext->extensionsUtil();
+ if (!extensionsUtil->isExtensionEnabled("GL_EXT_draw_buffers")) {
+ // Extension can be enabled but is not yet so we trust that the command
+ // decoder has full support
+ return true;
Zhenyao Mo 2017/02/06 22:31:38 So when we actually try to enable this extension,
Geoff Lang 2017/02/07 19:01:15 The comment below says that we can only get here i
+ }
+
// This is called after we make sure GL_EXT_draw_buffers is supported.
GLint maxDrawBuffers = 0;
GLint maxColorAttachments = 0;

Powered by Google App Engine
This is Rietveld 408576698