| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | |
| 10 #ifndef SkDisplayType_DEFINED | 8 #ifndef SkDisplayType_DEFINED |
| 11 #define SkDisplayType_DEFINED | 9 #define SkDisplayType_DEFINED |
| 12 | 10 |
| 13 #include "SkMath.h" | 11 #include "SkMath.h" |
| 14 #include "SkScalar.h" | 12 #include "SkScalar.h" |
| 15 | 13 |
| 14 typedef int SkBool; |
| 15 |
| 16 #ifdef SK_DEBUG | 16 #ifdef SK_DEBUG |
| 17 #define SK_DUMP_ENABLED | 17 #define SK_DUMP_ENABLED |
| 18 #ifdef SK_BUILD_FOR_MAC | 18 #ifdef SK_BUILD_FOR_MAC |
| 19 #define SK_FIND_LEAKS | 19 #define SK_FIND_LEAKS |
| 20 #endif | 20 #endif |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 #define SK_LITERAL_STR_EQUAL(str, token, len) (sizeof(str) - 1 == len \ | 23 #define SK_LITERAL_STR_EQUAL(str, token, len) (sizeof(str) - 1 == len \ |
| 24 && strncmp(str, token, sizeof(str) - 1) == 0) | 24 && strncmp(str, token, sizeof(str) - 1) == 0) |
| 25 | 25 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 #if defined SK_DEBUG || defined SK_BUILD_CONDENSED | 197 #if defined SK_DEBUG || defined SK_BUILD_CONDENSED |
| 198 static void BuildCondensedInfo(SkAnimateMaker* ); | 198 static void BuildCondensedInfo(SkAnimateMaker* ); |
| 199 #endif | 199 #endif |
| 200 static SkDisplayTypes GetType(SkAnimateMaker* , const char[] , size_t len); | 200 static SkDisplayTypes GetType(SkAnimateMaker* , const char[] , size_t len); |
| 201 static SkDisplayable* CreateInstance(SkAnimateMaker* , SkDisplayTypes ); | 201 static SkDisplayable* CreateInstance(SkAnimateMaker* , SkDisplayTypes ); |
| 202 private: | 202 private: |
| 203 static SkDisplayTypes gNewTypes; | 203 static SkDisplayTypes gNewTypes; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 #endif // SkDisplayType_DEFINED | 206 #endif // SkDisplayType_DEFINED |
| OLD | NEW |