Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: skia/config/SkUserConfig.h

Issue 29763002: Enable reference adoption run time checks for Blink+skia in Debug builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing SK_API Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | skia/config/sk_ref_cnt_base_debug.h » ('j') | skia/config/sk_ref_cnt_base_debug.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | skia/config/sk_ref_cnt_base_debug.h » ('j') | skia/config/sk_ref_cnt_base_debug.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698