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

Unified Diff: include/gpu/GrContext.h

Issue 13852049: Add GPU support for roundrects (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove some unnecessary checks Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: include/gpu/GrContext.h
===================================================================
--- include/gpu/GrContext.h (revision 8834)
+++ include/gpu/GrContext.h (working copy)
@@ -410,6 +410,17 @@
const SkMatrix* localMatrix = NULL);
/**
+ * Draw a roundrect using a paint.
+ *
+ * @param paint describes how to color pixels.
+ * @param rrect the roundrect to draw
+ * @param stroke the stroke information (width, join, cap)
+ */
+ void drawRRect(const GrPaint& paint,
+ const GrRRect& rrect,
+ const SkStrokeRec& stroke);
+
+ /**
* Draws a path.
*
* @param paint describes how to color pixels.

Powered by Google App Engine
This is Rietveld 408576698