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