| 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" |
| 11 #include "GrBufferAllocPool.h" | 11 #include "GrBufferAllocPool.h" |
| 12 #include "GrDefaultGeoProcFactory.h" | 12 #include "GrDefaultGeoProcFactory.h" |
| 13 #include "GrGeometryProcessor.h" | 13 #include "GrGeometryProcessor.h" |
| 14 #include "GrGpu.h" | 14 #include "GrGpu.h" |
| 15 #include "GrInvariantOutput.h" | 15 #include "GrInvariantOutput.h" |
| 16 #include "GrVertexBuffer.h" |
| 16 #include "SkColorPriv.h" | 17 #include "SkColorPriv.h" |
| 17 #include "gl/GrGLProcessor.h" | 18 #include "gl/GrGLProcessor.h" |
| 18 #include "gl/GrGLGeometryProcessor.h" | 19 #include "gl/GrGLGeometryProcessor.h" |
| 19 #include "gl/builders/GrGLProgramBuilder.h" | 20 #include "gl/builders/GrGLProgramBuilder.h" |
| 20 | 21 |
| 21 /////////////////////////////////////////////////////////////////////////////// | 22 /////////////////////////////////////////////////////////////////////////////// |
| 22 | 23 |
| 23 static void set_inset_fan(SkPoint* pts, size_t stride, | 24 static void set_inset_fan(SkPoint* pts, size_t stride, |
| 24 const SkRect& r, SkScalar dx, SkScalar dy) { | 25 const SkRect& r, SkScalar dx, SkScalar dy) { |
| 25 pts->setRectFan(r.fLeft + dx, r.fTop + dy, | 26 pts->setRectFan(r.fLeft + dx, r.fTop + dy, |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 viewMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2); | 892 viewMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2); |
| 892 | 893 |
| 893 if (devInside.isEmpty()) { | 894 if (devInside.isEmpty()) { |
| 894 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside,
devOutside); | 895 this->fillAARect(target, pipelineBuilder, color, viewMatrix, devOutside,
devOutside); |
| 895 return; | 896 return; |
| 896 } | 897 } |
| 897 | 898 |
| 898 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu
tside, | 899 this->geometryStrokeAARect(target, pipelineBuilder, color, viewMatrix, devOu
tside, |
| 899 devOutsideAssist, devInside, true); | 900 devOutsideAssist, devInside, true); |
| 900 } | 901 } |
| OLD | NEW |