aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/gl/GrGLConfig.h
diff options
context:
space:
mode:
authorGravatar tomhudson <tomhudson@chromium.org>2015-06-23 06:31:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-23 06:31:32 -0700
commit3fef728e16cc1e21c743be28708d0104a9481de8 (patch)
tree9d798ad8e61e193d4e8464cb804feb9f293f6f8a /include/gpu/gl/GrGLConfig.h
parent702edbd4bc41230902b5fe69d14d15763c27fafe (diff)
Fix indirect use of defined() directive
BUG=432391 R=bsalomon,bungeman1 Review URL: https://codereview.chromium.org/876933004
Diffstat (limited to 'include/gpu/gl/GrGLConfig.h')
-rw-r--r--include/gpu/gl/GrGLConfig.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h
index b8cc216019..93d5b395cb 100644
--- a/include/gpu/gl/GrGLConfig.h
+++ b/include/gpu/gl/GrGLConfig.h
@@ -177,8 +177,10 @@
* Hopefully we will understand this better and have a cleaner fix or get a
* OS/driver level fix.
*/
-#define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \
- (defined(SK_BUILD_FOR_MAC) && \
- !GR_GL_USE_BUFFER_DATA_NULL_HINT)
+#if (defined(SK_BUILD_FOR_MAC) && !GR_GL_USE_BUFFER_DATA_NULL_HINT)
+# define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 1
+#else
+# define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 0
+#endif
#endif