diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-18 12:59:22 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-18 18:31:58 +0000 |
commit | 40a29d7705d970be03ff94f9fa062db75dccbd0f (patch) | |
tree | 67908df5424d112ea27a012de435819586f23793 /src/gpu/GrOpFlushState.h | |
parent | 3af7f6e2ce32c0909159145b23378d119e900bbe (diff) |
Move GrOpFlushState out of GrDrawingManager and onto the stack
Change-Id: If1b3481af7637bfed8a73d75be41c6422319951f
Reviewed-on: https://skia-review.googlesource.com/96540
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpFlushState.h')
-rw-r--r-- | src/gpu/GrOpFlushState.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrOpFlushState.h b/src/gpu/GrOpFlushState.h index a9cf9a070f..1f77c25cb7 100644 --- a/src/gpu/GrOpFlushState.h +++ b/src/gpu/GrOpFlushState.h @@ -24,7 +24,7 @@ class GrResourceProvider; /** Tracks the state across all the GrOps (really just the GrDrawOps) in a GrOpList flush. */ class GrOpFlushState final : public GrDeferredUploadTarget, public GrMeshDrawOp::Target { public: - GrOpFlushState(GrGpu*, GrResourceProvider*); + GrOpFlushState(GrGpu*, GrResourceProvider*, GrTokenTracker*); ~GrOpFlushState() final { this->reset(); } @@ -67,6 +67,7 @@ public: /** Overrides of GrDeferredUploadTarget. */ + const GrTokenTracker* tokenTracker() final { return fTokenTracker; } GrDeferredUploadToken addInlineUpload(GrDeferredTextureUploadFn&&) final; GrDeferredUploadToken addASAPUpload(GrDeferredTextureUploadFn&&) final; @@ -119,7 +120,7 @@ private: GrIndexBufferAllocPool fIndexPool; // Data stored on behalf of the ops being flushed. - SkArenaAllocList<GrDeferredTextureUploadFn> fAsapUploads; + SkArenaAllocList<GrDeferredTextureUploadFn> fASAPUploads; SkArenaAllocList<InlineUpload> fInlineUploads; SkArenaAllocList<Draw> fDraws; // TODO: These should go in the arena. However, GrGpuCommandBuffer and other classes currently @@ -136,6 +137,7 @@ private: GrGpu* fGpu; GrResourceProvider* fResourceProvider; + GrTokenTracker* fTokenTracker; GrGpuCommandBuffer* fCommandBuffer = nullptr; // Variables that are used to track where we are in lists as ops are executed |