| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "GrAARectRenderer.h" | 8 #include "GrAARectRenderer.h" |
| 9 #include "GrBatch.h" | 9 #include "GrBatch.h" |
| 10 #include "GrBatchTarget.h" | 10 #include "GrBatchTarget.h" |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 | 720 |
| 721 if (this->color() != that->color()) { | 721 if (this->color() != that->color()) { |
| 722 fBatch.fColor = GrColor_ILLEGAL; | 722 fBatch.fColor = GrColor_ILLEGAL; |
| 723 } | 723 } |
| 724 fGeoData.push_back_n(that->geoData()->count(), that->geoData()->begin())
; | 724 fGeoData.push_back_n(that->geoData()->count(), that->geoData()->begin())
; |
| 725 return true; | 725 return true; |
| 726 } | 726 } |
| 727 | 727 |
| 728 void generateAAStrokeRectGeometry(void* vertices, | 728 void generateAAStrokeRectGeometry(void* vertices, |
| 729 uint32_t offset, | 729 uint32_t offset, |
| 730 uint32_t vertexStride, | 730 size_t vertexStride, |
| 731 int outerVertexNum, | 731 int outerVertexNum, |
| 732 int innerVertexNum, | 732 int innerVertexNum, |
| 733 GrColor color, | 733 GrColor color, |
| 734 const SkRect& devOutside, | 734 const SkRect& devOutside, |
| 735 const SkRect& devOutsideAssist, | 735 const SkRect& devOutsideAssist, |
| 736 const SkRect& devInside, | 736 const SkRect& devInside, |
| 737 bool miterStroke, | 737 bool miterStroke, |
| 738 bool tweakAlphaForCoverage) const { | 738 bool tweakAlphaForCoverage) const { |
| 739 intptr_t verts = reinterpret_cast<intptr_t>(vertices) + offset; | 739 intptr_t verts = reinterpret_cast<intptr_t>(vertices) + offset; |
| 740 | 740 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 894 |
| 895 if (devInside.isEmpty()) { | 895 if (devInside.isEmpty()) { |
| 896 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside, | 896 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside, |
| 897 devOutside); | 897 devOutside); |
| 898 return; | 898 return; |
| 899 } | 899 } |
| 900 | 900 |
| 901 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu
tside, | 901 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu
tside, |
| 902 devOutsideAssist, devInside, true); | 902 devOutsideAssist, devInside, true); |
| 903 } | 903 } |
| OLD | NEW |