Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: src/gpu/GrDrawTarget.h

Issue 1386463004: Incrementally flush GrDrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | src/gpu/GrDrawTarget.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTarget.cpp » ('j') | src/gpu/GrDrawTarget.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698