diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-08 11:50:55 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-08 17:33:41 +0000 |
commit | c01389271162d08303088732c30f419807f25d33 (patch) | |
tree | 524961ad9fb62471cac8853bc16cb1f60d276303 /src/gpu/GrRenderTargetContextPriv.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/GrRenderTargetContextPriv.h')
-rw-r--r-- | src/gpu/GrRenderTargetContextPriv.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrRenderTargetContextPriv.h b/src/gpu/GrRenderTargetContextPriv.h index 8a1061c0d0..842e23c066 100644 --- a/src/gpu/GrRenderTargetContextPriv.h +++ b/src/gpu/GrRenderTargetContextPriv.h @@ -108,11 +108,11 @@ public: return fRenderTargetContext->fRenderTargetProxy->uniqueID(); } - void testingOnly_addDrawOp(GrPaint&&, - GrAAType, - std::unique_ptr<GrDrawOp>, - const GrUserStencilSettings* = nullptr, - bool snapToCenters = false); + uint32_t testingOnly_addDrawOp(GrPaint&&, + GrAAType, + std::unique_ptr<GrDrawOp>, + const GrUserStencilSettings* = nullptr, + bool snapToCenters = false); bool refsWrappedObjects() const { return fRenderTargetContext->fRenderTargetProxy->refsWrappedObjects(); |