diff options
author | 2015-10-02 09:06:39 -0700 | |
---|---|---|
committer | 2015-10-02 09:06:39 -0700 | |
commit | a7e878064509ef96b54d5507dab0b50def66dc13 (patch) | |
tree | 76be24b95d95d4a0304bd20938f9e3521c464710 /src/gpu/GrDrawTarget.h | |
parent | db9f66472e6e6a916bfc07052029a93c9332b5e5 (diff) |
Incrementally flush GrDrawTarget
BUG=skia:
Review URL: https://codereview.chromium.org/1386463004
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 3c28b1e254..8c85e0ad2a 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -8,6 +8,7 @@ #ifndef GrDrawTarget_DEFINED #define GrDrawTarget_DEFINED +#include "GrBatchFlushState.h" #include "GrClip.h" #include "GrClipMaskManager.h" #include "GrContext.h" @@ -33,6 +34,7 @@ #include "SkXfermode.h" class GrBatch; +class GrBatchFlushState; class GrClip; class GrCaps; class GrPath; @@ -228,8 +230,9 @@ private: GrContext* fContext; GrGpu* fGpu; GrResourceProvider* fResourceProvider; + GrBatchFlushState fFlushState; bool fFlushing; - GrBatchToken fLastFlushToken; + int fFirstUnpreparedBatch; typedef SkRefCnt INHERITED; }; |