OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "GrBezierEffect.h" | 8 #include "GrBezierEffect.h" |
9 | 9 |
10 #include "gl/GrGLProcessor.h" | 10 #include "gl/GrGLProcessor.h" |
11 #include "gl/GrGLSL.h" | |
12 #include "gl/GrGLGeometryProcessor.h" | 11 #include "gl/GrGLGeometryProcessor.h" |
13 #include "gl/builders/GrGLProgramBuilder.h" | 12 #include "gl/builders/GrGLProgramBuilder.h" |
14 | 13 |
15 class GrGLConicEffect : public GrGLGeometryProcessor { | 14 class GrGLConicEffect : public GrGLGeometryProcessor { |
16 public: | 15 public: |
17 GrGLConicEffect(const GrGeometryProcessor&, | 16 GrGLConicEffect(const GrGeometryProcessor&, |
18 const GrBatchTracker&); | 17 const GrBatchTracker&); |
19 | 18 |
20 void onEmitCode(EmitArgs&, GrGPArgs*) override; | 19 void onEmitCode(EmitArgs&, GrGPArgs*) override; |
21 | 20 |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 GrGeometryProcessor* gp; | 657 GrGeometryProcessor* gp; |
659 do { | 658 do { |
660 GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>( | 659 GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>( |
661 random->nextULessThan(kGrPro
cessorEdgeTypeCnt)); | 660 random->nextULessThan(kGrPro
cessorEdgeTypeCnt)); |
662 gp = GrCubicEffect::Create(GrRandomColor(random), | 661 gp = GrCubicEffect::Create(GrRandomColor(random), |
663 GrTest::TestMatrix(random), edgeType, caps); | 662 GrTest::TestMatrix(random), edgeType, caps); |
664 } while (NULL == gp); | 663 } while (NULL == gp); |
665 return gp; | 664 return gp; |
666 } | 665 } |
667 | 666 |
OLD | NEW |