aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipeline.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-06-12 10:58:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-12 15:24:44 +0000
commitc9c06d45863e64ae99ef54c8c56014c855f1ca65 (patch)
treea828ad6919680cdc9f924f03a8c226127a2b1725 /src/gpu/GrPipeline.cpp
parent03a787968a11bdd3b55d771d348702d0db51fd43 (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.cpp')
-rw-r--r--src/gpu/GrPipeline.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
index 9d8b2ef984..134466b24a 100644
--- a/src/gpu/GrPipeline.cpp
+++ b/src/gpu/GrPipeline.cpp
@@ -112,6 +112,14 @@ void GrPipeline::addDependenciesTo(GrRenderTargetProxy* rtp) const {
}
}
+GrXferBarrierType GrPipeline::xferBarrierType(const GrCaps& caps) const {
+ if (fDstTextureProxy.get() &&
+ fDstTextureProxy.get()->priv().peekTexture() == fRenderTarget.get()->asTexture()) {
+ return kTexture_GrXferBarrierType;
+ }
+ return this->getXferProcessor().xferBarrierType(caps);
+}
+
GrPipeline::GrPipeline(GrRenderTarget* rt, ScissorState scissorState, SkBlendMode blendmode)
: fRenderTarget(rt)
, fScissorState()