Index: src/gpu/GrContext.cpp |
=================================================================== |
--- src/gpu/GrContext.cpp (revision 11903) |
+++ src/gpu/GrContext.cpp (working copy) |
@@ -764,7 +764,7 @@ |
void GrContext::drawRect(const GrPaint& paint, |
const SkRect& rect, |
- SkScalar width, |
+ const SkStrokeRec* stroke, |
const SkMatrix* matrix) { |
SK_TRACE_EVENT0("GrContext::drawRect"); |
@@ -772,6 +772,7 @@ |
AutoCheckFlush acf(this); |
GrDrawTarget* target = this->prepareToDraw(&paint, BUFFERED_DRAW, &are, &acf); |
+ SkScalar width = stroke == NULL ? -1 : stroke->getWidth(); |
SkMatrix combinedMatrix = target->drawState()->getViewMatrix(); |
if (NULL != matrix) { |
combinedMatrix.preConcat(*matrix); |
@@ -824,9 +825,9 @@ |
return; |
} |
if (width >= 0) { |
- fAARectRenderer->strokeAARect(this->getGpu(), target, |
- rect, combinedMatrix, devBoundRect, |
- width, useVertexCoverage); |
+ fAARectRenderer->strokeAARect(this->getGpu(), target, rect, |
+ combinedMatrix, devBoundRect, |
+ stroke, useVertexCoverage); |
} else { |
// filled AA rect |
fAARectRenderer->fillAARect(this->getGpu(), target, |