Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: include/gpu/GrDrawContext.h

Issue 2267273006: GPU implementation of drawRegion() (Closed) Base URL: https://skia.googlesource.com/skia.git@drawregion
Patch Set: SkToBool Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 * @param colors optional array of per-sprite colors, supercedes 209 * @param colors optional array of per-sprite colors, supercedes
210 * the paint's color field. 210 * the paint's color field.
211 */ 211 */
212 void drawAtlas(const GrClip&, 212 void drawAtlas(const GrClip&,
213 const GrPaint& paint, 213 const GrPaint& paint,
214 const SkMatrix& viewMatrix, 214 const SkMatrix& viewMatrix,
215 int spriteCount, 215 int spriteCount,
216 const SkRSXform xform[], 216 const SkRSXform xform[],
217 const SkRect texRect[], 217 const SkRect texRect[],
218 const SkColor colors[]); 218 const SkColor colors[]);
219 219
220 /**
221 * Draws a region.
222 *
223 * @param paint describes how to color pixels
224 * @param viewMatrix transformation matrix
225 * @param region the region to be drawn
226 * @param style style to apply to the region
227 */
228 void drawRegion(const GrClip&,
229 const GrPaint& paint,
230 const SkMatrix& viewMatrix,
231 const SkRegion& region,
232 const GrStyle& style);
233
220 /** 234 /**
221 * Draws an oval. 235 * Draws an oval.
222 * 236 *
223 * @param paint describes how to color pixels. 237 * @param paint describes how to color pixels.
224 * @param viewMatrix transformation matrix 238 * @param viewMatrix transformation matrix
225 * @param oval the bounding rect of the oval. 239 * @param oval the bounding rect of the oval.
226 * @param style style to apply to the oval. Currently path effects a re not allowed. 240 * @param style style to apply to the oval. Currently path effects a re not allowed.
227 */ 241 */
228 void drawOval(const GrClip&, 242 void drawOval(const GrClip&,
229 const GrPaint& paint, 243 const GrPaint& paint,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 397
384 sk_sp<SkColorSpace> fColorSpace; 398 sk_sp<SkColorSpace> fColorSpace;
385 SkSurfaceProps fSurfaceProps; 399 SkSurfaceProps fSurfaceProps;
386 GrAuditTrail* fAuditTrail; 400 GrAuditTrail* fAuditTrail;
387 401
388 // In debug builds we guard against improper thread handling 402 // In debug builds we guard against improper thread handling
389 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) 403 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;)
390 }; 404 };
391 405
392 #endif 406 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698