| 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 // The context may not be fully constructed and should not be used during Gr
DrawTarget | 46 // The context may not be fully constructed and should not be used during Gr
DrawTarget |
| 47 // construction. | 47 // construction. |
| 48 GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider*); | 48 GrDrawTarget(GrGpu* gpu, GrResourceProvider*); |
| 49 | 49 |
| 50 ~GrDrawTarget() override; | 50 ~GrDrawTarget() override; |
| 51 | 51 |
| 52 void makeClosed() { | 52 void makeClosed() { |
| 53 // We only close drawTargets When MDB is enabled. When MDB is disabled t
here is only | 53 // We only close drawTargets When MDB is enabled. When MDB is disabled t
here is only |
| 54 // ever one drawTarget and all calls will be funnelled into it. | 54 // ever one drawTarget and all calls will be funnelled into it. |
| 55 #ifdef ENABLE_MDB | 55 #ifdef ENABLE_MDB |
| 56 this->setFlag(kClosed_Flag); | 56 this->setFlag(kClosed_Flag); |
| 57 #endif | 57 #endif |
| 58 } | 58 } |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 GrResourceProvider* fResourceProvider; | 307 GrResourceProvider* fResourceProvider; |
| 308 GrBatchFlushState fFlushState; | 308 GrBatchFlushState fFlushState; |
| 309 bool fFlushing; | 309 bool fFlushing; |
| 310 int fFirstUnpreparedBatch; | 310 int fFirstUnpreparedBatch; |
| 311 | 311 |
| 312 SkDEBUGCODE(int fDebugID;) | 312 SkDEBUGCODE(int fDebugID;) |
| 313 uint32_t fFlags; | 313 uint32_t fFlags; |
| 314 | 314 |
| 315 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 315 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
| 316 SkTDArray<GrDrawTarget*> fDependencies; | 316 SkTDArray<GrDrawTarget*> fDependencies; |
| 317 GrRenderTarget* fRenderTarget; | |
| 318 | 317 |
| 319 typedef SkRefCnt INHERITED; | 318 typedef SkRefCnt INHERITED; |
| 320 }; | 319 }; |
| 321 | 320 |
| 322 #endif | 321 #endif |
| OLD | NEW |