draw circle paths directly via GPU
Review URL: http://codereview.appspot.com/5696086/
Submitted on behalf of Guanqun.Lu@gmail.com
git-svn-id: http://skia.googlecode.com/svn/trunk@3772 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 433c113..d3723c7 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -439,6 +439,20 @@
const uint16_t indices[],
int indexCount);
+ /**
+ * Draws an oval.
+ *
+ * @param paint describes how to color pixels.
+ * @param rect the bounding rect of the oval.
+ * @param strokeWidth if strokeWidth < 0, then the oval is filled, else
+ * the rect is stroked based on strokeWidth. If
+ * strokeWidth == 0, then the stroke is always a single
+ * pixel thick.
+ */
+ void drawOval(const GrPaint& paint,
+ const GrRect& rect,
+ SkScalar strokeWidth);
+
///////////////////////////////////////////////////////////////////////////
// Misc.
@@ -719,6 +733,9 @@
const GrDrawTarget* target,
bool antiAlias);
+ void internalDrawPath(const GrPaint& paint, const GrPath& path,
+ GrPathFill fill, const GrPoint* translate);
+
/**
* Flags to the internal read/write pixels funcs
*/