| OLD | NEW |
| 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 SkUtils_DEFINED | 8 #ifndef SkUtils_DEFINED |
| 9 #define SkUtils_DEFINED | 9 #define SkUtils_DEFINED |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 */ | 83 */ |
| 84 if (uni < 0x180B || uni > 0xE01EF) { | 84 if (uni < 0x180B || uni > 0xE01EF) { |
| 85 return false; | 85 return false; |
| 86 } | 86 } |
| 87 if ((uni > 0x180D && uni < 0xFE00) || (uni > 0xFE0F && uni < 0xE0100)) { | 87 if ((uni > 0x180D && uni < 0xFE00) || (uni > 0xFE0F && uni < 0xE0100)) { |
| 88 return false; | 88 return false; |
| 89 } | 89 } |
| 90 return true; | 90 return true; |
| 91 } | 91 } |
| 92 | 92 |
| 93 /////////////////////////////////////////////////////////////////////////////// | |
| 94 | |
| 95 class SkAutoTrace { | |
| 96 public: | |
| 97 /** NOTE: label contents are not copied, just the ptr is | |
| 98 retained, so DON'T DELETE IT. | |
| 99 */ | |
| 100 SkAutoTrace(const char label[]) : fLabel(label) { | |
| 101 SkDebugf("--- trace: %s Enter\n", fLabel); | |
| 102 } | |
| 103 ~SkAutoTrace() { | |
| 104 SkDebugf("--- trace: %s Leave\n", fLabel); | |
| 105 } | |
| 106 private: | |
| 107 const char* fLabel; | |
| 108 }; | |
| 109 #define SkAutoTrace(...) SK_REQUIRE_LOCAL_VAR(SkAutoTrace) | |
| 110 | |
| 111 #endif | 93 #endif |
| OLD | NEW |