| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2013 Google Inc. | 2  * Copyright 2013 Google Inc. | 
| 3  * | 3  * | 
| 4  * Use of this source code is governed by a BSD-style license that can be | 4  * Use of this source code is governed by a BSD-style license that can be | 
| 5  * found in the LICENSE file. | 5  * found in the LICENSE file. | 
| 6  */ | 6  */ | 
| 7 | 7 | 
| 8 #include "GrOvalRenderer.h" | 8 #include "GrOvalRenderer.h" | 
| 9 | 9 | 
| 10 #include "GrBatch.h" | 10 #include "GrBatch.h" | 
| (...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2087 } | 2087 } | 
| 2088 | 2088 | 
| 2089 ////////////////////////////////////////////////////////////////////////////////
      /////////////////// | 2089 ////////////////////////////////////////////////////////////////////////////////
      /////////////////// | 
| 2090 | 2090 | 
| 2091 #ifdef GR_TEST_UTILS | 2091 #ifdef GR_TEST_UTILS | 
| 2092 | 2092 | 
| 2093 BATCH_TEST_DEFINE(CircleBatch) { | 2093 BATCH_TEST_DEFINE(CircleBatch) { | 
| 2094     SkMatrix viewMatrix = GrTest::TestMatrix(random); | 2094     SkMatrix viewMatrix = GrTest::TestMatrix(random); | 
| 2095     GrColor color = GrRandomColor(random); | 2095     GrColor color = GrRandomColor(random); | 
| 2096     bool useCoverageAA = random->nextBool(); | 2096     bool useCoverageAA = random->nextBool(); | 
| 2097     SkRect circle = GrTest::TestRect(random); | 2097     SkRect circle = GrTest::TestSquare(random); | 
| 2098     return create_circle_batch(color, viewMatrix, useCoverageAA, circle, | 2098     return create_circle_batch(color, viewMatrix, useCoverageAA, circle, | 
| 2099                                GrTest::TestStrokeRec(random)); | 2099                                GrTest::TestStrokeRec(random)); | 
| 2100 } | 2100 } | 
| 2101 | 2101 | 
| 2102 BATCH_TEST_DEFINE(EllipseBatch) { | 2102 BATCH_TEST_DEFINE(EllipseBatch) { | 
| 2103     SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random); | 2103     SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random); | 
| 2104     GrColor color = GrRandomColor(random); | 2104     GrColor color = GrRandomColor(random); | 
| 2105     bool useCoverageAA = random->nextBool(); | 2105     SkRect ellipse = GrTest::TestSquare(random); | 
| 2106     SkRect ellipse = GrTest::TestRect(random); | 2106     return create_ellipse_batch(color, viewMatrix, true, ellipse, | 
| 2107     return create_ellipse_batch(color, viewMatrix, useCoverageAA, ellipse, |  | 
| 2108                                 GrTest::TestStrokeRec(random)); | 2107                                 GrTest::TestStrokeRec(random)); | 
| 2109 } | 2108 } | 
| 2110 | 2109 | 
| 2111 BATCH_TEST_DEFINE(DIEllipseBatch) { | 2110 BATCH_TEST_DEFINE(DIEllipseBatch) { | 
| 2112     SkMatrix viewMatrix = GrTest::TestMatrix(random); | 2111     SkMatrix viewMatrix = GrTest::TestMatrix(random); | 
| 2113     GrColor color = GrRandomColor(random); | 2112     GrColor color = GrRandomColor(random); | 
| 2114     bool useCoverageAA = random->nextBool(); | 2113     bool useCoverageAA = random->nextBool(); | 
| 2115     SkRect ellipse = GrTest::TestRect(random); | 2114     SkRect ellipse = GrTest::TestSquare(random); | 
| 2116     return create_diellipse_batch(color, viewMatrix, useCoverageAA, ellipse, | 2115     return create_diellipse_batch(color, viewMatrix, useCoverageAA, ellipse, | 
| 2117                                   GrTest::TestStrokeRec(random)); | 2116                                   GrTest::TestStrokeRec(random)); | 
| 2118 } | 2117 } | 
| 2119 | 2118 | 
| 2120 BATCH_TEST_DEFINE(RRectBatch) { | 2119 BATCH_TEST_DEFINE(RRectBatch) { | 
| 2121     SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random); | 2120     SkMatrix viewMatrix = GrTest::TestMatrixRectStaysRect(random); | 
| 2122     GrColor color = GrRandomColor(random); | 2121     GrColor color = GrRandomColor(random); | 
| 2123     const SkRRect& rrect = GrTest::TestRRectSimple(random); | 2122     const SkRRect& rrect = GrTest::TestRRectSimple(random); | 
| 2124     return create_rrect_batch(color, viewMatrix, rrect, GrTest::TestStrokeRec(ra
      ndom)); | 2123     return create_rrect_batch(color, viewMatrix, rrect, GrTest::TestStrokeRec(ra
      ndom)); | 
| 2125 } | 2124 } | 
| 2126 | 2125 | 
| 2127 #endif | 2126 #endif | 
| OLD | NEW | 
|---|