diff options
author | Greg Daniel <egdaniel@google.com> | 2018-02-20 10:25:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-20 15:32:33 +0000 |
commit | 2a30390ce6130b27c18152edf75d48616adeb934 (patch) | |
tree | 0985a31a81f35df3111540319bbcb25dcf087854 /src/gpu/GrTextureRenderTargetProxy.cpp | |
parent | 0c7861ff0c727160ab5306f531e94d40650d7466 (diff) |
Update createWrappedRenderTargetProxy with BackendRT to work with lazy proxies.
This change also triggered a bunch of side changes thanks to WrappedProxyTest
fixing/improving how we handle wrapped proxies in genernal.
Bug: skia:
Change-Id: I743a458923cff1c2e947627d0e9154a4c808a668
Reviewed-on: https://skia-review.googlesource.com/108102
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureRenderTargetProxy.cpp')
-rw-r--r-- | src/gpu/GrTextureRenderTargetProxy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrTextureRenderTargetProxy.cpp b/src/gpu/GrTextureRenderTargetProxy.cpp index 50077c4c0f..213359b7c0 100644 --- a/src/gpu/GrTextureRenderTargetProxy.cpp +++ b/src/gpu/GrTextureRenderTargetProxy.cpp @@ -36,12 +36,14 @@ GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(LazyInstantiateCallback&& GrMipMapped mipMapped, SkBackingFit fit, SkBudgeted budgeted, - uint32_t flags) + uint32_t flags, + GrRenderTargetFlags renderTargetFlags) : GrSurfaceProxy(std::move(callback), lazyType, desc, fit, budgeted, flags) // Since we have virtual inheritance, we initialize GrSurfaceProxy directly. Send null // callbacks to the texture and RT proxies simply to route to the appropriate constructors. , GrTextureProxy(LazyInstantiateCallback(), lazyType, desc, mipMapped, fit, budgeted, flags) - , GrRenderTargetProxy(LazyInstantiateCallback(), lazyType, desc, fit, budgeted, flags) { + , GrRenderTargetProxy(LazyInstantiateCallback(), lazyType, desc, fit, budgeted, flags, + renderTargetFlags) { } // Wrapped version |