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

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: fixed 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 | « src/gpu/GrBatchFlushState.h ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
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
11 #include "GrBatchFlushState.h"
11 #include "GrClip.h" 12 #include "GrClip.h"
12 #include "GrClipMaskManager.h" 13 #include "GrClipMaskManager.h"
13 #include "GrContext.h" 14 #include "GrContext.h"
14 #include "GrPathProcessor.h" 15 #include "GrPathProcessor.h"
15 #include "GrPrimitiveProcessor.h" 16 #include "GrPrimitiveProcessor.h"
16 #include "GrIndexBuffer.h" 17 #include "GrIndexBuffer.h"
17 #include "GrPathRendering.h" 18 #include "GrPathRendering.h"
18 #include "GrPipelineBuilder.h" 19 #include "GrPipelineBuilder.h"
19 #include "GrPipeline.h" 20 #include "GrPipeline.h"
20 #include "GrVertexBuffer.h" 21 #include "GrVertexBuffer.h"
21 #include "GrXferProcessor.h" 22 #include "GrXferProcessor.h"
22 23
23 #include "SkClipStack.h" 24 #include "SkClipStack.h"
24 #include "SkMatrix.h" 25 #include "SkMatrix.h"
25 #include "SkPath.h" 26 #include "SkPath.h"
26 #include "SkStringUtils.h" 27 #include "SkStringUtils.h"
27 #include "SkStrokeRec.h" 28 #include "SkStrokeRec.h"
28 #include "SkTArray.h" 29 #include "SkTArray.h"
29 #include "SkTLazy.h" 30 #include "SkTLazy.h"
30 #include "SkTypes.h" 31 #include "SkTypes.h"
31 #include "SkXfermode.h" 32 #include "SkXfermode.h"
32 33
33 class GrBatch; 34 class GrBatch;
35 class GrBatchFlushState;
34 class GrClip; 36 class GrClip;
35 class GrCaps; 37 class GrCaps;
36 class GrPath; 38 class GrPath;
37 class GrDrawBatch; 39 class GrDrawBatch;
38 class GrDrawPathBatchBase; 40 class GrDrawPathBatchBase;
39 class GrPathRangeDraw; 41 class GrPathRangeDraw;
40 42
41 class GrDrawTarget final : public SkRefCnt { 43 class GrDrawTarget final : public SkRefCnt {
42 public: 44 public:
43 // The context may not be fully constructed and should not be used during Gr DrawTarget 45 // The context may not be fully constructed and should not be used during Gr DrawTarget
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 231
230 // Used only by CMM. 232 // Used only by CMM.
231 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); 233 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*);
232 234
233 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; 235 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches;
234 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; 236 SkAutoTDelete<GrClipMaskManager> fClipMaskManager;
235 // The context is only in service of the clip mask manager, remove once CMM doesn't need this. 237 // The context is only in service of the clip mask manager, remove once CMM doesn't need this.
236 GrContext* fContext; 238 GrContext* fContext;
237 GrGpu* fGpu; 239 GrGpu* fGpu;
238 GrResourceProvider* fResourceProvider; 240 GrResourceProvider* fResourceProvider;
241 GrBatchFlushState fFlushState;
239 bool fFlushing; 242 bool fFlushing;
240 GrBatchToken fLastFlushToken; 243 int fFirstUnpreparedBatch;
241 244
242 typedef SkRefCnt INHERITED; 245 typedef SkRefCnt INHERITED;
243 }; 246 };
244 247
245 #endif 248 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrBatchFlushState.h ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698