| 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 18 matching lines...) Expand all Loading... |
| 29 #include "SkStringUtils.h" | 29 #include "SkStringUtils.h" |
| 30 #include "SkStrokeRec.h" | 30 #include "SkStrokeRec.h" |
| 31 #include "SkTArray.h" | 31 #include "SkTArray.h" |
| 32 #include "SkTLazy.h" | 32 #include "SkTLazy.h" |
| 33 #include "SkTypes.h" | 33 #include "SkTypes.h" |
| 34 #include "SkXfermode.h" | 34 #include "SkXfermode.h" |
| 35 | 35 |
| 36 //#define ENABLE_MDB 1 | 36 //#define ENABLE_MDB 1 |
| 37 | 37 |
| 38 class GrBatch; | 38 class GrBatch; |
| 39 class GrBatchFlushState; | |
| 40 class GrClip; | 39 class GrClip; |
| 41 class GrCaps; | 40 class GrCaps; |
| 42 class GrPath; | 41 class GrPath; |
| 43 class GrDrawPathBatchBase; | 42 class GrDrawPathBatchBase; |
| 44 class GrPathRangeDraw; | 43 class GrPathRangeDraw; |
| 45 | 44 |
| 46 class GrDrawTarget final : public SkRefCnt { | 45 class GrDrawTarget final : public SkRefCnt { |
| 47 public: | 46 public: |
| 48 struct Options { | 47 struct Options { |
| 49 bool fImmediateMode; | 48 bool fImmediateMode; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); | 306 void clearStencilClip(const SkIRect&, bool insideClip, GrRenderTarget*); |
| 308 | 307 |
| 309 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; | 308 SkSTArray<256, SkAutoTUnref<GrBatch>, true> fBatches; |
| 310 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; | 309 SkAutoTDelete<GrClipMaskManager> fClipMaskManager; |
| 311 // The context is only in service of the clip mask manager, remove once CMM
doesn't need this. | 310 // The context is only in service of the clip mask manager, remove once CMM
doesn't need this. |
| 312 GrContext* fContext; | 311 GrContext* fContext; |
| 313 GrGpu* fGpu; | 312 GrGpu* fGpu; |
| 314 GrResourceProvider* fResourceProvider; | 313 GrResourceProvider* fResourceProvider; |
| 315 GrBatchFlushState fFlushState; | 314 GrBatchFlushState fFlushState; |
| 316 bool fFlushing; | 315 bool fFlushing; |
| 317 int fFirstUnpreparedBatch; | |
| 318 | 316 |
| 319 SkDEBUGCODE(int fDebugID;) | 317 SkDEBUGCODE(int fDebugID;) |
| 320 uint32_t fFlags; | 318 uint32_t fFlags; |
| 321 Options fOptions; | 319 Options fOptions; |
| 322 | 320 |
| 323 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' | 321 // 'this' drawTarget relies on the output of the drawTargets in 'fDependenci
es' |
| 324 SkTDArray<GrDrawTarget*> fDependencies; | 322 SkTDArray<GrDrawTarget*> fDependencies; |
| 325 GrRenderTarget* fRenderTarget; | 323 GrRenderTarget* fRenderTarget; |
| 326 | 324 |
| 327 typedef SkRefCnt INHERITED; | 325 typedef SkRefCnt INHERITED; |
| 328 }; | 326 }; |
| 329 | 327 |
| 330 #endif | 328 #endif |
| OLD | NEW |