OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrDrawTarget_DEFINED | 8 #ifndef GrDrawTarget_DEFINED |
9 #define GrDrawTarget_DEFINED | 9 #define GrDrawTarget_DEFINED |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 GrStencilSettings*); | 223 GrStencilSettings*); |
224 bool setupClip(const GrPipelineBuilder&, | 224 bool setupClip(const GrPipelineBuilder&, |
225 GrPipelineBuilder::AutoRestoreFragmentProcessorState*
, | 225 GrPipelineBuilder::AutoRestoreFragmentProcessorState*
, |
226 GrPipelineBuilder::AutoRestoreStencil*, | 226 GrPipelineBuilder::AutoRestoreStencil*, |
227 GrScissorState*, | 227 GrScissorState*, |
228 const SkRect* devBounds); | 228 const SkRect* devBounds); |
229 | 229 |
230 // Used only by CMM. | 230 // Used only by CMM. |
231 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); | 231 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); |
232 | 232 |
| 233 // flushes N batches, starting from index |
| 234 inline void flushN(int index, int n); |
| 235 |
233 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; | 236 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; |
234 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; | 237 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; |
235 // The context is only in service of the clip mask manager, remove once CMM
doesn't need this. | 238 // The context is only in service of the clip mask manager, remove once CMM
doesn't need this. |
236 GrContext* fContext; | 239 GrContext* fContext; |
237 GrGpu* fGpu; | 240 GrGpu* fGpu; |
238 GrResourceProvider* fResourceProvider; | 241 GrResourceProvider* fResourceProvider; |
239 bool fFlushing; | 242 bool fFlushing; |
240 GrBatchToken fLastFlushToken; | 243 GrBatchToken fLastFlushToken; |
| 244 int fLastFlushedBatch; |
241 | 245 |
242 typedef SkRefCnt INHERITED; | 246 typedef SkRefCnt INHERITED; |
243 }; | 247 }; |
244 | 248 |
245 #endif | 249 #endif |
OLD | NEW |