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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 * @param strokeInfo the stroke information (width, join, cap) and | 134 * @param strokeInfo the stroke information (width, join, cap) and |
135 * the dash information (intervals, count, phase). | 135 * the dash information (intervals, count, phase). |
136 */ | 136 */ |
137 void drawRRect(const GrClip&, | 137 void drawRRect(const GrClip&, |
138 const GrPaint&, | 138 const GrPaint&, |
139 const SkMatrix& viewMatrix, | 139 const SkMatrix& viewMatrix, |
140 const SkRRect& rrect, | 140 const SkRRect& rrect, |
141 const GrStrokeInfo&); | 141 const GrStrokeInfo&); |
142 | 142 |
143 /** | 143 /** |
144 * Shortcut for drawing an SkPath consisting of nested rrects using a paint
. | |
145 * Does not support stroking. The result is undefined if outer does not con
tain | |
146 * inner. | |
147 * | |
148 * @param paint describes how to color pixels. | |
149 * @param viewMatrix transformation matrix | |
150 * @param outer the outer roundrect | |
151 * @param inner the inner roundrect | |
152 */ | |
153 void drawDRRect(const GrClip&, | |
154 const GrPaint&, | |
155 const SkMatrix& viewMatrix, | |
156 const SkRRect& outer, | |
157 const SkRRect& inner); | |
158 | |
159 | |
160 /** | |
161 * Draws a path. | 144 * Draws a path. |
162 * | 145 * |
163 * @param paint describes how to color pixels. | 146 * @param paint describes how to color pixels. |
164 * @param viewMatrix transformation matrix | 147 * @param viewMatrix transformation matrix |
165 * @param path the path to draw | 148 * @param path the path to draw |
166 * @param strokeInfo the stroke information (width, join, cap) and | 149 * @param strokeInfo the stroke information (width, join, cap) and |
167 * the dash information (intervals, count, phase). | 150 * the dash information (intervals, count, phase). |
168 */ | 151 */ |
169 void drawPath(const GrClip&, | 152 void drawPath(const GrClip&, |
170 const GrPaint&, | 153 const GrPaint&, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 GrContext* fContext; | 303 GrContext* fContext; |
321 | 304 |
322 SkSurfaceProps fSurfaceProps; | 305 SkSurfaceProps fSurfaceProps; |
323 GrAuditTrail* fAuditTrail; | 306 GrAuditTrail* fAuditTrail; |
324 | 307 |
325 // In debug builds we guard against improper thread handling | 308 // In debug builds we guard against improper thread handling |
326 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 309 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
327 }; | 310 }; |
328 | 311 |
329 #endif | 312 #endif |
OLD | NEW |