| Index: src/gpu/GrContext.cpp
|
| diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
|
| index 91e8286eb5f67eb35e0c9088ed933f0d9aa1d006..b385ad23f91c971be0f89f542b75c0ed57989592 100644
|
| --- a/src/gpu/GrContext.cpp
|
| +++ b/src/gpu/GrContext.cpp
|
| @@ -764,7 +764,7 @@ static inline bool rect_contains_inclusive(const SkRect& rect, const SkPoint& po
|
|
|
| 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 @@ void GrContext::drawRect(const GrPaint& paint,
|
| 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 @@ void GrContext::drawRect(const GrPaint& paint,
|
| 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,
|
|
|