Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@8061 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
7d3451b184
commit
0f12e1fe42
@ -404,16 +404,16 @@ public:
|
||||
fNextIndex = 1;
|
||||
sk_bzero(fHash, sizeof(fHash));
|
||||
// index 0 is always empty since it is used as a signal that find failed
|
||||
fIndexedData.push(NULL);
|
||||
fIndexedData.push(NULL);
|
||||
}
|
||||
|
||||
virtual ~SkFlatDictionary() {
|
||||
fController->unref();
|
||||
}
|
||||
|
||||
int count() const {
|
||||
int count() const {
|
||||
SkASSERT(fIndexedData.count() == fSortedData.count()+1);
|
||||
return fSortedData.count();
|
||||
return fSortedData.count();
|
||||
}
|
||||
|
||||
const SkFlatData* operator[](int index) const {
|
||||
@ -563,7 +563,7 @@ private:
|
||||
|
||||
void unflattenIntoArray(T* array) const {
|
||||
const int count = fSortedData.count();
|
||||
SkASSERT(fIndexedData.count() == fSortedData.count()+1);
|
||||
SkASSERT(fIndexedData.count() == fSortedData.count()+1);
|
||||
const SkFlatData* const* iter = fSortedData.begin();
|
||||
for (int i = 0; i < count; ++i) {
|
||||
const SkFlatData* element = iter[i];
|
||||
@ -576,7 +576,7 @@ private:
|
||||
SkFlatController * const fController;
|
||||
int fNextIndex;
|
||||
|
||||
// SkFlatDictionary has two copies of the data one indexed by the
|
||||
// SkFlatDictionary has two copies of the data one indexed by the
|
||||
// SkFlatData's index and the other sorted. The sorted data is used
|
||||
// for finding and uniquification while the indexed copy is used
|
||||
// for standard array-style lookups based on the SkFlatData's index
|
||||
|
Loading…
Reference in New Issue
Block a user