diff options
author | mtklein <mtklein@chromium.org> | 2015-08-19 09:51:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-19 09:51:01 -0700 |
commit | c6ad06acefa096716f8dabed5342f9b89dc43dfe (patch) | |
tree | d7f0f880609d4e7876790a846cdbab4702590109 /tests/RecordDrawTest.cpp | |
parent | 4b013296bf67df6c8d119a8f5a2b3dd6530c0b6f (diff) |
unsigned -> int for counts and indices in picture-related code
also, (C)
BUG=skia:
Review URL: https://codereview.chromium.org/1300163002
Diffstat (limited to 'tests/RecordDrawTest.cpp')
-rw-r--r-- | tests/RecordDrawTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index da78296648..84ceb20f54 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -126,17 +126,17 @@ struct TestBBH : public SkBBoxHierarchy { void insert(const SkRect boundsArray[], int N) override { fEntries.setCount(N); for (int i = 0; i < N; i++) { - Entry e = { (unsigned)i, boundsArray[i] }; + Entry e = { i, boundsArray[i] }; fEntries[i] = e; } } - void search(const SkRect& query, SkTDArray<unsigned>* results) const override {} + void search(const SkRect& query, SkTDArray<int>* results) const override {} size_t bytesUsed() const override { return 0; } SkRect getRootBound() const override { return SkRect::MakeEmpty(); } struct Entry { - unsigned opIndex; + int opIndex; SkRect bounds; }; SkTDArray<Entry> fEntries; @@ -166,7 +166,7 @@ DEF_TEST(RecordDraw_BBH, r) { REPORTER_ASSERT(r, bbh.fEntries.count() == 5); for (int i = 0; i < bbh.fEntries.count(); i++) { - REPORTER_ASSERT(r, bbh.fEntries[i].opIndex == (unsigned)i); + REPORTER_ASSERT(r, bbh.fEntries[i].opIndex == i); REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bbh.fEntries[i].bounds)); } |