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

Unified Diff: include/core/SkPicture.h

Issue 753903002: use int instead of size_t to match skia convention (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 4db64bf93d80ff594effa0a0a156300a6bebf108..dedda3e31ddf0e081083d49ad8f771dc6c1bc011 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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698