aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/SkTDArray.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-03-20 11:19:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-20 18:40:49 +0000
commitd7b34a5ca0a9183e70737125c688d2a8b5310d81 (patch)
tree94fe551b5fe1f868fbe316a7ae4316000ac589ff /include/private/SkTDArray.h
parent628999dd99a10a737470c5c89c44ae28b6a764bf (diff)
Make SkMemory.h and adjust all files for usage.
This will be rolled out in three stages: 1) make SkMemory.h and have SkTypes.h include it. 2) Adjust chromium and android. 3) no long include SkMemory.h in SkTypes.h Change-Id: If360ef5e1164d88f50b03f279e2e963ca2f57d5d Reviewed-on: https://skia-review.googlesource.com/9874 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'include/private/SkTDArray.h')
-rw-r--r--include/private/SkTDArray.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/private/SkTDArray.h b/include/private/SkTDArray.h
index 16f8474bd4..acf69b58b4 100644
--- a/include/private/SkTDArray.h
+++ b/include/private/SkTDArray.h
@@ -11,6 +11,7 @@
#define SkTDArray_DEFINED
#include "SkTypes.h"
+#include "SkMemory.h"
template <typename T> class SkTDArray {
public:
@@ -234,7 +235,7 @@ public:
}
return -1;
}
-
+
int find(const T& elem) const {
const T* iter = fArray;
const T* stop = fArray + fCount;