aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2015-04-29 14:17:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-29 14:17:00 -0700
commit9954bc38c498f6b9e9d8c0bcc5cd00d45bfc6e23 (patch)
treef88d88bad3884d979e595a6a462e21cf89b4bdc9 /src/gpu/GrGpu.h
parentdbc3cefb0b624808ddb86d444e6103f216e12fa5 (diff)
Use texture barriers to read directly from the RT
Updates GrXferProcessor to read directly from the RT texture when texture barriers are supported and it needs to know the dst color. Also adds the notion of an Xfer barrier and uses it to issue texture barriers when the XP will read the RT. BUG=skia: Review URL: https://codereview.chromium.org/1040303002
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 5784781996..b2dbec65fb 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -304,6 +304,9 @@ public:
const SkIRect& srcRect,
const SkIPoint& dstPoint) = 0;
+ // Called before certain draws in order to guarantee coherent results from dst reads.
+ virtual void xferBarrier(GrXferBarrierType) = 0;
+
struct DrawArgs {
typedef GrDrawTarget::DrawInfo DrawInfo;
DrawArgs(const GrPrimitiveProcessor* primProc,