Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: src/gpu/GrOvalRenderer.cpp

Issue 1139743002: GLProgramsTest 3.0 (Closed) Base URL: https://skia.googlesource.com/skia.git@randbatch11
Patch Set: feedback Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.cpp
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index ebac42fcac8744c36f88d14ea5c05daf662bf68a..3652c4657bc777e731119977909ae1c29f964d19 100644
--- a/src/gpu/GrOvalRenderer.cpp
+++ b/src/gpu/GrOvalRenderer.cpp
@@ -2094,7 +2094,7 @@ BATCH_TEST_DEFINE(CircleBatch) {
SkMatrix viewMatrix = GrTest::TestMatrix(random);
GrColor color = GrRandomColor(random);
bool useCoverageAA = random->nextBool();
- SkRect circle = GrTest::TestRect(random);
+ SkRect circle = GrTest::TestSquare(random);
return create_circle_batch(color, viewMatrix, useCoverageAA, circle,
GrTest::TestStrokeRec(random));
}
@@ -2102,9 +2102,8 @@ BATCH_TEST_DEFINE(CircleBatch) {
BATCH_TEST_DEFINE(EllipseBatch) {
SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random);
GrColor color = GrRandomColor(random);
- bool useCoverageAA = random->nextBool();
- SkRect ellipse = GrTest::TestRect(random);
- return create_ellipse_batch(color, viewMatrix, useCoverageAA, ellipse,
+ SkRect ellipse = GrTest::TestSquare(random);
+ return create_ellipse_batch(color, viewMatrix, true, ellipse,
GrTest::TestStrokeRec(random));
}
@@ -2112,7 +2111,7 @@ BATCH_TEST_DEFINE(DIEllipseBatch) {
SkMatrix viewMatrix = GrTest::TestMatrix(random);
GrColor color = GrRandomColor(random);
bool useCoverageAA = random->nextBool();
- SkRect ellipse = GrTest::TestRect(random);
+ SkRect ellipse = GrTest::TestSquare(random);
return create_diellipse_batch(color, viewMatrix, useCoverageAA, ellipse,
GrTest::TestStrokeRec(random));
}
« no previous file with comments | « src/gpu/GrDefaultPathRenderer.cpp ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698