aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/QuickRejectTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QuickRejectTest.cpp')
-rw-r--r--tests/QuickRejectTest.cpp7
1 files changed, 3 insertions, 4 deletions
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<TestDrawLooperContext>();
}
- size_t contextSize() const override { return sizeof(TestDrawLooperContext); }
-
#ifndef SK_IGNORE_TO_STRING
void toString(SkString* str) const override {
str->append("TestLooper:");