aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPtrRecorder.cpp
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-29 01:44:52 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-29 01:44:52 +0000
commite9e08cc7b29f97ee9e823e68c3daf0f55c84b21a (patch)
tree960da7d152e641e3715444198e42b7a0bfeb5265 /src/core/SkPtrRecorder.cpp
parente8f754a41ccaa87719839a5112e59e1b9a63a037 (diff)
rename SkPtrRecorder and related wrappers to SkPtrSet, since that is the pattern
is it providing. Also add a templated wrapper to handle typecasting of ptr types. git-svn-id: http://skia.googlecode.com/svn/trunk@1214 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPtrRecorder.cpp')
-rw-r--r--src/core/SkPtrRecorder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkPtrRecorder.cpp b/src/core/SkPtrRecorder.cpp
index 4f774ec6ab..fa640cb32b 100644
--- a/src/core/SkPtrRecorder.cpp
+++ b/src/core/SkPtrRecorder.cpp
@@ -1,7 +1,7 @@
#include "SkPtrRecorder.h"
#include "SkTSearch.h"
-void SkPtrRecorder::reset() {
+void SkPtrSet::reset() {
Pair* p = fList.begin();
Pair* stop = fList.end();
while (p < stop) {
@@ -11,11 +11,11 @@ void SkPtrRecorder::reset() {
fList.reset();
}
-int SkPtrRecorder::Cmp(const Pair& a, const Pair& b) {
+int SkPtrSet::Cmp(const Pair& a, const Pair& b) {
return (char*)a.fPtr - (char*)b.fPtr;
}
-uint32_t SkPtrRecorder::recordPtr(void* ptr) {
+uint32_t SkPtrSet::add(void* ptr) {
if (NULL == ptr) {
return 0;
}
@@ -36,7 +36,7 @@ uint32_t SkPtrRecorder::recordPtr(void* ptr) {
}
}
-void SkPtrRecorder::getPtrs(void* array[]) const {
+void SkPtrSet::copyToArray(void* array[]) const {
int count = fList.count();
if (count > 0) {
SkASSERT(array);