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/GrGLFragmentProcessor.h" | 10 #include "gl/GrGLFragmentProcessor.h" |
11 #include "gl/GrGLGeometryProcessor.h" | 11 #include "gl/GrGLGeometryProcessor.h" |
| 12 #include "gl/GrGLUtil.h" |
12 #include "gl/builders/GrGLProgramBuilder.h" | 13 #include "gl/builders/GrGLProgramBuilder.h" |
13 | 14 |
14 class GrGLConicEffect : public GrGLGeometryProcessor { | 15 class GrGLConicEffect : public GrGLGeometryProcessor { |
15 public: | 16 public: |
16 GrGLConicEffect(const GrGeometryProcessor&); | 17 GrGLConicEffect(const GrGeometryProcessor&); |
17 | 18 |
18 void onEmitCode(EmitArgs&, GrGPArgs*) override; | 19 void onEmitCode(EmitArgs&, GrGPArgs*) override; |
19 | 20 |
20 static inline void GenKey(const GrGeometryProcessor&, | 21 static inline void GenKey(const GrGeometryProcessor&, |
21 const GrGLSLCaps&, | 22 const GrGLSLCaps&, |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 do { | 629 do { |
629 GrPrimitiveEdgeType edgeType = | 630 GrPrimitiveEdgeType edgeType = |
630 static_cast<GrPrimitiveEdgeType>( | 631 static_cast<GrPrimitiveEdgeType>( |
631 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); | 632 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); |
632 gp = GrCubicEffect::Create(GrRandomColor(d->fRandom), | 633 gp = GrCubicEffect::Create(GrRandomColor(d->fRandom), |
633 GrTest::TestMatrix(d->fRandom), edgeType, *d-
>fCaps); | 634 GrTest::TestMatrix(d->fRandom), edgeType, *d-
>fCaps); |
634 } while (nullptr == gp); | 635 } while (nullptr == gp); |
635 return gp; | 636 return gp; |
636 } | 637 } |
637 | 638 |
OLD | NEW |