| 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 if (path.isEmpty()) { | 994 if (path.isEmpty()) { |
| 995 return true; | 995 return true; |
| 996 } | 996 } |
| 997 | 997 |
| 998 AAConvexPathBatch::Geometry geometry; | 998 AAConvexPathBatch::Geometry geometry; |
| 999 geometry.fColor = color; | 999 geometry.fColor = color; |
| 1000 geometry.fViewMatrix = vm; | 1000 geometry.fViewMatrix = vm; |
| 1001 geometry.fPath = path; | 1001 geometry.fPath = path; |
| 1002 | 1002 |
| 1003 SkAutoTUnref<GrBatch> batch(AAConvexPathBatch::Create(geometry)); | 1003 SkAutoTUnref<GrBatch> batch(AAConvexPathBatch::Create(geometry)); |
| 1004 target->drawBatch(pipelineBuilder, batch); | 1004 target->drawBatch(*pipelineBuilder, batch); |
| 1005 | 1005 |
| 1006 return true; | 1006 return true; |
| 1007 | 1007 |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 1010 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| 1011 | 1011 |
| 1012 #ifdef GR_TEST_UTILS | 1012 #ifdef GR_TEST_UTILS |
| 1013 | 1013 |
| 1014 BATCH_TEST_DEFINE(AAConvexPathBatch) { | 1014 BATCH_TEST_DEFINE(AAConvexPathBatch) { |
| 1015 AAConvexPathBatch::Geometry geometry; | 1015 AAConvexPathBatch::Geometry geometry; |
| 1016 geometry.fColor = GrRandomColor(random); | 1016 geometry.fColor = GrRandomColor(random); |
| 1017 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); | 1017 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); |
| 1018 geometry.fPath = GrTest::TestPathConvex(random); | 1018 geometry.fPath = GrTest::TestPathConvex(random); |
| 1019 | 1019 |
| 1020 return AAConvexPathBatch::Create(geometry); | 1020 return AAConvexPathBatch::Create(geometry); |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 #endif | 1023 #endif |
| OLD | NEW |