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 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 /** | 102 /** |
103 * Gets the capabilities of the draw target. | 103 * Gets the capabilities of the draw target. |
104 */ | 104 */ |
105 const GrCaps* caps() const { return fGpu->caps(); } | 105 const GrCaps* caps() const { return fGpu->caps(); } |
106 | 106 |
107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); | 107 void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDr
awBatch*); |
108 | 108 |
109 void addBatch(sk_sp<GrBatch>); | 109 void addBatch(sk_sp<GrBatch>); |
110 | 110 |
111 /** | 111 /** |
112 * Draws path into the stencil buffer. The fill must be either even/odd or | 112 * Draws path into the stencil buffer. The path's fill must be either even/o
dd or |
113 * winding (not inverse or hairline). It will respect the HW antialias flag | 113 * winding (not inverse or hairline). It will respect the HW antialias boole
an |
114 * on the GrPipelineBuilder (if possible in the 3D API). Note, we will neve
r have an inverse | 114 * (if possible in the 3D API). Note, we will never have an inverse |
115 * fill with stencil path | 115 * fill with stencil path |
116 */ | 116 */ |
117 void stencilPath(const GrPipelineBuilder&, GrDrawContext*, | 117 void stencilPath(GrDrawContext*, |
118 const GrClip&, const SkMatrix& viewMatrix, | 118 const GrClip&, |
119 const GrPath*, GrPathRendering::FillType); | 119 const GrUserStencilSettings*, |
| 120 bool useHWAA, |
| 121 const SkMatrix& viewMatrix, |
| 122 const GrPath*); |
120 | 123 |
121 /** Discards the contents render target. */ | 124 /** Discards the contents render target. */ |
122 void discard(GrRenderTarget*); | 125 void discard(GrRenderTarget*); |
123 | 126 |
124 /** | 127 /** |
125 * Copies a pixel rectangle from one surface to another. This call may final
ize | 128 * Copies a pixel rectangle from one surface to another. This call may final
ize |
126 * reserved vertex/index data (as though a draw call was made). The src pixe
ls | 129 * reserved vertex/index data (as though a draw call was made). The src pixe
ls |
127 * copied are specified by srcRect. They are copied to a rect of the same | 130 * copied are specified by srcRect. They are copied to a rect of the same |
128 * size in dst with top left at dstPoint. If the src rect is clipped by the | 131 * size in dst with top left at dstPoint. If the src rect is clipped by the |
129 * src bounds then pixel values in the dst rect corresponding to area clipp
ed | 132 * src bounds then pixel values in the dst rect corresponding to area clipp
ed |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 bool fDrawBatchBounds; | 231 bool fDrawBatchBounds; |
229 int fMaxBatchLookback; | 232 int fMaxBatchLookback; |
230 int fMaxBatchLookahead; | 233 int fMaxBatchLookahead; |
231 | 234 |
232 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; | 235 SkAutoTDelete<gr_instanced::InstancedRendering> fInstancedRendering; |
233 | 236 |
234 typedef SkRefCnt INHERITED; | 237 typedef SkRefCnt INHERITED; |
235 }; | 238 }; |
236 | 239 |
237 #endif | 240 #endif |
OLD | NEW |