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

Side by Side Diff: include/core/SkPostConfig.h

Issue 246023008: Deprecate SaveFlags use in the public SkCanvas API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Disable deprecation warnings for skia_android_framework. Created 6 years, 8 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 | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 #if !defined(SK_UNUSED) 317 #if !defined(SK_UNUSED)
318 # define SK_UNUSED SK_ATTRIBUTE(unused) 318 # define SK_UNUSED SK_ATTRIBUTE(unused)
319 #endif 319 #endif
320 320
321 #if !defined(SK_ATTR_DEPRECATED) 321 #if !defined(SK_ATTR_DEPRECATED)
322 // FIXME: we ignore msg for now... 322 // FIXME: we ignore msg for now...
323 # define SK_ATTR_DEPRECATED(msg) SK_ATTRIBUTE(deprecated) 323 # define SK_ATTR_DEPRECATED(msg) SK_ATTRIBUTE(deprecated)
324 #endif 324 #endif
325 325
326 #if !defined(SK_ATTR_EXTERNALLY_DEPRECATED)
327 # if !defined(SK_INTERNAL)
328 # define SK_ATTR_EXTERNALLY_DEPRECATED(msg) SK_ATTR_DEPRECATED(msg)
329 # else
330 # define SK_ATTR_EXTERNALLY_DEPRECATED(msg)
331 # endif
332 #endif
333
326 /** 334 /**
327 * If your judgment is better than the compiler's (i.e. you've profiled it), 335 * If your judgment is better than the compiler's (i.e. you've profiled it),
328 * you can use SK_ALWAYS_INLINE to force inlining. E.g. 336 * you can use SK_ALWAYS_INLINE to force inlining. E.g.
329 * inline void someMethod() { ... } // may not be inlined 337 * inline void someMethod() { ... } // may not be inlined
330 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined 338 * SK_ALWAYS_INLINE void someMethod() { ... } // should always be inlined
331 */ 339 */
332 #if !defined(SK_ALWAYS_INLINE) 340 #if !defined(SK_ALWAYS_INLINE)
333 # if defined(SK_BUILD_FOR_WIN) 341 # if defined(SK_BUILD_FOR_WIN)
334 # define SK_ALWAYS_INLINE __forceinline 342 # define SK_ALWAYS_INLINE __forceinline
335 # else 343 # else
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 406
399 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 407 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB)
400 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 408 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB"
401 #elif defined(SK_GAMMA_SRGB) 409 #elif defined(SK_GAMMA_SRGB)
402 # define SK_GAMMA_EXPONENT (0.0f) 410 # define SK_GAMMA_EXPONENT (0.0f)
403 #elif !defined(SK_GAMMA_EXPONENT) 411 #elif !defined(SK_GAMMA_EXPONENT)
404 # define SK_GAMMA_EXPONENT (2.2f) 412 # define SK_GAMMA_EXPONENT (2.2f)
405 #endif 413 #endif
406 414
407 #endif // SkPostConfig_DEFINED 415 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698