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

Unified Diff: gpu/command_buffer/service/mailbox_synchronizer.cc

Issue 331293003: Add common GLFence::IsSupported() check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: gpu/command_buffer/service/mailbox_synchronizer.cc
diff --git a/gpu/command_buffer/service/mailbox_synchronizer.cc b/gpu/command_buffer/service/mailbox_synchronizer.cc
index d25368ab09642ce0485747a7f314f02174ba24fe..59a3884bcc16e17fcc975ab9ede3c458ca2d2932 100644
--- a/gpu/command_buffer/service/mailbox_synchronizer.cc
+++ b/gpu/command_buffer/service/mailbox_synchronizer.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "gpu/command_buffer/service/mailbox_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
+#include "ui/gl/gl_fence.h"
#include "ui/gl/gl_implementation.h"
namespace gpu {
@@ -32,7 +33,7 @@ bool MailboxSynchronizer::Initialize() {
if (!gfx::g_driver_egl.ext.b_EGL_KHR_image_base ||
!gfx::g_driver_egl.ext.b_EGL_KHR_gl_texture_2D_image ||
!gfx::g_driver_gl.ext.b_GL_OES_EGL_image ||
- !gfx::g_driver_egl.ext.b_EGL_KHR_fence_sync) {
+ !gfx::GLFence::IsSupported()) {
LOG(WARNING) << "MailboxSync not supported due to missing EGL "
"image/fence support";
return false;

Powered by Google App Engine
This is Rietveld 408576698