aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2014-11-23 18:37:14 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-23 18:37:14 -0800
commit735f548c51d3824724b621fa836ca828a195d307 (patch)
tree197bf15cc6e425adf7cf5f05dd51b59dbe655cc8 /include
parent033b7b9559973f790cbc29d72f8f3811c9935978 (diff)
use int instead of size_t to match skia convention
BUG=skia: TBR=mtklein@google.com Review URL: https://codereview.chromium.org/753903002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPicture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 4db64bf93d..dedda3e31d 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -202,14 +202,14 @@ public:
// An array of refcounted const SkPicture pointers.
class SnapshotArray : ::SkNoncopyable {
public:
- SnapshotArray(const SkPicture* pics[], size_t count) : fPics(pics), fCount(count) {}
- ~SnapshotArray() { for (size_t i = 0; i < fCount; i++) { fPics[i]->unref(); } }
+ SnapshotArray(const SkPicture* pics[], int count) : fPics(pics), fCount(count) {}
+ ~SnapshotArray() { for (int i = 0; i < fCount; i++) { fPics[i]->unref(); } }
const SkPicture* const* begin() const { return fPics; }
- size_t count() const { return fCount; }
+ int count() const { return fCount; }
private:
SkAutoTMalloc<const SkPicture*> fPics;
- size_t fCount;
+ int fCount;
};
private: