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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 671643005: Enable anti-alias in WebGL if only GL_EXT_multisampled_render_to_texture is supported. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix type error Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 182ba0b004577c248eec139de540030241b2b0e2..9d0c31ed96f9fd45e403e98838dd09df91f5fdcc 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -94,11 +94,15 @@ PassRefPtr<DrawingBuffer> DrawingBuffer::create(PassOwnPtr<WebGraphicsContext3D>
// This might be the first time we notice that the WebGraphicsContext3D is lost.
return nullptr;
}
- bool multisampleSupported = extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample")
+ bool multisampleSupported = (extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample")
+ || extensionsUtil->supportsExtension("GL_EXT_multisampled_render_to_texture"))
&& extensionsUtil->supportsExtension("GL_OES_rgb8_rgba8");
if (multisampleSupported) {
- extensionsUtil->ensureExtensionEnabled("GL_CHROMIUM_framebuffer_multisample");
extensionsUtil->ensureExtensionEnabled("GL_OES_rgb8_rgba8");
+ if (extensionsUtil->supportsExtension("GL_CHROMIUM_framebuffer_multisample"))
+ extensionsUtil->ensureExtensionEnabled("GL_CHROMIUM_framebuffer_multisample");
+ else
+ extensionsUtil->ensureExtensionEnabled("GL_EXT_multisampled_render_to_texture");
}
bool packedDepthStencilSupported = extensionsUtil->supportsExtension("GL_OES_packed_depth_stencil");
if (packedDepthStencilSupported)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698