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

Unified Diff: src/gpu/GrTargetCommands.h

Issue 1137663004: Don't issue texture barriers for RT's with separate storage (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_oreq
Patch Set: rebase Created 5 years, 7 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.h ('k') | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTargetCommands.h
diff --git a/src/gpu/GrTargetCommands.h b/src/gpu/GrTargetCommands.h
index 5e35e50bbf3c7772a992e5d8bb83c4d08b78fdcd..2f9909bb026ae5bb3329a6f4d7946ecc86cf5291 100644
--- a/src/gpu/GrTargetCommands.h
+++ b/src/gpu/GrTargetCommands.h
@@ -242,11 +242,17 @@ private:
};
struct XferBarrier : public Cmd {
- XferBarrier() : Cmd(kXferBarrier_CmdType) {}
+ XferBarrier(GrRenderTarget* rt)
+ : Cmd(kXferBarrier_CmdType)
+ , fRenderTarget(rt) {
+ }
void execute(GrGpu*) override;
GrXferBarrierType fBarrierType;
+
+ private:
+ GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
};
static const int kCmdBufferInitialSizeInBytes = 8 * 1024;
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698