diff options
Diffstat (limited to 'src/gpu/ccpr/GrCCClipPath.cpp')
-rw-r--r-- | src/gpu/ccpr/GrCCClipPath.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/ccpr/GrCCClipPath.cpp b/src/gpu/ccpr/GrCCClipPath.cpp index 77674e4539..61d58d4980 100644 --- a/src/gpu/ccpr/GrCCClipPath.cpp +++ b/src/gpu/ccpr/GrCCClipPath.cpp @@ -12,12 +12,11 @@ #include "GrTexture.h" #include "ccpr/GrCCPerFlushResources.h" -void GrCCClipPath::init(GrProxyProvider* proxyProvider, - const SkPath& deviceSpacePath, const SkIRect& accessRect, - int rtWidth, int rtHeight) { +void GrCCClipPath::init(const SkPath& deviceSpacePath, const SkIRect& accessRect, int rtWidth, + int rtHeight, const GrCaps& caps) { SkASSERT(!this->isInitialized()); - fAtlasLazyProxy = proxyProvider->createFullyLazyProxy( + fAtlasLazyProxy = GrProxyProvider::MakeFullyLazyProxy( [this](GrResourceProvider* resourceProvider) { if (!resourceProvider) { return sk_sp<GrTexture>(); @@ -41,7 +40,8 @@ void GrCCClipPath::init(GrProxyProvider* proxyProvider, return sk_ref_sp(textureProxy->priv().peekTexture()); }, - GrProxyProvider::Renderable::kYes, kTopLeft_GrSurfaceOrigin, kAlpha_half_GrPixelConfig); + GrProxyProvider::Renderable::kYes, kTopLeft_GrSurfaceOrigin, kAlpha_half_GrPixelConfig, + caps); fDeviceSpacePath = deviceSpacePath; fDeviceSpacePath.getBounds().roundOut(&fPathDevIBounds); |