OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #include "SkFlattenable.h" | 8 #include "SkFlattenable.h" |
9 #include "SkPtrRecorder.h" | 9 #include "SkPtrRecorder.h" |
10 | 10 |
11 /////////////////////////////////////////////////////////////////////////////// | 11 /////////////////////////////////////////////////////////////////////////////// |
12 | 12 |
13 void SkFlattenable::flatten(SkFlattenableWriteBuffer&) const | 13 void SkFlattenable::flatten(SkWriteBuffer&) const |
14 { | 14 { |
15 /* we don't write anything at the moment, but this allows our subclasses | 15 /* we don't write anything at the moment, but this allows our subclasses |
16 to not know that, since we want them to always call INHERITED::flatten() | 16 to not know that, since we want them to always call INHERITED::flatten() |
17 in their code. | 17 in their code. |
18 */ | 18 */ |
19 } | 19 } |
20 | 20 |
21 /////////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////////// |
22 | 22 |
23 SkNamedFactorySet::SkNamedFactorySet() : fNextAddedFactory(0) {} | 23 SkNamedFactorySet::SkNamedFactorySet() : fNextAddedFactory(0) {} |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 report_no_entries(__FUNCTION__); | 136 report_no_entries(__FUNCTION__); |
137 #endif | 137 #endif |
138 const Entry* entries = gEntries; | 138 const Entry* entries = gEntries; |
139 for (int i = gCount - 1; i >= 0; --i) { | 139 for (int i = gCount - 1; i >= 0; --i) { |
140 if (entries[i].fFactory == fact) { | 140 if (entries[i].fFactory == fact) { |
141 return entries[i].fName; | 141 return entries[i].fName; |
142 } | 142 } |
143 } | 143 } |
144 return NULL; | 144 return NULL; |
145 } | 145 } |
OLD | NEW |