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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 years, 4 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
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/core/SkRefCnt.h » ('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 // IWYU pragma: private, include "SkTypes.h" 8 // IWYU pragma: private, include "SkTypes.h"
9 9
10 #ifndef SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 static inline void SkNO_RETURN_HINT() __attribute__((analyzer_noreturn)); 94 static inline void SkNO_RETURN_HINT() __attribute__((analyzer_noreturn));
95 static inline void SkNO_RETURN_HINT() {} 95 static inline void SkNO_RETURN_HINT() {}
96 # else 96 # else
97 # define SkNO_RETURN_HINT() do {} while (false) 97 # define SkNO_RETURN_HINT() do {} while (false)
98 # endif 98 # endif
99 #endif 99 #endif
100 100
101 /////////////////////////////////////////////////////////////////////////////// 101 ///////////////////////////////////////////////////////////////////////////////
102 102
103 #ifndef SkNEW 103 #ifndef SkNEW
104 # include <new>
104 # define SkNEW(type_name) (new type_name) 105 # define SkNEW(type_name) (new type_name)
105 # define SkNEW_ARGS(type_name, args) (new type_name args) 106 # define SkNEW_ARGS(type_name, args) (new type_name args)
106 # define SkNEW_ARRAY(type_name, count) (new type_name[(count)]) 107 # define SkNEW_ARRAY(type_name, count) (new type_name[(count)])
107 # define SkNEW_PLACEMENT(buf, type_name) (new (buf) type_name) 108 # define SkNEW_PLACEMENT(buf, type_name) (new (buf) type_name)
108 # define SkNEW_PLACEMENT_ARGS(buf, type_name, args) (new (buf) type_name args) 109 # define SkNEW_PLACEMENT_ARGS(buf, type_name, args) (new (buf) type_name args)
109 # define SkDELETE(obj) (delete (obj)) 110 # define SkDELETE(obj) (delete (obj))
110 # define SkDELETE_ARRAY(array) (delete[] (array)) 111 # define SkDELETE_ARRAY(array) (delete[] (array))
111 #endif 112 #endif
112 113
113 #ifndef SK_CRASH 114 #ifndef SK_CRASH
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 # define SK_GAMMA_EXPONENT (2.2f) 357 # define SK_GAMMA_EXPONENT (2.2f)
357 #endif 358 #endif
358 359
359 ////////////////////////////////////////////////////////////////////// 360 //////////////////////////////////////////////////////////////////////
360 361
361 #ifndef GR_TEST_UTILS 362 #ifndef GR_TEST_UTILS
362 # define GR_TEST_UTILS 1 363 # define GR_TEST_UTILS 1
363 #endif 364 #endif
364 365
365 #endif // SkPostConfig_DEFINED 366 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/core/SkRefCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698