| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 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 #ifndef SkPathOpsDebug_DEFINED | 7 #ifndef SkPathOpsDebug_DEFINED |
| 8 #define SkPathOpsDebug_DEFINED | 8 #define SkPathOpsDebug_DEFINED |
| 9 | 9 |
| 10 #include "SkPathOps.h" | 10 #include "SkPathOps.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 #if DEBUG_SHOW_TEST_NAME | 153 #if DEBUG_SHOW_TEST_NAME |
| 154 static void* CreateNameStr(); | 154 static void* CreateNameStr(); |
| 155 static void DeleteNameStr(void* v); | 155 static void DeleteNameStr(void* v); |
| 156 #define DEBUG_FILENAME_STRING_LENGTH 64 | 156 #define DEBUG_FILENAME_STRING_LENGTH 64 |
| 157 #define DEBUG_FILENAME_STRING (reinterpret_cast<char* >(SkTLS::Get(SkPathOpsDebu
g::CreateNameStr, \ | 157 #define DEBUG_FILENAME_STRING (reinterpret_cast<char* >(SkTLS::Get(SkPathOpsDebu
g::CreateNameStr, \ |
| 158 SkPathOpsDebug::DeleteNameStr))) | 158 SkPathOpsDebug::DeleteNameStr))) |
| 159 static void BumpTestName(char* ); | 159 static void BumpTestName(char* ); |
| 160 static void ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, cons
t char* name); | 160 static void ShowPath(const SkPath& one, const SkPath& two, SkPathOp op, cons
t char* name); |
| 161 #endif | 161 #endif |
| 162 static void DumpAngles(const SkTArray<class SkOpAngle, true>& angles); | 162 static void DumpAngles(const SkTArray<class SkOpAngle, true>& angles); |
| 163 static void DumpAngles(const SkTArray<class SkOpAngle* , true>& angles); |
| 163 }; | 164 }; |
| 164 | 165 |
| 166 // shorthand for calling from debugger |
| 167 void Dump(const SkTArray<class SkOpAngle, true>& angles); |
| 168 void Dump(const SkTArray<class SkOpAngle* , true>& angles); |
| 169 void Dump(const SkTArray<class SkOpAngle, true>* angles); |
| 170 void Dump(const SkTArray<class SkOpAngle* , true>* angles); |
| 171 |
| 165 #endif // SK_DEBUG || !FORCE_RELEASE | 172 #endif // SK_DEBUG || !FORCE_RELEASE |
| 166 | 173 |
| 167 #endif | 174 #endif |
| OLD | NEW |