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 "GrGpu.h" | 9 #include "GrGpu.h" |
| 10 #include "GrInvariantOutput.h" |
10 #include "gl/builders/GrGLProgramBuilder.h" | 11 #include "gl/builders/GrGLProgramBuilder.h" |
11 #include "gl/GrGLProcessor.h" | 12 #include "gl/GrGLProcessor.h" |
12 #include "gl/GrGLGeometryProcessor.h" | 13 #include "gl/GrGLGeometryProcessor.h" |
13 #include "GrTBackendProcessorFactory.h" | 14 #include "GrTBackendProcessorFactory.h" |
14 #include "SkColorPriv.h" | 15 #include "SkColorPriv.h" |
15 #include "GrGeometryProcessor.h" | 16 #include "GrGeometryProcessor.h" |
16 | 17 |
17 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
18 | 19 |
19 namespace { | 20 namespace { |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 // can't call mapRect for devInside since it calls sort | 512 // can't call mapRect for devInside since it calls sort |
512 combinedMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2)
; | 513 combinedMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2)
; |
513 | 514 |
514 if (devInside.isEmpty()) { | 515 if (devInside.isEmpty()) { |
515 this->fillAARect(target, devOutside, SkMatrix::I(), devOutside); | 516 this->fillAARect(target, devOutside, SkMatrix::I(), devOutside); |
516 return; | 517 return; |
517 } | 518 } |
518 | 519 |
519 this->geometryStrokeAARect(target, devOutside, devOutsideAssist, devInside,
true); | 520 this->geometryStrokeAARect(target, devOutside, devOutsideAssist, devInside,
true); |
520 } | 521 } |
OLD | NEW |