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_MIXIN_INCLUDE "sk_ref_cnt_ext_debug.h" |
| 157 #else |
| 158 #define SK_REF_CNT_MIXIN_INCLUDE "sk_ref_cnt_ext_release.h" |
| 159 #endif |
| 160 |
155 #define SK_SCALAR_IS_FLOAT | 161 #define SK_SCALAR_IS_FLOAT |
156 #undef SK_SCALAR_IS_FIXED | 162 #undef SK_SCALAR_IS_FIXED |
157 | 163 |
158 #define SK_MSCALAR_IS_FLOAT | 164 #define SK_MSCALAR_IS_FLOAT |
159 #undef SK_MSCALAR_IS_DOUBLE | 165 #undef SK_MSCALAR_IS_DOUBLE |
160 | 166 |
161 #define GR_MAX_OFFSCREEN_AA_DIM 512 | 167 #define GR_MAX_OFFSCREEN_AA_DIM 512 |
162 | 168 |
163 // Log the file and line number for assertions. | 169 // Log the file and line number for assertions. |
164 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__) | 170 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__) |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // assertion. | 222 // assertion. |
217 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 223 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
218 | 224 |
219 // Uncomment the following line to forward skia trace events to Chrome | 225 // Uncomment the following line to forward skia trace events to Chrome |
220 // tracing. | 226 // tracing. |
221 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" | 227 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" |
222 | 228 |
223 // ===== End Chrome-specific definitions ===== | 229 // ===== End Chrome-specific definitions ===== |
224 | 230 |
225 #endif | 231 #endif |
OLD | NEW |