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

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

Issue 7058070: enable antialiasing for skia-gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 | no next file » | 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 on, several webkit pixel tests will need to be rebaselined, too. 155 on, several webkit pixel tests will need to be rebaselined, too.
156 http://crbug.com/41756 156 http://crbug.com/41756
157 */ 157 */
158 #define SK_DISABLE_DITHER_32BIT_GRADIENT 158 #define SK_DISABLE_DITHER_32BIT_GRADIENT
159 159
160 // ===== Begin Chrome-specific definitions ===== 160 // ===== Begin Chrome-specific definitions =====
161 161
162 #define SK_SCALAR_IS_FLOAT 162 #define SK_SCALAR_IS_FLOAT
163 #undef SK_SCALAR_IS_FIXED 163 #undef SK_SCALAR_IS_FIXED
164 164
165 #define GR_MAX_OFFSCREEN_AA_DIM 512
166
165 // Log the file and line number for assertions. 167 // Log the file and line number for assertions.
166 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__) 168 #define SkDebugf(...) SkDebugf_FileLine(__FILE__, __LINE__, false, __VA_ARGS__)
167 SK_API void SkDebugf_FileLine(const char* file, int line, bool fatal, 169 SK_API void SkDebugf_FileLine(const char* file, int line, bool fatal,
168 const char* format, ...); 170 const char* format, ...);
169 171
170 // Marking the debug print as "fatal" will cause a debug break, so we don't need 172 // Marking the debug print as "fatal" will cause a debug break, so we don't need
171 // a separate crash call here. 173 // a separate crash call here.
172 #define SK_DEBUGBREAK(cond) do { if (!(cond)) { \ 174 #define SK_DEBUGBREAK(cond) do { if (!(cond)) { \
173 SkDebugf_FileLine(__FILE__, __LINE__, true, \ 175 SkDebugf_FileLine(__FILE__, __LINE__, true, \
174 "%s:%d: failed assertion \"%s\"\n", \ 176 "%s:%d: failed assertion \"%s\"\n", \
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 #endif 227 #endif
226 228
227 // The default crash macro writes to badbeef which can cause some strange 229 // The default crash macro writes to badbeef which can cause some strange
228 // problems. Instead, pipe this through to the logging function as a fatal 230 // problems. Instead, pipe this through to the logging function as a fatal
229 // assertion. 231 // assertion.
230 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") 232 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH")
231 233
232 // ===== End Chrome-specific definitions ===== 234 // ===== End Chrome-specific definitions =====
233 235
234 #endif 236 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698