aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawTarget.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-10-02 09:06:39 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-02 09:06:39 -0700
commita7e878064509ef96b54d5507dab0b50def66dc13 (patch)
tree76be24b95d95d4a0304bd20938f9e3521c464710 /src/gpu/GrDrawTarget.h
parentdb9f66472e6e6a916bfc07052029a93c9332b5e5 (diff)
Incrementally flush GrDrawTarget
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r--src/gpu/GrDrawTarget.h5
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;
};