| 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 "GrClip.h" | 11 #include "GrClip.h" |
| 12 #include "GrContext.h" | 12 #include "GrContext.h" |
| 13 #include "GrPathProcessor.h" | 13 #include "GrPathProcessor.h" |
| 14 #include "GrPrimitiveProcessor.h" | 14 #include "GrPrimitiveProcessor.h" |
| 15 #include "GrPathRendering.h" | 15 #include "GrPathRendering.h" |
| 16 #include "GrPipelineBuilder.h" | |
| 17 #include "GrXferProcessor.h" | 16 #include "GrXferProcessor.h" |
| 18 | 17 |
| 19 #include "batches/GrDrawBatch.h" | 18 #include "batches/GrDrawBatch.h" |
| 20 | 19 |
| 21 #include "SkClipStack.h" | 20 #include "SkClipStack.h" |
| 22 #include "SkMatrix.h" | 21 #include "SkMatrix.h" |
| 23 #include "SkPath.h" | 22 #include "SkPath.h" |
| 24 #include "SkStringUtils.h" | 23 #include "SkStringUtils.h" |
| 25 #include "SkStrokeRec.h" | 24 #include "SkStrokeRec.h" |
| 26 #include "SkTArray.h" | 25 #include "SkTArray.h" |
| 27 #include "SkTLazy.h" | 26 #include "SkTLazy.h" |
| 28 #include "SkTypes.h" | 27 #include "SkTypes.h" |
| 29 #include "SkXfermode.h" | 28 #include "SkXfermode.h" |
| 30 | 29 |
| 31 //#define ENABLE_MDB 1 | 30 //#define ENABLE_MDB 1 |
| 32 | 31 |
| 33 class GrAuditTrail; | 32 class GrAuditTrail; |
| 34 class GrBatch; | 33 class GrBatch; |
| 35 class GrClip; | 34 class GrClip; |
| 36 class GrCaps; | 35 class GrCaps; |
| 37 class GrPath; | 36 class GrPath; |
| 38 class GrDrawPathBatchBase; | 37 class GrDrawPathBatchBase; |
| 38 class GrPipelineBuilder; |
| 39 | 39 |
| 40 class GrDrawTarget final : public SkRefCnt { | 40 class GrDrawTarget final : public SkRefCnt { |
| 41 public: | 41 public: |
| 42 /** Options for GrDrawTarget behavior. */ | 42 /** Options for GrDrawTarget behavior. */ |
| 43 struct Options { | 43 struct Options { |
| 44 Options () | 44 Options () |
| 45 : fClipBatchToBounds(false) | 45 : fClipBatchToBounds(false) |
| 46 , fDrawBatchBounds(false) | 46 , fDrawBatchBounds(false) |
| 47 , fMaxBatchLookback(-1) | 47 , fMaxBatchLookback(-1) |
| 48 , fMaxBatchLookahead(-1) {} | 48 , fMaxBatchLookahead(-1) {} |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 bool fClipBatchToBounds; | 226 bool fClipBatchToBounds; |
| 227 bool fDrawBatchBounds; | 227 bool fDrawBatchBounds; |
| 228 int fMaxBatchLookback; | 228 int fMaxBatchLookback; |
| 229 int fMaxBatchLookahead; | 229 int fMaxBatchLookahead; |
| 230 | 230 |
| 231 typedef SkRefCnt INHERITED; | 231 typedef SkRefCnt INHERITED; |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 #endif | 234 #endif |
| OLD | NEW |