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

Unified Diff: include/gpu/gl/GrGLConfig.h

Issue 876933004: Fix indirect use of defined() directive (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/GrGLConfig.h
diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h
index b8cc216019da6645c4743799884726e2593b7ee2..93d5b395cb812bf5e5e439246258c863fcb956eb 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
« 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