aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-08 11:50:55 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-08 17:33:41 +0000
commitc01389271162d08303088732c30f419807f25d33 (patch)
tree524961ad9fb62471cac8853bc16cb1f60d276303 /src/gpu/GrRenderTargetOpList.h
parentfd171ede0c97dd93871a27fcba548750ff73093b (diff)
Add a unique ID to GrOpLists and return it from GrRenderTargetContext::addDrawOp
This is to support the preFlush callbacks Change-Id: I8513ea08b6516681566eceafa789b2ee7925ebce Reviewed-on: https://skia-review.googlesource.com/9199 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r--src/gpu/GrRenderTargetOpList.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h
index e232547f70..3929c5cb5a 100644
--- a/src/gpu/GrRenderTargetOpList.h
+++ b/src/gpu/GrRenderTargetOpList.h
@@ -67,8 +67,9 @@ public:
*/
const GrCaps* caps() const { return fGpu->caps(); }
- void addOp(std::unique_ptr<GrOp> op, GrRenderTargetContext* renderTargetContext) {
+ uint32_t addOp(std::unique_ptr<GrOp> op, GrRenderTargetContext* renderTargetContext) {
this->recordOp(std::move(op), renderTargetContext);
+ return this->uniqueID();
}
/** Clears the entire render target */