Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: src/gpu/GrImmediateDrawTarget.cpp

Issue 1287973003: Check for xfer barriers in GrBatch, auto-issue barriers in GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrImmediateDrawTarget.cpp
diff --git a/src/gpu/GrImmediateDrawTarget.cpp b/src/gpu/GrImmediateDrawTarget.cpp
index 8088eae4a02ee7bea2e62507ba9165d3dacbfed9..999446f0a46c244790c2121612bf864c3d260f3f 100644
--- a/src/gpu/GrImmediateDrawTarget.cpp
+++ b/src/gpu/GrImmediateDrawTarget.cpp
@@ -26,14 +26,6 @@ GrImmediateDrawTarget::~GrImmediateDrawTarget() {
}
void GrImmediateDrawTarget::onDrawBatch(GrBatch* batch) {
- const GrXferProcessor& xp = *batch->pipeline()->getXferProcessor();
- GrRenderTarget* rt = batch->pipeline()->getRenderTarget();
-
- GrXferBarrierType barrierType;
- if (xp.willNeedXferBarrier(rt, *this->caps(), &barrierType)) {
- this->getGpu()->xferBarrier(rt, barrierType);
- }
-
fBatchTarget.resetNumberOfDraws();
batch->generateGeometry(&fBatchTarget);
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderCommandBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698