Index: src/gpu/GrAARectRenderer.cpp |
=================================================================== |
--- src/gpu/GrAARectRenderer.cpp (revision 9087) |
+++ src/gpu/GrAARectRenderer.cpp (working copy) |
@@ -487,8 +487,7 @@ |
void GrAARectRenderer::shaderFillAARect(GrGpu* gpu, |
GrDrawTarget* target, |
const GrRect& rect, |
- const SkMatrix& combinedMatrix, |
- const GrRect& devRect) { |
+ const SkMatrix& combinedMatrix) { |
GrDrawState* drawState = target->drawState(); |
SkPoint center = SkPoint::Make(rect.centerX(), rect.centerY()); |
@@ -536,6 +535,9 @@ |
verts[i].fWidthHeight.fY = newHeight; |
} |
+ SkRect devRect; |
+ combinedMatrix.mapRect(&devRect, rect); |
+ |
SkRect devBounds = { |
devRect.fLeft - SK_ScalarHalf, |
devRect.fTop - SK_ScalarHalf, |
@@ -556,8 +558,7 @@ |
void GrAARectRenderer::shaderFillAlignedAARect(GrGpu* gpu, |
GrDrawTarget* target, |
const GrRect& rect, |
- const SkMatrix& combinedMatrix, |
- const GrRect& devRect) { |
+ const SkMatrix& combinedMatrix) { |
GrDrawState* drawState = target->drawState(); |
SkASSERT(combinedMatrix.rectStaysRect()); |
@@ -583,6 +584,9 @@ |
static const int kOffsetIndex = 1; |
drawState->setEffect(kEdgeEffectStage, effect, kOffsetIndex)->unref(); |
+ SkRect devRect; |
+ combinedMatrix.mapRect(&devRect, rect); |
+ |
SkRect devBounds = { |
devRect.fLeft - SK_ScalarHalf, |
devRect.fTop - SK_ScalarHalf, |