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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 SkDrawFilter*, const SkIRect& clipBounds); | 63 SkDrawFilter*, const SkIRect& clipBounds); |
64 | 64 |
65 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext | 65 // drawPathsFromRange is thanks to GrStencilAndCoverTextContext |
66 // TODO: remove once path batches can be created external to GrDrawTarget. | 66 // TODO: remove once path batches can be created external to GrDrawTarget. |
67 void drawPathsFromRange(const GrPipelineBuilder*, | 67 void drawPathsFromRange(const GrPipelineBuilder*, |
68 const SkMatrix& viewMatrix, | 68 const SkMatrix& viewMatrix, |
69 const SkMatrix& localMatrix, | 69 const SkMatrix& localMatrix, |
70 GrColor color, | 70 GrColor color, |
71 GrPathRange* range, | 71 GrPathRange* range, |
72 GrPathRangeDraw* draw, | 72 GrPathRangeDraw* draw, |
73 int /*GrPathRendering::FillType*/ fill); | 73 int /*GrPathRendering::FillType*/ fill, |
| 74 const SkRect& bounds); |
74 | 75 |
75 /** | 76 /** |
76 * Provides a perfomance hint that the render target's contents are allowed | 77 * Provides a perfomance hint that the render target's contents are allowed |
77 * to become undefined. | 78 * to become undefined. |
78 */ | 79 */ |
79 void discard(); | 80 void discard(); |
80 | 81 |
81 /** | 82 /** |
82 * Clear the entire or rect of the render target, ignoring any clips. | 83 * Clear the entire or rect of the render target, ignoring any clips. |
83 * @param rect the rect to clear or the whole thing if rect is NULL. | 84 * @param rect the rect to clear or the whole thing if rect is NULL. |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 299 |
299 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked | 300 // In MDB-mode the drawTarget can be closed by some other drawContext that h
as picked |
300 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. | 301 // it up. For this reason, the drawTarget should only ever be accessed via '
getDrawTarget'. |
301 GrDrawTarget* fDrawTarget; | 302 GrDrawTarget* fDrawTarget; |
302 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana
ger | 303 GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingMana
ger |
303 | 304 |
304 SkSurfaceProps fSurfaceProps; | 305 SkSurfaceProps fSurfaceProps; |
305 }; | 306 }; |
306 | 307 |
307 #endif | 308 #endif |
OLD | NEW |