Index: include/gpu/gl/GrGLConfig_chrome.h |
diff --git a/include/gpu/gl/GrGLConfig_chrome.h b/include/gpu/gl/GrGLConfig_chrome.h |
index fe3578339c8b00d0b3bce7aff96e0c7aa4350414..acad90450c11c8b66843bb6743e82a5d04e142df 100644 |
--- a/include/gpu/gl/GrGLConfig_chrome.h |
+++ b/include/gpu/gl/GrGLConfig_chrome.h |
@@ -11,14 +11,20 @@ |
// glGetError() forces a sync with gpu process on chrome |
#define GR_GL_CHECK_ERROR_START 0 |
+#if defined(SK_BUILD_FOR_WIN32) |
// ANGLE creates a temp VB for vertex attributes not specified per-vertex. |
-#define GR_GL_NO_CONSTANT_ATTRIBUTES GR_WIN32_BUILD |
+#define GR_GL_NO_CONSTANT_ATTRIBUTES 1 |
// For RGBA teximage/readpixels ANGLE will sw-convert to/from BGRA. |
-#define GR_GL_RGBA_8888_PIXEL_OPS_SLOW GR_WIN32_BUILD |
+#define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 1 |
// ANGLE can go faster if the entire fbo is read rather than a subrect |
-#define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL GR_WIN32_BUILD |
+#define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 1 |
+#else |
+#define GR_GL_NO_CONSTANT_ATTRIBUTES 0 |
+#define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 0 |
+#define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 0 |
+#endif |
// cmd buffer allocates memory and memsets it to zero when it sees glBufferData |
// with NULL. |