Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index c17388dca342cd862a8a11e7aee8eb013dc97601..ff8790580cceb1b4c88fb161fa3f0f9d6a2d9af4 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -1918,7 +1918,14 @@ GrDrawBatch* GrOvalRenderer::CreateArcBatch(GrColor color, |
DRAW_BATCH_TEST_DEFINE(CircleBatch) { |
do { |
- SkMatrix viewMatrix = GrTest::TestMatrix(random); |
+ SkScalar rotate = random->nextSScalar1() * 360.f; |
+ SkScalar translateX = random->nextSScalar1() * 1000.f; |
+ SkScalar translateY = random->nextSScalar1() * 1000.f; |
+ SkScalar scale = random->nextSScalar1() * 100.f; |
+ SkMatrix viewMatrix; |
+ viewMatrix.setRotate(rotate); |
+ viewMatrix.postTranslate(translateX, translateY); |
+ viewMatrix.postScale(scale, scale); |
GrColor color = GrRandomColor(random); |
SkRect circle = GrTest::TestSquare(random); |
SkPoint center = {circle.centerX(), circle.centerY()}; |