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 27 matching lines...) Expand all Loading... |
38 class GrClip; | 38 class GrClip; |
39 class GrCaps; | 39 class GrCaps; |
40 class GrPath; | 40 class GrPath; |
41 class GrDrawPathBatchBase; | 41 class GrDrawPathBatchBase; |
42 class GrPathRangeDraw; | 42 class GrPathRangeDraw; |
43 | 43 |
44 class GrDrawTarget final : public SkRefCnt { | 44 class GrDrawTarget final : public SkRefCnt { |
45 public: | 45 public: |
46 /** Options for GrDrawTarget behavior. */ | 46 /** Options for GrDrawTarget behavior. */ |
47 struct Options { | 47 struct Options { |
48 Options () : fClipBatchToBounds(false), fDrawBatchBounds(false) {} | 48 Options () : fClipBatchToBounds(false) {} |
49 bool fClipBatchToBounds; | 49 bool fClipBatchToBounds; |
50 bool fDrawBatchBounds; | |
51 }; | 50 }; |
52 | 51 |
53 GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&); | 52 GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&); |
54 | 53 |
55 ~GrDrawTarget() override; | 54 ~GrDrawTarget() override; |
56 | 55 |
57 void makeClosed() { | 56 void makeClosed() { |
58 // We only close drawTargets When MDB is enabled. When MDB is disabled t
here is only | 57 // We only close drawTargets When MDB is enabled. When MDB is disabled t
here is only |
59 // ever one drawTarget and all calls will be funnelled into it. | 58 // ever one drawTarget and all calls will be funnelled into it. |
60 #ifdef ENABLE_MDB | 59 #ifdef ENABLE_MDB |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 GrResourceProvider* fResourceProvider; | 312 GrResourceProvider* fResourceProvider; |
314 bool fFlushing; | 313 bool fFlushing; |
315 | 314 |
316 SkDEBUGCODE(int fDebugID;) | 315 SkDEBUGCODE(int fDebugID;) |
317 uint32_t fFlags; | 316 uint32_t fFlags; |
318 | 317 |
319 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 318 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
320 SkTDArray<GrDrawTarget*> fDependencies; | 319 SkTDArray<GrDrawTarget*> fDependencies; |
321 GrRenderTarget* fRenderTarget; | 320 GrRenderTarget* fRenderTarget; |
322 | 321 |
323 bool fDrawBatchBounds; | |
324 | |
325 typedef SkRefCnt INHERITED; | 322 typedef SkRefCnt INHERITED; |
326 }; | 323 }; |
327 | 324 |
328 #endif | 325 #endif |
OLD | NEW |