diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-17 11:40:14 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-17 17:04:26 +0000 |
commit | 777707be8445b7d2f9cb235cd040cd1994dd2996 (patch) | |
tree | 3b7ee9039c39b1c77e75e6a880210f5a856a146b /tests/GrCCPRTest.cpp | |
parent | 95379ebc0dfa6fe5af14dbebe251aec43c5ce919 (diff) |
Move GrSurfaceProxy::MakeLazy to GrProxyProvider::createLazy
This is pretty much a straight up move of the GrSurfaceProxy code with some plumbing to get the ProxyProvider in the right places.
Change-Id: I63cecb242dada503f97dbd1c0ce7ede75323100d
Reviewed-on: https://skia-review.googlesource.com/94200
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/GrCCPRTest.cpp')
-rw-r--r-- | tests/GrCCPRTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/GrCCPRTest.cpp b/tests/GrCCPRTest.cpp index 36bd9dd5ff..9f770d6b50 100644 --- a/tests/GrCCPRTest.cpp +++ b/tests/GrCCPRTest.cpp @@ -33,9 +33,11 @@ public: CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {} private: - bool apply(GrContext*, GrRenderTargetContext* rtc, bool, bool, GrAppliedClip* out, + bool apply(GrContext* context, GrRenderTargetContext* rtc, bool, bool, GrAppliedClip* out, SkRect* bounds) const override { - out->addCoverageFP(fCCPR->makeClipProcessor(rtc->priv().testingOnly_getOpListID(), fPath, + GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); + out->addCoverageFP(fCCPR->makeClipProcessor(proxyProvider, + rtc->priv().testingOnly_getOpListID(), fPath, SkIRect::MakeWH(rtc->width(), rtc->height()), rtc->width(), rtc->height())); return true; |