diff options
author | 2018-03-08 15:27:36 -0500 | |
---|---|---|
committer | 2018-03-08 21:05:21 +0000 | |
commit | 4684f82ebca85d4c7043e5c1028e34cf5631da32 (patch) | |
tree | 6e640d1b212ab614fa19ccd4e43c5adff440dacd /src/gpu/GrOpFlushState.h | |
parent | 3adc12213b2d1efbe417476517ff3381af17a311 (diff) |
Add ability to uninstantiate lazy proxies after every flush.
Bug: skia:
Change-Id: Id32540cda54a9c5e3e6cb721776699be3cc8ac1a
Reviewed-on: https://skia-review.googlesource.com/113263
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpFlushState.h')
-rw-r--r-- | src/gpu/GrOpFlushState.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrOpFlushState.h b/src/gpu/GrOpFlushState.h index 4f210a83d2..a6f0c26e5e 100644 --- a/src/gpu/GrOpFlushState.h +++ b/src/gpu/GrOpFlushState.h @@ -12,6 +12,7 @@ #include "GrAppliedClip.h" #include "GrBufferAllocPool.h" #include "GrDeferredUpload.h" +#include "GrUninstantiateProxyTracker.h" #include "SkArenaAlloc.h" #include "SkArenaAllocList.h" #include "ops/GrMeshDrawOp.h" @@ -96,6 +97,10 @@ public: // permissible). GrAtlasManager* atlasManager() const final; + GrUninstantiateProxyTracker* uninstantiateProxyTracker() { + return &fUninstantiateProxyTracker; + } + private: /** GrMeshDrawOp::Target override. */ SkArenaAlloc* pipelineArena() override { return &fArena; } @@ -150,6 +155,9 @@ private: SkArenaAllocList<Draw>::Iter fCurrDraw; int fCurrMesh; SkArenaAllocList<InlineUpload>::Iter fCurrUpload; + + // Used to track the proxies that need to be uninstantiated after we finish a flush + GrUninstantiateProxyTracker fUninstantiateProxyTracker; }; #endif |