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

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

Issue 1446413002: Revert of skstd -> std for unique_ptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « include/core/SkRefCnt.h ('k') | include/private/SkOncePtr.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 #ifndef SkTypes_DEFINED 8 #ifndef SkTypes_DEFINED
9 #define SkTypes_DEFINED 9 #define SkTypes_DEFINED
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 #define SkToU16(x) ((uint16_t)(x)) 250 #define SkToU16(x) ((uint16_t)(x))
251 #define SkToS32(x) ((int32_t)(x)) 251 #define SkToS32(x) ((int32_t)(x))
252 #define SkToU32(x) ((uint32_t)(x)) 252 #define SkToU32(x) ((uint32_t)(x))
253 #define SkToInt(x) ((int)(x)) 253 #define SkToInt(x) ((int)(x))
254 #define SkToUInt(x) ((unsigned)(x)) 254 #define SkToUInt(x) ((unsigned)(x))
255 #define SkToSizeT(x) ((size_t)(x)) 255 #define SkToSizeT(x) ((size_t)(x))
256 #endif 256 #endif
257 257
258 /** Returns 0 or 1 based on the condition 258 /** Returns 0 or 1 based on the condition
259 */ 259 */
260 #define SkToBool(cond) ((cond) != (decltype(cond))0) 260 #define SkToBool(cond) ((cond) != 0)
261 261
262 #define SK_MaxS16 32767 262 #define SK_MaxS16 32767
263 #define SK_MinS16 -32767 263 #define SK_MinS16 -32767
264 #define SK_MaxU16 0xFFFF 264 #define SK_MaxU16 0xFFFF
265 #define SK_MinU16 0 265 #define SK_MinU16 0
266 #define SK_MaxS32 0x7FFFFFFF 266 #define SK_MaxS32 0x7FFFFFFF
267 #define SK_MinS32 -SK_MaxS32 267 #define SK_MinS32 -SK_MaxS32
268 #define SK_MaxU32 0xFFFFFFFF 268 #define SK_MaxU32 0xFFFFFFFF
269 #define SK_MinU32 0 269 #define SK_MinU32 0
270 #define SK_NaN32 (1 << 31) 270 #define SK_NaN32 (1 << 31)
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 private: 658 private:
659 void* fPtr; 659 void* fPtr;
660 size_t fSize; // can be larger than the requested size (see kReuse) 660 size_t fSize; // can be larger than the requested size (see kReuse)
661 uint32_t fStorage[(kSize + 3) >> 2]; 661 uint32_t fStorage[(kSize + 3) >> 2];
662 }; 662 };
663 // Can't guard the constructor because it's a template class. 663 // Can't guard the constructor because it's a template class.
664 664
665 #endif /* C++ */ 665 #endif /* C++ */
666 666
667 #endif 667 #endif
OLDNEW
« no previous file with comments | « include/core/SkRefCnt.h ('k') | include/private/SkOncePtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698