OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkTypes.h" | 10 #include "SkTypes.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 if (temp == info) | 135 if (temp == info) |
136 break; | 136 break; |
137 } | 137 } |
138 SkASSERT(typeIndex < kNumberOfTypes); | 138 SkASSERT(typeIndex < kNumberOfTypes); |
139 AddInfo((SkDisplayTypes) typeIndex, info, oldRefCounts[index]); | 139 AddInfo((SkDisplayTypes) typeIndex, info, oldRefCounts[index]); |
140 } | 140 } |
141 } | 141 } |
142 } while (gUnknowns.count() > 0); | 142 } while (gUnknowns.count() > 0); |
143 qsort(gInfosTypeIDs.begin(), gInfosTypeIDs.count(), sizeof(gInfosTypeIDs[0])
, &type_compare); | 143 qsort(gInfosTypeIDs.begin(), gInfosTypeIDs.count(), sizeof(gInfosTypeIDs[0])
, &type_compare); |
144 #ifdef SK_DEBUG | 144 #ifdef SK_DEBUG |
145 FILE* condensed = fopen("../../src/animator/SkCondensedDebug.cpp", "w+"); | 145 FILE* condensed = fopen("../../src/animator/SkCondensedDebug.inc", "w+"); |
146 fprintf(condensed, "#include \"SkTypes.h\"\n"); | 146 fprintf(condensed, "#include \"SkTypes.h\"\n"); |
147 fprintf(condensed, "#ifdef SK_DEBUG\n"); | 147 fprintf(condensed, "#ifdef SK_DEBUG\n"); |
148 #else | 148 #else |
149 FILE* condensed = fopen("../../src/animator/SkCondensedRelease.cpp", "w+"); | 149 FILE* condensed = fopen("../../src/animator/SkCondensedRelease.inc", "w+"); |
150 fprintf(condensed, "#include \"SkTypes.h\"\n"); | 150 fprintf(condensed, "#include \"SkTypes.h\"\n"); |
151 fprintf(condensed, "#ifdef SK_RELEASE\n"); | 151 fprintf(condensed, "#ifdef SK_RELEASE\n"); |
152 #endif | 152 #endif |
153 // write header | 153 // write header |
154 fprintf(condensed, "// This file was automatically generated.\n"); | 154 fprintf(condensed, "// This file was automatically generated.\n"); |
155 fprintf(condensed, "// To change it, edit the file with the matching debug i
nfo.\n"); | 155 fprintf(condensed, "// To change it, edit the file with the matching debug i
nfo.\n"); |
156 fprintf(condensed, "// Then execute SkDisplayType::BuildCondensedInfo() to " | 156 fprintf(condensed, "// Then execute SkDisplayType::BuildCondensedInfo() to " |
157 "regenerate this file.\n\n"); | 157 "regenerate this file.\n\n"); |
158 // write name of memberInfo | 158 // write name of memberInfo |
159 int typeNameIndex = 0; | 159 int typeNameIndex = 0; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 gInfosCounts.reset(); | 273 gInfosCounts.reset(); |
274 gInfosTypeIDs.reset(); | 274 gInfosTypeIDs.reset(); |
275 gUnknowns.reset(); | 275 gUnknowns.reset(); |
276 gUnknownsCounts.reset(); | 276 gUnknownsCounts.reset(); |
277 } | 277 } |
278 | 278 |
279 #elif defined SK_DEBUG | 279 #elif defined SK_DEBUG |
280 #include "SkDisplayType.h" | 280 #include "SkDisplayType.h" |
281 void SkDisplayType::BuildCondensedInfo(SkAnimateMaker* ) {} | 281 void SkDisplayType::BuildCondensedInfo(SkAnimateMaker* ) {} |
282 #endif | 282 #endif |
OLD | NEW |