Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 The Android Open Source Project | 2 * Copyright (C) 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
| 6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
| 7 * | 7 * |
| 8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 * | 9 * |
| 10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 SK_TRACE_EVENT1(event, name1, value1) | 145 SK_TRACE_EVENT1(event, name1, value1) |
| 146 SK_TRACE_EVENT2(event, name1, value1, name2, value2) | 146 SK_TRACE_EVENT2(event, name1, value1, name2, value2) |
| 147 src/utils/SkDebugTrace.h has a trivial implementation that writes to | 147 src/utils/SkDebugTrace.h has a trivial implementation that writes to |
| 148 the debug output stream. If SK_USER_TRACE_INCLUDE_FILE is not defined, | 148 the debug output stream. If SK_USER_TRACE_INCLUDE_FILE is not defined, |
| 149 SkTrace.h will define the above three macros to do nothing. | 149 SkTrace.h will define the above three macros to do nothing. |
| 150 */ | 150 */ |
| 151 #undef SK_USER_TRACE_INCLUDE_FILE | 151 #undef SK_USER_TRACE_INCLUDE_FILE |
| 152 | 152 |
| 153 // ===== Begin Chrome-specific definitions ===== | 153 // ===== Begin Chrome-specific definitions ===== |
| 154 | 154 |
| 155 #ifdef SK_DEBUG | |
| 156 #define SK_REF_CNT_BASE_INCLUDE "sk_ref_cnt_base_debug.h" | |
|
Stephen White
2013/10/21 22:11:28
Ew. I guess I missed the code review where the oth
| |
| 157 #endif | |
| 158 | |
| 155 #define SK_SCALAR_IS_FLOAT | 159 #define SK_SCALAR_IS_FLOAT |
| 156 #undef SK_SCALAR_IS_FIXED | 160 #undef SK_SCALAR_IS_FIXED |
| 157 | 161 |
| 158 #define SK_MSCALAR_IS_FLOAT | 162 #define SK_MSCALAR_IS_FLOAT |
| 159 #undef SK_MSCALAR_IS_DOUBLE | 163 #undef SK_MSCALAR_IS_DOUBLE |
| 160 | 164 |
| 161 #define GR_MAX_OFFSCREEN_AA_DIM 512 | 165 #define GR_MAX_OFFSCREEN_AA_DIM 512 |
| 162 | 166 |
| 163 // Log the file and line number for assertions. | 167 // Log the file and line number for assertions. |
| 164 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__) | 168 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 // assertion. | 233 // assertion. |
| 230 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 234 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
| 231 | 235 |
| 232 // Uncomment the following line to forward skia trace events to Chrome | 236 // Uncomment the following line to forward skia trace events to Chrome |
| 233 // tracing. | 237 // tracing. |
| 234 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" | 238 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" |
| 235 | 239 |
| 236 // ===== End Chrome-specific definitions ===== | 240 // ===== End Chrome-specific definitions ===== |
| 237 | 241 |
| 238 #endif | 242 #endif |
| OLD | NEW |