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

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

Issue 19477005: Improve Skia configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use os_posix for posix tests. Created 7 years, 2 months 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/ext/SkThread_chrome.cc » ('j') | no next file with comments »
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 #define SK_A32_SHIFT 24 176 #define SK_A32_SHIFT 24
177 #define SK_R32_SHIFT 16 177 #define SK_R32_SHIFT 16
178 #define SK_G32_SHIFT 8 178 #define SK_G32_SHIFT 8
179 #define SK_B32_SHIFT 0 179 #define SK_B32_SHIFT 0
180 #endif 180 #endif
181 181
182 #if defined(SK_BUILD_FOR_WIN32) 182 #if defined(SK_BUILD_FOR_WIN32)
183 183
184 #define SK_BUILD_FOR_WIN 184 #define SK_BUILD_FOR_WIN
185 185
186 // VC8 doesn't support stdint.h, so we define those types here.
187 #define SK_IGNORE_STDINT_DOT_H
188 typedef signed char int8_t;
189 typedef unsigned char uint8_t;
190 typedef short int16_t;
191 typedef unsigned short uint16_t;
192 typedef int int32_t;
193 typedef unsigned uint32_t;
194
195 // VC doesn't support __restrict__, so make it a NOP.
196 #undef SK_RESTRICT
197 #define SK_RESTRICT
198
199 // Skia uses this deprecated bzero function to fill zeros into a string. 186 // Skia uses this deprecated bzero function to fill zeros into a string.
200 #define bzero(str, len) memset(str, 0, len) 187 #define bzero(str, len) memset(str, 0, len)
201 188
202 #elif defined(SK_BUILD_FOR_MAC) 189 #elif defined(SK_BUILD_FOR_MAC)
203 190
204 #define SK_CPU_LENDIAN 191 #define SK_CPU_LENDIAN
205 #undef SK_CPU_BENDIAN 192 #undef SK_CPU_BENDIAN
206 193
207 #elif defined(SK_BUILD_FOR_UNIX) 194 #elif defined(SK_BUILD_FOR_UNIX)
208 195
(...skipping 20 matching lines...) Expand all
229 // assertion. 216 // assertion.
230 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") 217 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
231 218
232 // Uncomment the following line to forward skia trace events to Chrome 219 // Uncomment the following line to forward skia trace events to Chrome
233 // tracing. 220 // tracing.
234 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" 221 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h"
235 222
236 // ===== End Chrome-specific definitions ===== 223 // ===== End Chrome-specific definitions =====
237 224
238 #endif 225 #endif
OLDNEW
« no previous file with comments | « no previous file | skia/ext/SkThread_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698