diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-15 14:56:51 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-17 12:17:03 +0000 |
commit | 87f7f1c3ce519115141b40f1d8faede437c8f357 (patch) | |
tree | e35d12c8ae40e0192e8af889ca848d3c5f60eed9 /src/gpu/GrRenderTargetOpList.h | |
parent | 1314918f903f0a1b40c2695f2b27737e9a8b443a (diff) |
Convert DstTexture to DstProxy
The last GrTexture-based TextureSampler::reset call must be removed before the TextureSamplers can become purely GrTextureProxy-backed
Split out of: https://skia-review.googlesource.com/c/10484/ (Omnibus: Push instantiation of GrTextures later (post TextureSampler))
Change-Id: Ic1435177d8b5d9bd3fc38b4903c9baae8205cfb0
Reviewed-on: https://skia-review.googlesource.com/16908
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r-- | src/gpu/GrRenderTargetOpList.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h index aa8c6c69f8..9556bfb237 100644 --- a/src/gpu/GrRenderTargetOpList.h +++ b/src/gpu/GrRenderTargetOpList.h @@ -30,7 +30,7 @@ class GrRenderTargetProxy; class GrRenderTargetOpList final : public GrOpList { private: - using DstTexture = GrXferProcessor::DstTexture; + using DstProxy = GrXferProcessor::DstProxy; public: GrRenderTargetOpList(GrRenderTargetProxy*, GrGpu*, GrAuditTrail*); @@ -70,9 +70,9 @@ public: return this->uniqueID(); } uint32_t addOp(std::unique_ptr<GrOp> op, GrRenderTargetContext* renderTargetContext, - GrAppliedClip&& clip, const DstTexture& dstTexture) { + GrAppliedClip&& clip, const DstProxy& dstProxy) { this->recordOp(std::move(op), renderTargetContext, clip.doesClip() ? &clip : nullptr, - &dstTexture); + &dstProxy); return this->uniqueID(); } @@ -116,31 +116,31 @@ private: RecordedOp(std::unique_ptr<GrOp> op, GrRenderTarget* rt, const GrAppliedClip* appliedClip, - const DstTexture* dstTexture) + const DstProxy* dstProxy) : fOp(std::move(op)) , fRenderTarget(rt) , fAppliedClip(appliedClip) { - if (dstTexture) { - fDstTexture = *dstTexture; + if (dstProxy) { + fDstProxy = *dstProxy; } } std::unique_ptr<GrOp> fOp; // TODO: These ops will all to target the same render target and this won't be needed. GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; - DstTexture fDstTexture; + DstProxy fDstProxy; const GrAppliedClip* fAppliedClip; }; // If the input op is combined with an earlier op, this returns the combined op. Otherwise, it // returns the input op. GrOp* recordOp(std::unique_ptr<GrOp>, GrRenderTargetContext*, GrAppliedClip* = nullptr, - const DstTexture* = nullptr); + const DstProxy* = nullptr); void forwardCombine(const GrCaps&); // If this returns true then b has been merged into a's op. bool combineIfPossible(const RecordedOp& a, GrOp* b, const GrAppliedClip* bClip, - const DstTexture* bDstTexture, const GrCaps&); + const DstProxy* bDstTexture, const GrCaps&); GrClearOp* fLastFullClearOp = nullptr; GrGpuResource::UniqueID fLastFullClearResourceID = GrGpuResource::UniqueID::InvalidID(); |