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 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 const SkScalar pos[], int scalarsPerPosition, | 57 const SkScalar pos[], int scalarsPerPosition, |
58 const SkPoint& offset, const SkIRect& clipBounds); | 58 const SkPoint& offset, const SkIRect& clipBounds); |
59 void drawTextBlob(GrRenderTarget*, const GrClip&, const SkPaint&, | 59 void drawTextBlob(GrRenderTarget*, const GrClip&, const SkPaint&, |
60 const SkMatrix& viewMatrix, const SkTextBlob*, | 60 const SkMatrix& viewMatrix, const SkTextBlob*, |
61 SkScalar x, SkScalar y, | 61 SkScalar x, SkScalar y, |
62 SkDrawFilter*, const SkIRect& clipBounds); | 62 SkDrawFilter*, const SkIRect& clipBounds); |
63 | 63 |
64 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext | 64 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext |
65 // TODO: remove once path batches can be created external to GrDrawTarget. | 65 // TODO: remove once path batches can be created external to GrDrawTarget. |
66 void drawPathsFromRange(const GrPipelineBuilder*, | 66 void drawPathsFromRange(const GrPipelineBuilder*, |
67 const GrPathProcessor*, | 67 const SkMatrix& viewMatrix, |
| 68 const SkMatrix& localMatrix, |
| 69 GrColor color, |
68 GrPathRangeDraw* draw, | 70 GrPathRangeDraw* draw, |
69 int /*GrPathRendering::FillType*/ fill); | 71 int /*GrPathRendering::FillType*/ fill); |
70 | 72 |
71 /** | 73 /** |
72 * Provides a perfomance hint that the render target's contents are allowed | 74 * Provides a perfomance hint that the render target's contents are allowed |
73 * to become undefined. | 75 * to become undefined. |
74 */ | 76 */ |
75 void discard(GrRenderTarget*); | 77 void discard(GrRenderTarget*); |
76 | 78 |
77 /** | 79 /** |
(...skipping 203 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 created | 287 GrTextContext* fTextContext; // lazily created |
286 | 288 |
287 SkSurfaceProps fSurfaceProps; | 289 SkSurfaceProps fSurfaceProps; |
288 }; | 290 }; |
289 | 291 |
290 #endif | 292 #endif |
OLD | NEW |