Index: src/gpu/GrContext.cpp |
=================================================================== |
--- src/gpu/GrContext.cpp (revision 8834) |
+++ src/gpu/GrContext.cpp (working copy) |
@@ -970,6 +970,22 @@ |
/////////////////////////////////////////////////////////////////////////////// |
+void GrContext::drawRRect(const GrPaint& paint, |
robertphillips
2013/04/24 15:13:30
spaces
jvanverth1
2013/04/24 19:02:27
Done.
|
+ const GrRRect& rect, |
+ const SkStrokeRec& stroke) { |
+ |
+ GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW); |
+ GrDrawState::AutoStageDisable atr(fDrawState); |
bsalomon
2013/04/24 14:36:38
I don't think we need this. Other draws will call
|
+ |
+ if (!fOvalRenderer->drawSimpleRRect(target, this, paint, rect, stroke)) { |
+ SkPath path; |
+ path.addRRect(rect); |
+ this->internalDrawPath(target, paint, path, stroke); |
+ } |
+} |
+ |
+/////////////////////////////////////////////////////////////////////////////// |
+ |
void GrContext::drawOval(const GrPaint& paint, |
const GrRect& oval, |
const SkStrokeRec& stroke) { |