| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
| 10 | 10 |
| (...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 target->drawBatch(pipelineBuilder, batch); | 1035 target->drawBatch(pipelineBuilder, batch); |
| 1036 | 1036 |
| 1037 return true; | 1037 return true; |
| 1038 | 1038 |
| 1039 } | 1039 } |
| 1040 | 1040 |
| 1041 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 1041 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 1042 | 1042 |
| 1043 #ifdef GR_TEST_UTILS | 1043 #ifdef GR_TEST_UTILS |
| 1044 | 1044 |
| 1045 BATCH_TEST_DEFINE(AAConvexPath) { | 1045 BATCH_TEST_DEFINE(AAConvexPathBatch) { |
| 1046 AAConvexPathBatch::Geometry geometry; | 1046 AAConvexPathBatch::Geometry geometry; |
| 1047 geometry.fColor = GrRandomColor(random); | 1047 geometry.fColor = GrRandomColor(random); |
| 1048 geometry.fViewMatrix = GrTest::TestMatrix(random); | 1048 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); |
| 1049 geometry.fPath = GrTest::TestPathConvex(random); | 1049 geometry.fPath = GrTest::TestPathConvex(random); |
| 1050 | 1050 |
| 1051 return AAConvexPathBatch::Create(geometry); | 1051 return AAConvexPathBatch::Create(geometry); |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 #endif | 1054 #endif |
| OLD | NEW |