Add a unique ID to GrOpLists and return it from GrRenderTargetContext::addDrawOp
authorRobert Phillips <robertphillips@google.com>
Wed, 8 Mar 2017 16:50:55 +0000 (11:50 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 8 Mar 2017 17:33:41 +0000 (17:33 +0000)
commitc01389271162d08303088732c30f419807f25d33
tree524961ad9fb62471cac8853bc16cb1f60d276303
parentfd171ede0c97dd93871a27fcba548750ff73093b
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>
src/gpu/GrOpList.cpp
src/gpu/GrOpList.h
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetContext.h
src/gpu/GrRenderTargetContextPriv.h
src/gpu/GrRenderTargetOpList.h
tools/gpu/GrTest.cpp