diff options
author | Robert Phillips <robertphillips@google.com> | 2017-05-17 13:00:14 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-17 13:00:27 +0000 |
commit | c375704a20a811b9b8d294533f166bed44b7618d (patch) | |
tree | 3cb4421a3ba854b3daca374dc5b58ab981fbed6c /src/gpu/GrPipeline.h | |
parent | a6f68d38606effe69d5d2027a6330543dc7bd408 (diff) |
Revert "Convert DstTexture to DstProxy"
This reverts commit 87f7f1c3ce519115141b40f1d8faede437c8f357.
Reason for revert: grumble, grumble
Original change's description:
> 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>
>
TBR=egdaniel@google.com,robertphillips@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Change-Id: I9af52bb222bd2d8cc696250a9efb62afb80edba1
Reviewed-on: https://skia-review.googlesource.com/17203
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index fa78f34629..67e137c82a 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -75,8 +75,7 @@ public: const GrAppliedClip* fAppliedClip = nullptr; GrRenderTarget* fRenderTarget = nullptr; const GrCaps* fCaps = nullptr; - GrResourceProvider* fResourceProvider = nullptr; - GrXferProcessor::DstProxy fDstProxy; + GrXferProcessor::DstTexture fDstTexture; }; /** @@ -158,11 +157,11 @@ public: * If the GrXferProcessor uses a texture to access the dst color, then this returns that * texture and the offset to the dst contents within that texture. */ - GrTextureProxy* dstTextureProxy(SkIPoint* offset = nullptr) const { + GrTexture* dstTexture(SkIPoint* offset = nullptr) const { if (offset) { *offset = fDstTextureOffset; } - return fDstTextureProxy.get(); + return fDstTexture.get(); } const GrFragmentProcessor& getColorFragmentProcessor(int idx) const { @@ -216,8 +215,7 @@ public: bool isBad() const { return SkToBool(fFlags & kIsBad_Flag); } GrXferBarrierType xferBarrierType(const GrCaps& caps) const { - if (fDstTextureProxy.get() && - fDstTextureProxy.get()->priv().peekTexture() == fRenderTarget.get()->asTexture()) { + if (fDstTexture.get() && fDstTexture.get() == fRenderTarget.get()->asTexture()) { return kTexture_GrXferBarrierType; } return this->getXferProcessor().xferBarrierType(caps); @@ -235,11 +233,11 @@ private: }; using RenderTarget = GrPendingIOResource<GrRenderTarget, kWrite_GrIOType>; - using DstTextureProxy = GrPendingIOResource<GrTextureProxy, kRead_GrIOType>; + using DstTexture = GrPendingIOResource<GrTexture, kRead_GrIOType>; using PendingFragmentProcessor = GrPendingProgramElement<const GrFragmentProcessor>; using FragmentProcessorArray = SkAutoSTArray<8, PendingFragmentProcessor>; - DstTextureProxy fDstTextureProxy; + DstTexture fDstTexture; SkIPoint fDstTextureOffset; RenderTarget fRenderTarget; GrScissorState fScissorState; |