Remove isIRect "optimization" & defer computation of device Rect in AA rect rendering
https://chromiumcodereview.appspot.com/14890021/
git-svn-id: http://skia.googlecode.com/svn/trunk@9087 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrAARectRenderer.h b/include/gpu/GrAARectRenderer.h
index fe9e612..b76722d 100644
--- a/include/gpu/GrAARectRenderer.h
+++ b/include/gpu/GrAARectRenderer.h
@@ -42,7 +42,6 @@
GrDrawTarget* target,
const GrRect& rect,
const SkMatrix& combinedMatrix,
- const GrRect& devRect,
bool useVertexCoverage) {
#ifdef SHADER_AA_FILL_RECT
if (combinedMatrix.rectStaysRect()) {
@@ -55,13 +54,14 @@
#else
this->geometryFillAARect(gpu, target,
rect, combinedMatrix,
- devRect, useVertexCoverage);
+ useVertexCoverage);
#endif
}
void strokeAARect(GrGpu* gpu,
GrDrawTarget* target,
- const GrRect& devRect,
+ const GrRect& rect,
+ const SkMatrix& combinedMatrix,
const GrVec& devStrokeSize,
bool useVertexCoverage);
@@ -80,7 +80,6 @@
GrDrawTarget* target,
const GrRect& rect,
const SkMatrix& combinedMatrix,
- const GrRect& devRect,
bool useVertexCoverage);
void shaderFillAARect(GrGpu* gpu,