diff options
author | 2017-03-08 11:50:55 -0500 | |
---|---|---|
committer | 2017-03-08 17:33:41 +0000 | |
commit | c01389271162d08303088732c30f419807f25d33 (patch) | |
tree | 524961ad9fb62471cac8853bc16cb1f60d276303 /src/gpu/GrRenderTargetOpList.h | |
parent | fd171ede0c97dd93871a27fcba548750ff73093b (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.h | 3 |
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 */ |