| 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/GrGLFragmentProcessor.h" |
| 11 #include "gl/GrGLGeometryProcessor.h" | 11 #include "gl/GrGLGeometryProcessor.h" |
| 12 #include "gl/builders/GrGLProgramBuilder.h" | 12 #include "gl/builders/GrGLProgramBuilder.h" |
| 13 | 13 |
| 14 class GrGLConicEffect : public GrGLGeometryProcessor { | 14 class GrGLConicEffect : public GrGLGeometryProcessor { |
| 15 public: | 15 public: |
| 16 GrGLConicEffect(const GrGeometryProcessor&, | 16 GrGLConicEffect(const GrGeometryProcessor&, |
| 17 const GrBatchTracker&); | 17 const GrBatchTracker&); |
| 18 | 18 |
| 19 void onEmitCode(EmitArgs&, GrGPArgs*) override; | 19 void onEmitCode(EmitArgs&, GrGPArgs*) override; |
| 20 | 20 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 do { | 650 do { |
| 651 GrPrimitiveEdgeType edgeType = | 651 GrPrimitiveEdgeType edgeType = |
| 652 static_cast<GrPrimitiveEdgeType>( | 652 static_cast<GrPrimitiveEdgeType>( |
| 653 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); | 653 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); |
| 654 gp = GrCubicEffect::Create(GrRandomColor(d->fRandom), | 654 gp = GrCubicEffect::Create(GrRandomColor(d->fRandom), |
| 655 GrTest::TestMatrix(d->fRandom), edgeType, *d-
>fCaps); | 655 GrTest::TestMatrix(d->fRandom), edgeType, *d-
>fCaps); |
| 656 } while (NULL == gp); | 656 } while (NULL == gp); |
| 657 return gp; | 657 return gp; |
| 658 } | 658 } |
| 659 | 659 |
| OLD | NEW |