| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
| 10 | 10 |
| 11 #include "GrContext.h" | 11 #include "GrContext.h" |
| 12 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
| 13 #include "GrDrawTargetCaps.h" | 13 #include "GrDrawTargetCaps.h" |
| 14 #include "GrInvariantOutput.h" |
| 14 #include "GrProcessor.h" | 15 #include "GrProcessor.h" |
| 15 #include "GrPathUtils.h" | 16 #include "GrPathUtils.h" |
| 16 #include "GrTBackendProcessorFactory.h" | 17 #include "GrTBackendProcessorFactory.h" |
| 17 #include "SkString.h" | 18 #include "SkString.h" |
| 18 #include "SkStrokeRec.h" | 19 #include "SkStrokeRec.h" |
| 19 #include "SkTraceEvent.h" | 20 #include "SkTraceEvent.h" |
| 20 | 21 |
| 21 #include "gl/builders/GrGLProgramBuilder.h" | 22 #include "gl/builders/GrGLProgramBuilder.h" |
| 22 #include "gl/GrGLProcessor.h" | 23 #include "gl/GrGLProcessor.h" |
| 23 #include "gl/GrGLSL.h" | 24 #include "gl/GrGLSL.h" |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 QuadEdgeEffect() | 576 QuadEdgeEffect() |
| 576 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", | 577 : fInQuadEdge(this->addVertexAttrib(GrShaderVar("inQuadEdge", |
| 577 kVec4f_GrSLType, | 578 kVec4f_GrSLType, |
| 578 GrShaderVar::kAttribute_
TypeModifier))) { | 579 GrShaderVar::kAttribute_
TypeModifier))) { |
| 579 } | 580 } |
| 580 | 581 |
| 581 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE { | 582 virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE { |
| 582 return true; | 583 return true; |
| 583 } | 584 } |
| 584 | 585 |
| 585 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { | 586 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const SK_OVE
RRIDE { |
| 586 inout->mulByUnknownAlpha(); | 587 inout->mulByUnknownAlpha(); |
| 587 } | 588 } |
| 588 | 589 |
| 589 const GrShaderVar& fInQuadEdge; | 590 const GrShaderVar& fInQuadEdge; |
| 590 | 591 |
| 591 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; | 592 GR_DECLARE_GEOMETRY_PROCESSOR_TEST; |
| 592 | 593 |
| 593 typedef GrFragmentProcessor INHERITED; | 594 typedef GrFragmentProcessor INHERITED; |
| 594 }; | 595 }; |
| 595 | 596 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 vOffset, // start vertex | 707 vOffset, // start vertex |
| 707 0, // start index | 708 0, // start index |
| 708 draw.fVertexCnt, | 709 draw.fVertexCnt, |
| 709 draw.fIndexCnt, | 710 draw.fIndexCnt, |
| 710 &devBounds); | 711 &devBounds); |
| 711 vOffset += draw.fVertexCnt; | 712 vOffset += draw.fVertexCnt; |
| 712 } | 713 } |
| 713 | 714 |
| 714 return true; | 715 return true; |
| 715 } | 716 } |
| OLD | NEW |