aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrAAFillRectBatch.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-13 07:12:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-13 07:12:50 -0700
commit272b74879233e779b25bb86857b15deff3e4241b (patch)
tree123b86f23a9426bfe5961efab96fa253b197d180 /src/gpu/batches/GrAAFillRectBatch.cpp
parent2d563030a83ce544bee999b5abe658cbf002587e (diff)
Minor fix to not save the modeling space rect
Diffstat (limited to 'src/gpu/batches/GrAAFillRectBatch.cpp')
-rw-r--r--src/gpu/batches/GrAAFillRectBatch.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp
index 4fdf8f549c..4cea65ac56 100644
--- a/src/gpu/batches/GrAAFillRectBatch.cpp
+++ b/src/gpu/batches/GrAAFillRectBatch.cpp
@@ -220,9 +220,8 @@ private:
vec[1].scale(SK_ScalarHalf);
// create the rotated rect
- fan0Pos->setRectFan(args.fRect.fLeft, args.fRect.fTop,
- args.fRect.fRight, args.fRect.fBottom, vertexStride);
- args.fViewMatrix.mapPointsWithStride(fan0Pos, vertexStride, 4);
+ fan0Pos->setRectFan(args.fDevRect.fLeft, args.fDevRect.fTop,
+ args.fDevRect.fRight, args.fDevRect.fBottom, vertexStride);
// Now create the inset points and then outset the original
// rotated points
@@ -329,7 +328,6 @@ class AAFillRectBatchNoLocalMatrixImp {
public:
struct Geometry {
SkMatrix fViewMatrix;
- SkRect fRect;
SkRect fDevRect;
GrColor fColor;
};
@@ -361,7 +359,6 @@ public:
struct Geometry {
SkMatrix fViewMatrix;
SkMatrix fLocalMatrix;
- SkRect fRect;
SkRect fDevRect;
GrColor fColor;
};
@@ -410,7 +407,6 @@ GrBatch* Create(GrColor color,
AAFillRectBatchNoLocalMatrix::Geometry& geo = *batch->geometry();
geo.fColor = color;
geo.fViewMatrix = viewMatrix;
- geo.fRect = rect;
geo.fDevRect = devRect;
batch->init();
return batch;
@@ -426,7 +422,6 @@ GrBatch* Create(GrColor color,
geo.fColor = color;
geo.fViewMatrix = viewMatrix;
geo.fLocalMatrix = localMatrix;
- geo.fRect = rect;
geo.fDevRect = devRect;
batch->init();
return batch;
@@ -445,7 +440,6 @@ BATCH_TEST_DEFINE(AAFillRectBatch) {
AAFillRectBatchNoLocalMatrix::Geometry& geo = *batch->geometry();
geo.fColor = GrRandomColor(random);
geo.fViewMatrix = GrTest::TestMatrix(random);
- geo.fRect = GrTest::TestRect(random);
geo.fDevRect = GrTest::TestRect(random);
batch->init();
return batch;
@@ -457,7 +451,6 @@ BATCH_TEST_DEFINE(AAFillRectBatchLocalMatrix) {
geo.fColor = GrRandomColor(random);
geo.fViewMatrix = GrTest::TestMatrix(random);
geo.fLocalMatrix = GrTest::TestMatrix(random);
- geo.fRect = GrTest::TestRect(random);
geo.fDevRect = GrTest::TestRect(random);
batch->init();
return batch;