blob: 1d5480afc61470730b14821b5dcb5d8e69103f08 [file] [log] [blame]
reed@google.comac10a2d2010-12-22 21:39:39 +00001/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00002 * Copyright 2011 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
reed@google.comac10a2d2010-12-22 21:39:39 +00006 */
7
reed@google.comac10a2d2010-12-22 21:39:39 +00008#ifndef GrInOrderDrawBuffer_DEFINED
9#define GrInOrderDrawBuffer_DEFINED
10
11#include "GrDrawTarget.h"
12#include "GrAllocPool.h"
13#include "GrAllocator.h"
joshualittd53a8272014-11-10 16:03:14 -080014#include "GrGpu.h"
bsalomonb3e3a952014-09-19 11:10:40 -070015#include "GrIndexBuffer.h"
16#include "GrRenderTarget.h"
bsalomon@google.comded4f4b2012-06-28 18:48:06 +000017#include "GrPath.h"
bsalomonb3e3a952014-09-19 11:10:40 -070018#include "GrPathRange.h"
19#include "GrSurface.h"
cdalton6819df32014-10-15 13:43:48 -070020#include "GrTRecorder.h"
bsalomonb3e3a952014-09-19 11:10:40 -070021#include "GrVertexBuffer.h"
reed@google.comac10a2d2010-12-22 21:39:39 +000022
robertphillips@google.com641f8b12012-07-31 19:15:58 +000023#include "SkClipStack.h"
bsalomon@google.comded4f4b2012-06-28 18:48:06 +000024#include "SkTemplates.h"
commit-bot@chromium.orga0b40282013-09-18 13:00:55 +000025#include "SkTypes.h"
bsalomon@google.comded4f4b2012-06-28 18:48:06 +000026
bsalomon@google.com1c13c962011-02-14 16:51:21 +000027class GrIndexBufferAllocPool;
bsalomon@google.com471d4712011-08-23 15:45:25 +000028class GrVertexBufferAllocPool;
reed@google.comac10a2d2010-12-22 21:39:39 +000029
bsalomon@google.com1c13c962011-02-14 16:51:21 +000030/**
bsalomon@google.com55e4a202013-01-11 13:54:21 +000031 * GrInOrderDrawBuffer is an implementation of GrDrawTarget that queues up draws for eventual
32 * playback into a GrGpu. In theory one draw buffer could playback into another. When index or
33 * vertex buffers are used as geometry sources it is the callers the draw buffer only holds
34 * references to the buffers. It is the callers responsibility to ensure that the data is still
35 * valid when the draw buffer is played back into a GrGpu. Similarly, it is the caller's
36 * responsibility to ensure that all referenced textures, buffers, and render-targets are associated
37 * in the GrGpu object that the buffer is played back into. The buffer requires VB and IB pools to
38 * store geometry.
skia.committer@gmail.com07d3a652013-04-10 07:01:15 +000039 */
joshualitt6db519c2014-10-29 08:48:18 -070040class GrInOrderDrawBuffer : public GrClipTarget {
reed@google.comac10a2d2010-12-22 21:39:39 +000041public:
42
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000043 /**
44 * Creates a GrInOrderDrawBuffer
45 *
bsalomon@google.com6e4e6502013-02-25 20:12:45 +000046 * @param gpu the gpu object that this draw buffer flushes to.
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000047 * @param vertexPool pool where vertices for queued draws will be saved when
48 * the vertex source is either reserved or array.
49 * @param indexPool pool where indices for queued draws will be saved when
50 * the index source is either reserved or array.
51 */
bsalomon@google.com6e4e6502013-02-25 20:12:45 +000052 GrInOrderDrawBuffer(GrGpu* gpu,
bsalomon@google.com471d4712011-08-23 15:45:25 +000053 GrVertexBufferAllocPool* vertexPool,
bsalomon@google.com1c13c962011-02-14 16:51:21 +000054 GrIndexBufferAllocPool* indexPool);
reed@google.comac10a2d2010-12-22 21:39:39 +000055
56 virtual ~GrInOrderDrawBuffer();
57
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000058 /**
bsalomon@google.com55e4a202013-01-11 13:54:21 +000059 * Empties the draw buffer of any queued up draws. This must not be called while inside an
60 * unbalanced pushGeometrySource(). The current draw state and clip are preserved.
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000061 */
62 void reset();
63
64 /**
bsalomon@google.com6e4e6502013-02-25 20:12:45 +000065 * This plays the queued up draws to its GrGpu target. It also resets this object (i.e. flushing
bsalomon@google.com55e4a202013-01-11 13:54:21 +000066 * is destructive). This buffer must not have an active reserved vertex or index source. Any
67 * reserved geometry on the target will be finalized because it's geometry source will be pushed
68 * before flushing and popped afterwards.
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000069 */
robertphillips@google.com1267fbd2013-07-03 18:37:27 +000070 void flush();
bsalomon@google.com97805382012-03-13 14:32:07 +000071
commit-bot@chromium.orga8916ff2013-08-16 15:53:46 +000072 // tracking for draws
73 virtual DrawToken getCurrentDrawToken() { return DrawToken(this, fDrawID); }
74
bsalomon@google.com86afc2a2011-02-16 16:12:19 +000075 // overrides from GrDrawTarget
joshualitt9853cce2014-11-17 14:22:48 -080076 virtual bool geometryHints(size_t vertexStride,
77 int* vertexCount,
bsalomon@google.com97805382012-03-13 14:32:07 +000078 int* indexCount) const SK_OVERRIDE;
joshualitt6db519c2014-10-29 08:48:18 -070079
joshualitta7024152014-11-03 14:16:35 -080080 virtual bool copySurface(GrSurface* dst,
81 GrSurface* src,
82 const SkIRect& srcRect,
83 const SkIPoint& dstPoint) SK_OVERRIDE;
84
joshualitt9853cce2014-11-17 14:22:48 -080085 virtual bool canCopySurface(const GrSurface* dst,
86 const GrSurface* src,
joshualitta7024152014-11-03 14:16:35 -080087 const SkIRect& srcRect,
88 const SkIPoint& dstPoint) SK_OVERRIDE;
89
joshualitt6db519c2014-10-29 08:48:18 -070090 virtual void clearStencilClip(const SkIRect& rect,
91 bool insideClip,
92 GrRenderTarget* renderTarget) SK_OVERRIDE;
93
commit-bot@chromium.org28361fa2014-03-28 16:08:05 +000094 virtual void discard(GrRenderTarget*) SK_OVERRIDE;
bsalomon@google.com0b335c12011-04-25 19:17:44 +000095
bsalomonf2703d82014-10-28 14:33:06 -070096 virtual void initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_OVERRIDE;
bsalomon@google.comeb851172013-04-15 13:51:00 +000097
reed@google.comac10a2d2010-12-22 21:39:39 +000098private:
joshualitt2c93efe2014-11-06 12:57:13 -080099 typedef GrClipMaskManager::ScissorState ScissorState;
cdalton6819df32014-10-15 13:43:48 -0700100 enum {
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000101 kDraw_Cmd = 1,
102 kStencilPath_Cmd = 2,
103 kSetState_Cmd = 3,
joshualitt2c93efe2014-11-06 12:57:13 -0800104 kClear_Cmd = 4,
105 kCopySurface_Cmd = 5,
106 kDrawPath_Cmd = 6,
107 kDrawPaths_Cmd = 7,
bsalomon@google.coma4f6b102012-06-26 21:04:22 +0000108 };
109
cdalton6819df32014-10-15 13:43:48 -0700110 struct Cmd : ::SkNoncopyable {
111 Cmd(uint8_t type) : fType(type) {}
112 virtual ~Cmd() {}
113
cdalton3fc6a2f2014-11-13 11:54:20 -0800114 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*) = 0;
cdalton6819df32014-10-15 13:43:48 -0700115
116 uint8_t fType;
117 };
118
119 struct Draw : public Cmd {
joshualitt7eb8c7b2014-11-18 14:24:27 -0800120 Draw(const DrawInfo& info, const ScissorState& scissorState)
cdalton6819df32014-10-15 13:43:48 -0700121 : Cmd(kDraw_Cmd)
122 , fInfo(info)
joshualitt7eb8c7b2014-11-18 14:24:27 -0800123 , fScissorState(scissorState){}
bsalomonb3e3a952014-09-19 11:10:40 -0700124
cdalton3fc6a2f2014-11-13 11:54:20 -0800125 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700126
joshualitt2c93efe2014-11-06 12:57:13 -0800127 DrawInfo fInfo;
128 ScissorState fScissorState;
reed@google.comac10a2d2010-12-22 21:39:39 +0000129 };
130
cdalton6819df32014-10-15 13:43:48 -0700131 struct StencilPath : public Cmd {
132 StencilPath(const GrPath* path) : Cmd(kStencilPath_Cmd), fPath(path) {}
sugoi@google.com5f74cf82012-12-17 21:16:45 +0000133
bsalomonb3e3a952014-09-19 11:10:40 -0700134 const GrPath* path() const { return fPath.get(); }
135
cdalton3fc6a2f2014-11-13 11:54:20 -0800136 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700137
joshualitt2c93efe2014-11-06 12:57:13 -0800138 ScissorState fScissorState;
139 GrStencilSettings fStencilSettings;
bsalomonb3e3a952014-09-19 11:10:40 -0700140
141 private:
bsalomonbcf0a522014-10-08 08:40:09 -0700142 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000143 };
144
cdalton6819df32014-10-15 13:43:48 -0700145 struct DrawPath : public Cmd {
146 DrawPath(const GrPath* path) : Cmd(kDrawPath_Cmd), fPath(path) {}
commit-bot@chromium.orgc4dc0ad2013-10-09 14:11:33 +0000147
bsalomonb3e3a952014-09-19 11:10:40 -0700148 const GrPath* path() const { return fPath.get(); }
149
cdalton3fc6a2f2014-11-13 11:54:20 -0800150 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700151
joshualitt2c93efe2014-11-06 12:57:13 -0800152 GrDeviceCoordTexture fDstCopy;
153 ScissorState fScissorState;
154 GrStencilSettings fStencilSettings;
bsalomonb3e3a952014-09-19 11:10:40 -0700155
156 private:
bsalomonbcf0a522014-10-08 08:40:09 -0700157 GrPendingIOResource<const GrPath, kRead_GrIOType> fPath;
commit-bot@chromium.orgc4dc0ad2013-10-09 14:11:33 +0000158 };
159
cdalton6819df32014-10-15 13:43:48 -0700160 struct DrawPaths : public Cmd {
161 DrawPaths(const GrPathRange* pathRange) : Cmd(kDrawPaths_Cmd), fPathRange(pathRange) {}
bsalomonb3e3a952014-09-19 11:10:40 -0700162
163 const GrPathRange* pathRange() const { return fPathRange.get(); }
164
cdalton3fc6a2f2014-11-13 11:54:20 -0800165 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700166
cdalton3fc6a2f2014-11-13 11:54:20 -0800167 int fIndicesLocation;
joshualitt2c93efe2014-11-06 12:57:13 -0800168 size_t fCount;
cdalton3fc6a2f2014-11-13 11:54:20 -0800169 int fTransformsLocation;
joshualitt2c93efe2014-11-06 12:57:13 -0800170 PathTransformType fTransformsType;
171 GrDeviceCoordTexture fDstCopy;
172 ScissorState fScissorState;
173 GrStencilSettings fStencilSettings;
bsalomonb3e3a952014-09-19 11:10:40 -0700174
175 private:
bsalomonbcf0a522014-10-08 08:40:09 -0700176 GrPendingIOResource<const GrPathRange, kRead_GrIOType> fPathRange;
commit-bot@chromium.org9b62aa12014-03-25 11:59:40 +0000177 };
178
commit-bot@chromium.org28361fa2014-03-28 16:08:05 +0000179 // This is also used to record a discard by setting the color to GrColor_ILLEGAL
cdalton6819df32014-10-15 13:43:48 -0700180 struct Clear : public Cmd {
181 Clear(GrRenderTarget* rt) : Cmd(kClear_Cmd), fRenderTarget(rt) {}
182
bsalomonb3e3a952014-09-19 11:10:40 -0700183 GrRenderTarget* renderTarget() const { return fRenderTarget.get(); }
robertphillips@google.comc82a8b72012-06-21 20:15:48 +0000184
cdalton3fc6a2f2014-11-13 11:54:20 -0800185 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700186
bsalomonb3e3a952014-09-19 11:10:40 -0700187 SkIRect fRect;
188 GrColor fColor;
189 bool fCanIgnoreRect;
190
191 private:
bsalomonbcf0a522014-10-08 08:40:09 -0700192 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
bsalomon@google.com0b335c12011-04-25 19:17:44 +0000193 };
194
joshualitt6db519c2014-10-29 08:48:18 -0700195 // This command is ONLY used by the clip mask manager to clear the stencil clip bits
196 struct ClearStencilClip : public Cmd {
197 ClearStencilClip(GrRenderTarget* rt) : Cmd(kClear_Cmd), fRenderTarget(rt) {}
198
199 GrRenderTarget* renderTarget() const { return fRenderTarget.get(); }
200
cdalton3fc6a2f2014-11-13 11:54:20 -0800201 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
joshualitt6db519c2014-10-29 08:48:18 -0700202
203 SkIRect fRect;
204 bool fInsideClip;
205
206 private:
207 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
208 };
209
cdalton6819df32014-10-15 13:43:48 -0700210 struct CopySurface : public Cmd {
211 CopySurface(GrSurface* dst, GrSurface* src) : Cmd(kCopySurface_Cmd), fDst(dst), fSrc(src) {}
bsalomonb3e3a952014-09-19 11:10:40 -0700212
213 GrSurface* dst() const { return fDst.get(); }
214 GrSurface* src() const { return fSrc.get(); }
215
cdalton3fc6a2f2014-11-13 11:54:20 -0800216 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700217
bsalomonb3e3a952014-09-19 11:10:40 -0700218 SkIPoint fDstPoint;
219 SkIRect fSrcRect;
220
221 private:
bsalomonbcf0a522014-10-08 08:40:09 -0700222 GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst;
223 GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc;
bsalomon@google.com116ad842013-04-09 15:38:19 +0000224 };
225
cdalton6819df32014-10-15 13:43:48 -0700226 struct SetState : public Cmd {
227 SetState(const GrDrawState& state) : Cmd(kSetState_Cmd), fState(state) {}
228
cdalton3fc6a2f2014-11-13 11:54:20 -0800229 virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
cdalton6819df32014-10-15 13:43:48 -0700230
231 GrDrawState fState;
joshualittd53a8272014-11-10 16:03:14 -0800232 GrGpu::DrawType fDrawType;
233 GrDeviceCoordTexture fDstCopy;
bsalomonf0480b12014-07-02 12:11:24 -0700234 };
235
cdalton6819df32014-10-15 13:43:48 -0700236 typedef void* TCmdAlign; // This wouldn't be enough align if a command used long double.
237 typedef GrTRecorder<Cmd, TCmdAlign> CmdBuffer;
238
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000239 // overrides from GrDrawTarget
joshualitt9853cce2014-11-17 14:22:48 -0800240 virtual void onDraw(const GrDrawState&,
241 const DrawInfo&,
242 const GrClipMaskManager::ScissorState&) SK_OVERRIDE;
243 virtual void onDrawRect(GrDrawState*,
244 const SkRect& rect,
commit-bot@chromium.orgfd03d4a2013-07-17 21:39:42 +0000245 const SkRect* localRect,
bsalomon@google.com0406b9e2013-04-02 21:00:15 +0000246 const SkMatrix* localMatrix) SK_OVERRIDE;
commit-bot@chromium.org32184d82013-10-09 15:14:18 +0000247
joshualitt9853cce2014-11-17 14:22:48 -0800248 virtual void onStencilPath(const GrDrawState&,
249 const GrPath*,
joshualitt2c93efe2014-11-06 12:57:13 -0800250 const GrClipMaskManager::ScissorState&,
251 const GrStencilSettings&) SK_OVERRIDE;
joshualitt9853cce2014-11-17 14:22:48 -0800252 virtual void onDrawPath(const GrDrawState&,
253 const GrPath*,
joshualitt2c93efe2014-11-06 12:57:13 -0800254 const GrClipMaskManager::ScissorState&,
255 const GrStencilSettings&,
commit-bot@chromium.orgc4dc0ad2013-10-09 14:11:33 +0000256 const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE;
joshualitt9853cce2014-11-17 14:22:48 -0800257 virtual void onDrawPaths(const GrDrawState&,
258 const GrPathRange*,
joshualitt2c93efe2014-11-06 12:57:13 -0800259 const uint32_t indices[],
260 int count,
261 const float transforms[],
262 PathTransformType,
263 const GrClipMaskManager::ScissorState&,
264 const GrStencilSettings&,
265 const GrDeviceCoordTexture*) SK_OVERRIDE;
bsalomon63b21962014-11-05 07:05:34 -0800266 virtual void onClear(const SkIRect* rect,
267 GrColor color,
268 bool canIgnoreRect,
269 GrRenderTarget* renderTarget) SK_OVERRIDE;
joshualitt7eb8c7b2014-11-18 14:24:27 -0800270 virtual void setDrawBuffers(DrawInfo*) SK_OVERRIDE;
commit-bot@chromium.org32184d82013-10-09 15:14:18 +0000271
jvanverth@google.coma6338982013-01-31 21:34:25 +0000272 virtual bool onReserveVertexSpace(size_t vertexSize,
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000273 int vertexCount,
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +0000274 void** vertices) SK_OVERRIDE;
275 virtual bool onReserveIndexSpace(int indexCount,
276 void** indices) SK_OVERRIDE;
277 virtual void releaseReservedVertexSpace() SK_OVERRIDE;
278 virtual void releaseReservedIndexSpace() SK_OVERRIDE;
bsalomon@google.com13f1b6f2012-05-31 12:52:43 +0000279 virtual void geometrySourceWillPush() SK_OVERRIDE;
bsalomon@google.com02ddc8b2013-01-28 15:35:28 +0000280 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK_OVERRIDE;
jvanverth@google.comb75b0a02013-02-05 20:33:30 +0000281 virtual void willReserveVertexAndIndexSpace(int vertexCount,
joshualitt9853cce2014-11-17 14:22:48 -0800282 size_t vertexStride,
bsalomon@google.com02ddc8b2013-01-28 15:35:28 +0000283 int indexCount) SK_OVERRIDE;
bsalomon@google.com116ad842013-04-09 15:38:19 +0000284
bsalomon@google.comd62e88e2013-02-01 14:19:27 +0000285 // Attempts to concat instances from info onto the previous draw. info must represent an
286 // instanced draw. The caller must have already recorded a new draw state and clip if necessary.
joshualitt9853cce2014-11-17 14:22:48 -0800287 int concatInstancedDraw(const GrDrawState&,
288 const DrawInfo&,
289 const GrClipMaskManager::ScissorState&);
bsalomon@google.com1c13c962011-02-14 16:51:21 +0000290
bsalomon838f62d2014-08-05 07:15:57 -0700291 // Determines whether the current draw operation requieres a new drawstate and if so records it.
joshualitt9853cce2014-11-17 14:22:48 -0800292 void recordStateIfNecessary(const GrDrawState&, GrGpu::DrawType, const GrDeviceCoordTexture*);
bsalomon838f62d2014-08-05 07:15:57 -0700293 // We lazily record clip changes in order to skip clips that have no effect.
cdalton6819df32014-10-15 13:43:48 -0700294 void recordClipIfNecessary();
295 // Records any trace markers for a command after adding it to the buffer.
296 void recordTraceMarkersIfNecessary();
bsalomonb3e3a952014-09-19 11:10:40 -0700297
298 virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; }
bsalomon@google.com934c5702012-03-20 21:17:58 +0000299
bsalomon@google.com116ad842013-04-09 15:38:19 +0000300 // TODO: Use a single allocator for commands and records
bsalomon@google.com4b90c622011-09-28 17:52:15 +0000301 enum {
cdaltonc4650ee2014-11-07 12:51:18 -0800302 kCmdBufferInitialSizeInBytes = 8 * 1024,
cdalton3fc6a2f2014-11-13 11:54:20 -0800303 kPathIdxBufferMinReserve = 64,
304 kPathXformBufferMinReserve = 2 * kPathIdxBufferMinReserve,
cdalton6819df32014-10-15 13:43:48 -0700305 kGeoPoolStatePreAllocCnt = 4,
bsalomon@google.com4b90c622011-09-28 17:52:15 +0000306 };
reed@google.comac10a2d2010-12-22 21:39:39 +0000307
cdalton6819df32014-10-15 13:43:48 -0700308 CmdBuffer fCmdBuffer;
309 GrDrawState* fLastState;
cdalton6819df32014-10-15 13:43:48 -0700310 SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers;
joshualitt3322fa42014-11-07 08:48:51 -0800311 GrGpu* fDstGpu;
joshualitt2c93efe2014-11-06 12:57:13 -0800312 GrVertexBufferAllocPool& fVertexPool;
313 GrIndexBufferAllocPool& fIndexPool;
cdalton3fc6a2f2014-11-13 11:54:20 -0800314 SkTDArray<uint32_t> fPathIndexBuffer;
315 SkTDArray<float> fPathTransformBuffer;
bsalomon@google.com934c5702012-03-20 21:17:58 +0000316
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000317 struct GeometryPoolState {
bsalomonb3e3a952014-09-19 11:10:40 -0700318 const GrVertexBuffer* fPoolVertexBuffer;
319 int fPoolStartVertex;
320 const GrIndexBuffer* fPoolIndexBuffer;
321 int fPoolStartIndex;
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000322 // caller may conservatively over reserve vertices / indices.
323 // we release unused space back to allocator if possible
324 // can only do this if there isn't an intervening pushGeometrySource()
bsalomonb3e3a952014-09-19 11:10:40 -0700325 size_t fUsedPoolVertexBytes;
326 size_t fUsedPoolIndexBytes;
bsalomon@google.com25fb21f2011-06-21 18:17:25 +0000327 };
reed@google.comac10a2d2010-12-22 21:39:39 +0000328
bsalomonb3e3a952014-09-19 11:10:40 -0700329 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateStack;
skia.committer@gmail.com74758112013-08-17 07:01:54 +0000330
bsalomonb3e3a952014-09-19 11:10:40 -0700331 GeoPoolStateStack fGeoPoolStateStack;
332 bool fFlushing;
333 uint32_t fDrawID;
robertphillips@google.comc82a8b72012-06-21 20:15:48 +0000334
joshualitt6db519c2014-10-29 08:48:18 -0700335 typedef GrClipTarget INHERITED;
reed@google.comac10a2d2010-12-22 21:39:39 +0000336};
337
338#endif