From bfd5bff75c0ce27a70f02e4b5578d66aa9d6e306 Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 10 Feb 2015 13:44:27 -0800 Subject: 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 --- tests/RecordDrawTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/RecordDrawTest.cpp') 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* 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; } } -- cgit v1.2.3