| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" | 8 #include "GrAAHairLinePathRenderer.h" |
| 9 | 9 |
| 10 #include "GrBatch.h" | 10 #include "GrBatch.h" |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 devRect.outset(2, 2); | 1051 devRect.outset(2, 2); |
| 1052 | 1052 |
| 1053 AAHairlineBatch::Geometry geometry; | 1053 AAHairlineBatch::Geometry geometry; |
| 1054 geometry.fColor = color; | 1054 geometry.fColor = color; |
| 1055 geometry.fCoverage = newCoverage; | 1055 geometry.fCoverage = newCoverage; |
| 1056 geometry.fViewMatrix = viewMatrix; | 1056 geometry.fViewMatrix = viewMatrix; |
| 1057 geometry.fPath = path; | 1057 geometry.fPath = path; |
| 1058 SkDEBUGCODE(geometry.fDevBounds = devRect;) | 1058 SkDEBUGCODE(geometry.fDevBounds = devRect;) |
| 1059 geometry.fDevClipBounds = devClipBounds; | 1059 geometry.fDevClipBounds = devClipBounds; |
| 1060 | 1060 |
| 1061 GrBatch* batch = AAHairlineBatch::Create(geometry, fLinesIndexBuffer, fQuads
IndexBuffer); | 1061 SkAutoTUnref<GrBatch> batch(AAHairlineBatch::Create(geometry, fLinesIndexBuf
fer, |
| 1062 fQuadsIndexBuffer)); |
| 1062 target->drawBatch(pipelineBuilder, batch, &devRect); | 1063 target->drawBatch(pipelineBuilder, batch, &devRect); |
| 1063 | 1064 |
| 1064 return true; | 1065 return true; |
| 1065 } | 1066 } |
| OLD | NEW |