Fix compilation of opList-based DDL implementation

Change-Id: Id8d034d85e0d4e67573ae13295fbbac634d366c3
Reviewed-on: https://skia-review.googlesource.com/107180
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2018-02-14 07:35:32 -05:00 committed by Skia Commit-Bot
parent 8242c5c199
commit 83373a8274

View File

@ -84,17 +84,21 @@ bool SkDeferredDisplayListRecorder::init() {
// DDL is being replayed into.
sk_sp<GrRenderTargetProxy> proxy = proxyProvider->createLazyRenderTargetProxy(
[ lazyProxyData ] (GrResourceProvider* resourceProvider, GrSurfaceOrigin* /* outOrigin */) {
if (!resourceProvider) {
return sk_sp<GrSurface>();
}
[ lazyProxyData ] (GrResourceProvider* resourceProvider) {
if (!resourceProvider) {
return sk_sp<GrSurface>();
}
// The proxy backing the destination surface had better have been instantiated
// prior to the proxy backing the DLL's surface. Steal its GrRenderTarget.
SkASSERT(lazyProxyData->fReplayDest->priv().peekSurface());
return sk_ref_sp<GrSurface>(lazyProxyData->fReplayDest->priv().peekSurface());
}, desc, GrProxyProvider::Textureable(fCharacterization.isTextureable()),
GrMipMapped::kNo, SkBackingFit::kExact, SkBudgeted::kYes);
// The proxy backing the destination surface had better have been instantiated
// prior to the proxy backing the DLL's surface. Steal its GrRenderTarget.
SkASSERT(lazyProxyData->fReplayDest->priv().peekSurface());
return sk_ref_sp<GrSurface>(lazyProxyData->fReplayDest->priv().peekSurface());
},
desc,
GrProxyProvider::Textureable(fCharacterization.isTextureable()),
GrMipMapped::kNo,
SkBackingFit::kExact,
SkBudgeted::kYes);
sk_sp<GrSurfaceContext> c = fContext->contextPriv().makeWrappedSurfaceContext(
std::move(proxy),