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

Unified Diff: src/gpu/GrTargetCommands.h

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/GrTargetCommands.h
diff --git a/src/gpu/GrTargetCommands.h b/src/gpu/GrTargetCommands.h
index 4b3dd574e3a537c05b0aaaee4ef33caf5100000e..3a21afe938d70e357b7968cbdc437af3d5aafd15 100644
--- a/src/gpu/GrTargetCommands.h
+++ b/src/gpu/GrTargetCommands.h
@@ -47,6 +47,7 @@ public:
kDrawPath_CmdType = 6,
kDrawPaths_CmdType = 7,
kDrawBatch_CmdType = 8,
+ kBlendBarrier_CmdType = 9,
};
Cmd(CmdType type) : fMarkerID(-1), fType(type) {}
@@ -121,6 +122,7 @@ public:
GrSurface* src,
const SkIRect& srcRect,
const SkIPoint& dstPoint);
+ Cmd* recordBlendBarrier(GrInOrderDrawBuffer*);
protected:
void willReserveVertexAndIndexSpace(int vertexCount,
@@ -295,6 +297,11 @@ private:
GrBatchTarget* fBatchTarget;
};
+ struct BlendBarrier : public Cmd {
+ BlendBarrier() : Cmd(kBlendBarrier_CmdType) {}
+ void execute(GrGpu*, const SetState*) override;
+ };
+
static const int kCmdBufferInitialSizeInBytes = 8 * 1024;
typedef void* TCmdAlign; // This wouldn't be enough align if a command used long double.

Powered by Google App Engine
This is Rietveld 408576698