| 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 "GrDefaultGeoProcFactory.h" | 9 #include "GrDefaultGeoProcFactory.h" |
| 10 #include "GrGeometryProcessor.h" | 10 #include "GrGeometryProcessor.h" |
| 11 #include "GrGpu.h" | 11 #include "GrGpu.h" |
| 12 #include "GrInvariantOutput.h" | 12 #include "GrInvariantOutput.h" |
| 13 #include "GrTBackendProcessorFactory.h" | |
| 14 #include "SkColorPriv.h" | 13 #include "SkColorPriv.h" |
| 15 #include "gl/GrGLProcessor.h" | 14 #include "gl/GrGLProcessor.h" |
| 16 #include "gl/GrGLGeometryProcessor.h" | 15 #include "gl/GrGLGeometryProcessor.h" |
| 17 #include "gl/builders/GrGLProgramBuilder.h" | 16 #include "gl/builders/GrGLProgramBuilder.h" |
| 18 | 17 |
| 19 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 // Should the coverage be multiplied into the color attrib or use a separate att
rib. | 21 // Should the coverage be multiplied into the color attrib or use a separate att
rib. |
| 23 enum CoverageAttribType { | 22 enum CoverageAttribType { |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // can't call mapRect for devInside since it calls sort | 520 // can't call mapRect for devInside since it calls sort |
| 522 combinedMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2)
; | 521 combinedMatrix.mapPoints((SkPoint*)&devInside, (const SkPoint*)&rects[1], 2)
; |
| 523 | 522 |
| 524 if (devInside.isEmpty()) { | 523 if (devInside.isEmpty()) { |
| 525 this->fillAARect(target, drawState, devOutside, SkMatrix::I(), devOutsid
e); | 524 this->fillAARect(target, drawState, devOutside, SkMatrix::I(), devOutsid
e); |
| 526 return; | 525 return; |
| 527 } | 526 } |
| 528 | 527 |
| 529 this->geometryStrokeAARect(target, drawState, devOutside, devOutsideAssist,
devInside, true); | 528 this->geometryStrokeAARect(target, drawState, devOutside, devOutsideAssist,
devInside, true); |
| 530 } | 529 } |
| OLD | NEW |