Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: src/core/SkBitmapHeap.cpp

Issue 719113004: Followup: remove unnecessary SkTRefArray (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: count Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBitmapHeap.h ('k') | src/core/SkPictureData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapHeap.cpp
diff --git a/src/core/SkBitmapHeap.cpp b/src/core/SkBitmapHeap.cpp
index efaa23fc64acd5ec6687fc7283cb70aca3c8253a..07e65fb3e2801b38e152447aad681ceb666370a7 100644
--- a/src/core/SkBitmapHeap.cpp
+++ b/src/core/SkBitmapHeap.cpp
@@ -111,19 +111,6 @@ SkBitmapHeap::~SkBitmapHeap() {
fLookupTable.deleteAll();
}
-SkTRefArray<SkBitmap>* SkBitmapHeap::extractBitmaps() const {
- const int size = fStorage.count();
- SkTRefArray<SkBitmap>* array = NULL;
- if (size > 0) {
- array = SkTRefArray<SkBitmap>::Create(size);
- for (int i = 0; i < size; i++) {
- // make a shallow copy of the bitmap
- array->writableAt(i) = fStorage[i]->fBitmap;
- }
- }
- return array;
-}
-
void SkBitmapHeap::removeFromLRU(SkBitmapHeap::LookupEntry* entry) {
if (fMostRecentlyUsed == entry) {
fMostRecentlyUsed = entry->fLessRecentlyUsed;
« no previous file with comments | « src/core/SkBitmapHeap.h ('k') | src/core/SkPictureData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698