| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrDrawContext_DEFINED | 8 #ifndef GrDrawContext_DEFINED |
| 9 #define GrDrawContext_DEFINED | 9 #define GrDrawContext_DEFINED |
| 10 | 10 |
| 11 #include "GrColor.h" | 11 #include "GrColor.h" |
| 12 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
| 13 #include "SkSurfaceProps.h" | 13 #include "SkSurfaceProps.h" |
| 14 | 14 |
| 15 class GrClip; | 15 class GrClip; |
| 16 class GrContext; | 16 class GrContext; |
| 17 class GrDrawBatch; | 17 class GrDrawBatch; |
| 18 class GrDrawTarget; | 18 class GrDrawTarget; |
| 19 class GrPaint; | 19 class GrPaint; |
| 20 class GrPathProcessor; | 20 class GrPathProcessor; |
| 21 class GrPathRange; |
| 21 class GrPathRangeDraw; | 22 class GrPathRangeDraw; |
| 22 class GrPipelineBuilder; | 23 class GrPipelineBuilder; |
| 23 class GrRenderTarget; | 24 class GrRenderTarget; |
| 24 class GrStrokeInfo; | 25 class GrStrokeInfo; |
| 25 class GrSurface; | 26 class GrSurface; |
| 26 class GrTextContext; | 27 class GrTextContext; |
| 27 class SkDrawFilter; | 28 class SkDrawFilter; |
| 28 struct SkIPoint; | 29 struct SkIPoint; |
| 29 struct SkIRect; | 30 struct SkIRect; |
| 30 class SkMatrix; | 31 class SkMatrix; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 60 const SkMatrix& viewMatrix, const SkTextBlob*, | 61 const SkMatrix& viewMatrix, const SkTextBlob*, |
| 61 SkScalar x, SkScalar y, | 62 SkScalar x, SkScalar y, |
| 62 SkDrawFilter*, const SkIRect& clipBounds); | 63 SkDrawFilter*, const SkIRect& clipBounds); |
| 63 | 64 |
| 64 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext | 65 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext |
| 65 // TODO: remove once path batches can be created external to GrDrawTarget. | 66 // TODO: remove once path batches can be created external to GrDrawTarget. |
| 66 void drawPathsFromRange(const GrPipelineBuilder*, | 67 void drawPathsFromRange(const GrPipelineBuilder*, |
| 67 const SkMatrix& viewMatrix, | 68 const SkMatrix& viewMatrix, |
| 68 const SkMatrix& localMatrix, | 69 const SkMatrix& localMatrix, |
| 69 GrColor color, | 70 GrColor color, |
| 71 GrPathRange* range, |
| 70 GrPathRangeDraw* draw, | 72 GrPathRangeDraw* draw, |
| 71 int /*GrPathRendering::FillType*/ fill); | 73 int /*GrPathRendering::FillType*/ fill); |
| 72 | 74 |
| 73 /** | 75 /** |
| 74 * Provides a perfomance hint that the render target's contents are allowed | 76 * Provides a perfomance hint that the render target's contents are allowed |
| 75 * to become undefined. | 77 * to become undefined. |
| 76 */ | 78 */ |
| 77 void discard(GrRenderTarget*); | 79 void discard(GrRenderTarget*); |
| 78 | 80 |
| 79 /** | 81 /** |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); | 283 void drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* batch); |
| 282 | 284 |
| 283 GrContext* fContext; // owning context -> no ref | 285 GrContext* fContext; // owning context -> no ref |
| 284 GrDrawTarget* fDrawTarget; | 286 GrDrawTarget* fDrawTarget; |
| 285 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMg
r | 287 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMg
r |
| 286 | 288 |
| 287 SkSurfaceProps fSurfaceProps; | 289 SkSurfaceProps fSurfaceProps; |
| 288 }; | 290 }; |
| 289 | 291 |
| 290 #endif | 292 #endif |
| OLD | NEW |