diff options
author | mtklein <mtklein@chromium.org> | 2015-02-10 13:44:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-10 13:44:27 -0800 |
commit | bfd5bff75c0ce27a70f02e4b5578d66aa9d6e306 (patch) | |
tree | b4da5ee57719399580225ca5c37c8a390f1c9373 /tests/RecordDrawTest.cpp | |
parent | a0921f2563701d54e4e022de99f2705f4ada8a6e (diff) |
Simplify SkBBH::insert API
No one's exploiting the ability to take ownership of the array anymore.
BUG=skia:
Review URL: https://codereview.chromium.org/913833002
Diffstat (limited to 'tests/RecordDrawTest.cpp')
-rw-r--r-- | tests/RecordDrawTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp index 4e1ad15bf4..cf138b8d4e 100644 --- a/tests/RecordDrawTest.cpp +++ b/tests/RecordDrawTest.cpp @@ -123,10 +123,10 @@ DEF_TEST(RecordDraw_SetMatrixClobber, r) { } struct TestBBH : public SkBBoxHierarchy { - void insert(SkAutoTMalloc<SkRect>* boundsArray, int N) SK_OVERRIDE { + void insert(const SkRect boundsArray[], int N) SK_OVERRIDE { fEntries.setCount(N); for (int i = 0; i < N; i++) { - Entry e = { (unsigned)i, (*boundsArray)[i] }; + Entry e = { (unsigned)i, boundsArray[i] }; fEntries[i] = e; } } |