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