OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "SkBitmapHeap.h" | 8 #include "SkBitmapHeap.h" |
10 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
11 #include "SkTSearch.h" | 10 #include "SkTSearch.h" |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 for (int i = 0; i < fDeferredEntries.count(); i++) { | 382 for (int i = 0; i < fDeferredEntries.count(); i++) { |
384 SkASSERT(fOwnerCount != IGNORE_OWNERS); | 383 SkASSERT(fOwnerCount != IGNORE_OWNERS); |
385 SkBitmapHeapEntry* heapEntry = this->getEntry(fDeferredEntries[i]); | 384 SkBitmapHeapEntry* heapEntry = this->getEntry(fDeferredEntries[i]); |
386 SkASSERT(heapEntry != nullptr); | 385 SkASSERT(heapEntry != nullptr); |
387 heapEntry->addReferences(fOwnerCount); | 386 heapEntry->addReferences(fOwnerCount); |
388 } | 387 } |
389 } | 388 } |
390 fDeferAddingOwners = false; | 389 fDeferAddingOwners = false; |
391 fDeferredEntries.reset(); | 390 fDeferredEntries.reset(); |
392 } | 391 } |
OLD | NEW |