diff options
author | 2017-06-12 10:58:31 -0400 | |
---|---|---|
committer | 2017-06-12 15:24:44 +0000 | |
commit | c9c06d45863e64ae99ef54c8c56014c855f1ca65 (patch) | |
tree | a828ad6919680cdc9f924f03a8c226127a2b1725 /src/gpu/GrPipeline.h | |
parent | 03a787968a11bdd3b55d771d348702d0db51fd43 (diff) |
Remove GrTGpuResourceRef specializations
This template is only used for GrBuffers now.
Change-Id: Ia9e95576b01124657e64007231fbc0a83276e13f
Reviewed-on: https://skia-review.googlesource.com/19484
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r-- | src/gpu/GrPipeline.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h index 3fd518985d..8d2f245e8d 100644 --- a/src/gpu/GrPipeline.h +++ b/src/gpu/GrPipeline.h @@ -15,6 +15,7 @@ #include "GrProcessorSet.h" #include "GrProgramDesc.h" #include "GrRect.h" +#include "GrRenderTarget.h" #include "GrScissorState.h" #include "GrUserStencilSettings.h" #include "GrWindowRectsState.h" @@ -235,13 +236,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()) { - return kTexture_GrXferBarrierType; - } - return this->getXferProcessor().xferBarrierType(caps); - } + GrXferBarrierType xferBarrierType(const GrCaps& caps) const; private: void markAsBad() { fFlags |= kIsBad_Flag; } |