| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef GrGLConfig_chrome_DEFINED | 8 #ifndef GrGLConfig_chrome_DEFINED |
| 9 #define GrGLConfig_chrome_DEFINED | 9 #define GrGLConfig_chrome_DEFINED |
| 10 | 10 |
| 11 // glGetError() forces a sync with gpu process on chrome | 11 // glGetError() forces a sync with gpu process on chrome |
| 12 #define GR_GL_CHECK_ERROR_START 0 | 12 #define GR_GL_CHECK_ERROR_START 0 |
| 13 | 13 |
| 14 #if defined(SK_BUILD_FOR_WIN32) | 14 #if defined(SK_BUILD_FOR_WIN32) |
| 15 // ANGLE creates a temp VB for vertex attributes not specified per-vertex. | |
| 16 #define GR_GL_NO_CONSTANT_ATTRIBUTES 1 | |
| 17 | |
| 18 // For RGBA teximage/readpixels ANGLE will sw-convert to/from BGRA. | 15 // For RGBA teximage/readpixels ANGLE will sw-convert to/from BGRA. |
| 19 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 1 | 16 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 1 |
| 20 | 17 |
| 21 // ANGLE can go faster if the entire fbo is read rather than a subrect | 18 // ANGLE can go faster if the entire fbo is read rather than a subrect |
| 22 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 1 | 19 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 1 |
| 23 #else | 20 #else |
| 24 #define GR_GL_NO_CONSTANT_ATTRIBUTES 0 | |
| 25 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 0 | 21 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 0 |
| 26 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 0 | 22 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 0 |
| 27 #endif | 23 #endif |
| 28 | 24 |
| 29 // cmd buffer allocates memory and memsets it to zero when it sees glBufferData | 25 // cmd buffer allocates memory and memsets it to zero when it sees glBufferData |
| 30 // with NULL. | 26 // with NULL. |
| 31 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0 | 27 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0 |
| 32 | 28 |
| 33 // chrome uses this to set the context on each GL call. | 29 // chrome uses this to set the context on each GL call. |
| 34 #define GR_GL_PER_GL_FUNC_CALLBACK 1 | 30 #define GR_GL_PER_GL_FUNC_CALLBACK 1 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 45 | 41 |
| 46 // Use updated Khronos signature for glShaderSource | 42 // Use updated Khronos signature for glShaderSource |
| 47 // (const char* const instead of char**). | 43 // (const char* const instead of char**). |
| 48 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1 | 44 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1 |
| 49 | 45 |
| 50 #if !defined(GR_GL_IGNORE_ES3_MSAA) | 46 #if !defined(GR_GL_IGNORE_ES3_MSAA) |
| 51 #define GR_GL_IGNORE_ES3_MSAA 1 | 47 #define GR_GL_IGNORE_ES3_MSAA 1 |
| 52 #endif | 48 #endif |
| 53 | 49 |
| 54 #endif | 50 #endif |
| OLD | NEW |