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

Unified Diff: ui/gl/gl_fence.cc

Issue 2170293002: Use GLVersionInfo instead of gl::GetGLImplementation() to decide GL paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 5 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_cgl.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.cc
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index f990084004234bf6b6161c39620a03bd6338d9e7..5930a32b0d6f53e0ba01fd09a639845aaf69f5b9 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -30,7 +30,7 @@ GLFence::~GLFence() {
bool GLFence::IsSupported() {
DCHECK(GetGLVersionInfo());
return g_driver_gl.ext.b_GL_ARB_sync || GetGLVersionInfo()->is_es3 ||
- GetGLImplementation() == kGLImplementationDesktopGLCoreProfile ||
+ GetGLVersionInfo()->is_desktop_core_profile ||
#if defined(OS_MACOSX)
g_driver_gl.ext.b_GL_APPLE_fence ||
#else
@@ -52,7 +52,7 @@ GLFence* GLFence::Create() {
} else
#endif
if (g_driver_gl.ext.b_GL_ARB_sync || GetGLVersionInfo()->is_es3 ||
- GetGLImplementation() == kGLImplementationDesktopGLCoreProfile) {
+ GetGLVersionInfo()->is_desktop_core_profile) {
// Prefer ARB_sync which supports server-side wait.
fence.reset(new GLFenceARB);
#if defined(OS_MACOSX)
« no previous file with comments | « ui/gl/gl_context_cgl.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698