From 73fe7b07e6391da81dfc48d600d7b3141be1f471 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Wed, 8 Feb 2017 15:12:19 -0500 Subject: Remove use of SkSmallAllocator from all Loopers. R=reed@google.com Change-Id: I22b140ee8e12900de13bc623adb30b5fca3051f9 Reviewed-on: https://skia-review.googlesource.com/7658 Reviewed-by: Mike Reed Commit-Queue: Herb Derby --- tests/QuickRejectTest.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/QuickRejectTest.cpp') diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp index 452aa8b742..6f472dcd86 100644 --- a/tests/QuickRejectTest.cpp +++ b/tests/QuickRejectTest.cpp @@ -5,6 +5,7 @@ * found in the LICENSE file. */ +#include "SkArenaAlloc.h" #include "SkCanvas.h" #include "SkDrawLooper.h" #include "SkLightingImageFilter.h" @@ -17,12 +18,10 @@ class TestLooper : public SkDrawLooper { public: - SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const override { - return new (storage) TestDrawLooperContext; + SkDrawLooper::Context* makeContext(SkCanvas*, SkArenaAlloc* alloc) const override { + return alloc->make(); } - size_t contextSize() const override { return sizeof(TestDrawLooperContext); } - #ifndef SK_IGNORE_TO_STRING void toString(SkString* str) const override { str->append("TestLooper:"); -- cgit v1.2.3