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

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

Issue 13852049: Add GPU support for roundrects (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Add oval check to SkCanvas Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkDrawFilter.h ('k') | include/gpu/GrOvalRenderer.h » ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef GrContext_DEFINED 10 #ifndef GrContext_DEFINED
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 * @param dstMatrix Optional matrix to transform dstRect. Applied before context's matrix. 403 * @param dstMatrix Optional matrix to transform dstRect. Applied before context's matrix.
404 * @param localMatrix Optional matrix to transform localRect. 404 * @param localMatrix Optional matrix to transform localRect.
405 */ 405 */
406 void drawRectToRect(const GrPaint& paint, 406 void drawRectToRect(const GrPaint& paint,
407 const GrRect& dstRect, 407 const GrRect& dstRect,
408 const GrRect& localRect, 408 const GrRect& localRect,
409 const SkMatrix* dstMatrix = NULL, 409 const SkMatrix* dstMatrix = NULL,
410 const SkMatrix* localMatrix = NULL); 410 const SkMatrix* localMatrix = NULL);
411 411
412 /** 412 /**
413 * Draw a roundrect using a paint.
414 *
415 * @param paint describes how to color pixels.
416 * @param rrect the roundrect to draw
417 * @param stroke the stroke information (width, join, cap)
418 */
419 void drawRRect(const GrPaint& paint,
420 const SkRRect& rrect,
421 const SkStrokeRec& stroke);
422
423 /**
413 * Draws a path. 424 * Draws a path.
414 * 425 *
415 * @param paint describes how to color pixels. 426 * @param paint describes how to color pixels.
416 * @param path the path to draw 427 * @param path the path to draw
417 * @param stroke the stroke information (width, join, cap) 428 * @param stroke the stroke information (width, join, cap)
418 */ 429 */
419 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s troke); 430 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s troke);
420 431
421 /** 432 /**
422 * Draws vertices with a paint. 433 * Draws vertices with a paint.
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 } 1011 }
1001 1012
1002 GrTexture* texture() { return fTexture; } 1013 GrTexture* texture() { return fTexture; }
1003 1014
1004 private: 1015 private:
1005 GrContext* fContext; 1016 GrContext* fContext;
1006 GrTexture* fTexture; 1017 GrTexture* fTexture;
1007 }; 1018 };
1008 1019
1009 #endif 1020 #endif
OLDNEW
« no previous file with comments | « include/core/SkDrawFilter.h ('k') | include/gpu/GrOvalRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698