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

Unified Diff: src/gpu/GrInOrderDrawBuffer.cpp

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: Created 5 years, 9 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
Index: src/gpu/GrInOrderDrawBuffer.cpp
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp
index 8289f006d41804ab5cdadd68c2d93a881aff5f72..643b2183d531f46df83e7ac0b8d070e7cc7a8428 100644
--- a/src/gpu/GrInOrderDrawBuffer.cpp
+++ b/src/gpu/GrInOrderDrawBuffer.cpp
@@ -393,6 +393,11 @@ bool GrInOrderDrawBuffer::onCopySurface(GrSurface* dst,
return SkToBool(cmd);
}
+void GrInOrderDrawBuffer::onBlendBarrier() {
+ GrTargetCommands::Cmd* cmd = fCommands.recordBlendBarrier(this);
+ this->recordTraceMarkersIfNecessary(cmd);
+}
+
void GrInOrderDrawBuffer::recordTraceMarkersIfNecessary(GrTargetCommands::Cmd* cmd) {
if (!cmd) {
return;

Powered by Google App Engine
This is Rietveld 408576698