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

Unified Diff: src/core/SkPictureFlat.h

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/SkPictureData.cpp ('k') | src/core/SkTRefArray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureFlat.h
diff --git a/src/core/SkPictureFlat.h b/src/core/SkPictureFlat.h
index 40f6a0a803d5301671b89a42a49904a619893f5f..61c48135974cd7d8f8b6a264d820e647fa82cbd5 100644
--- a/src/core/SkPictureFlat.h
+++ b/src/core/SkPictureFlat.h
@@ -18,7 +18,6 @@
#include "SkPicture.h"
#include "SkPtrRecorder.h"
#include "SkTDynamicHash.h"
-#include "SkTRefArray.h"
enum DrawType {
UNUSED,
@@ -449,22 +448,6 @@ public:
}
/**
- * Unflatten the objects and return them in SkTRefArray, or return NULL
- * if there no objects. Caller takes ownership of result.
- */
- SkTRefArray<T>* unflattenToArray() const {
- const int count = this->count();
- if (count == 0) {
- return NULL;
- }
- SkTRefArray<T>* array = SkTRefArray<T>::Create(count);
- for (int i = 0; i < count; i++) {
- this->unflatten(&array->writableAt(i), fIndexedData[i]);
- }
- return array;
- }
-
- /**
* Unflatten the specific object at the given index.
* Caller takes ownership of the result.
*/
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkTRefArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698