diff options
Diffstat (limited to 'bench/GrResourceCacheBench.cpp')
-rw-r--r-- | bench/GrResourceCacheBench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp index 9c9ca3551a..d78af0a9e5 100644 --- a/bench/GrResourceCacheBench.cpp +++ b/bench/GrResourceCacheBench.cpp @@ -69,7 +69,7 @@ protected: } void onDraw(int loops, SkCanvas* canvas) override { - sk_sp<GrContext> context(GrContext::Create(kMock_GrBackend, (GrBackendContext) nullptr)); + sk_sp<GrContext> context(GrContext::MakeMock(nullptr)); if (nullptr == context) { return; } @@ -115,7 +115,7 @@ protected: } void onDelayedSetup() override { - fContext.reset(GrContext::Create(kMock_GrBackend, (GrBackendContext) nullptr)); + fContext = GrContext::MakeMock(nullptr); if (!fContext) { return; } |