reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 1 | #ifndef GrUserConfig_DEFINED |
| 2 | #define GrUserConfig_DEFINED |
| 3 | |
| 4 | #if defined(GR_USER_CONFIG_FILE) |
| 5 | #error "default user config pulled in but GR_USER_CONFIG_FILE is defined." |
| 6 | #endif |
| 7 | |
| 8 | #if 0 |
| 9 | #undef GR_RELEASE |
| 10 | #undef GR_DEBUG |
| 11 | #define GR_RELEASE 0 |
| 12 | #define GR_DEBUG 1 |
| 13 | #endif |
| 14 | |
| 15 | /* |
| 16 | Copyright 2010 Google Inc. |
| 17 | |
| 18 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 19 | you may not use this file except in compliance with the License. |
| 20 | You may obtain a copy of the License at |
| 21 | |
| 22 | http://www.apache.org/licenses/LICENSE-2.0 |
| 23 | |
| 24 | Unless required by applicable law or agreed to in writing, software |
| 25 | distributed under the License is distributed on an "AS IS" BASIS, |
| 26 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 27 | See the License for the specific language governing permissions and |
| 28 | limitations under the License. |
| 29 | */ |
| 30 | |
| 31 | //#define GR_FORCE_GLCHECKERR 1 |
| 32 | |
| 33 | /* |
| 34 | * The default 32bit pixel config for texture upload is GL_RGBA. If your |
| 35 | * bitmaps map to a different GL enum, specify that with this define. |
| 36 | */ |
| 37 | //#define SK_GL_32BPP_COLOR_FORMAT GL_RGBA |
| 38 | |
| 39 | /* |
| 40 | * To diagnose texture cache performance, define this to 1 if you want to see |
| 41 | * a log statement everytime we upload an image to create a texture. |
| 42 | */ |
| 43 | //#define GR_DUMP_TEXTURE_UPLOAD 1 |
| 44 | |
bsalomon@google.com | e9557f9 | 2010-12-23 20:59:40 +0000 | [diff] [blame^] | 45 | /* |
| 46 | * To log all GL calls define this. Can be turned on and off at runtime by |
| 47 | * gPrintGL global variable. |
| 48 | */ |
| 49 | //#define GR_GL_LOG_CALLS 1 |
| 50 | |
reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 51 | //////////////////////////////////////////////////////////////////////////////// |
| 52 | // Decide Ganesh types |
| 53 | |
| 54 | #define GR_SCALAR_IS_FIXED 0 |
| 55 | #define GR_SCALAR_IS_FLOAT 1 |
| 56 | |
| 57 | #define GR_TEXT_SCALAR_IS_USHORT 0 |
| 58 | #define GR_TEXT_SCALAR_IS_FIXED 0 |
| 59 | #define GR_TEXT_SCALAR_IS_FLOAT 1 |
| 60 | |
| 61 | #endif |
| 62 | |
| 63 | |