| 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 "gl/builders/GrGLProgramBuilder.h" | |
| 9 #include "GrBezierEffect.h" | 8 #include "GrBezierEffect.h" |
| 10 | 9 |
| 10 #include "gl/builders/GrGLFullProgramBuilder.h" |
| 11 #include "gl/GrGLEffect.h" | 11 #include "gl/GrGLEffect.h" |
| 12 #include "gl/GrGLSL.h" | 12 #include "gl/GrGLSL.h" |
| 13 #include "gl/GrGLGeometryProcessor.h" | 13 #include "gl/GrGLGeometryProcessor.h" |
| 14 #include "GrTBackendEffectFactory.h" | 14 #include "GrTBackendEffectFactory.h" |
| 15 | 15 |
| 16 class GrGLConicEffect : public GrGLGeometryProcessor { | 16 class GrGLConicEffect : public GrGLGeometryProcessor { |
| 17 public: | 17 public: |
| 18 GrGLConicEffect(const GrBackendEffectFactory&, const GrEffect&); | 18 GrGLConicEffect(const GrBackendEffectFactory&, const GrEffect&); |
| 19 | 19 |
| 20 virtual void emitCode(GrGLFullProgramBuilder* builder, | 20 virtual void emitCode(GrGLFullProgramBuilder* builder, |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 GrTexture*[]) { | 474 GrTexture*[]) { |
| 475 GrEffect* effect; | 475 GrEffect* effect; |
| 476 do { | 476 do { |
| 477 GrEffectEdgeType edgeType = static_cast<GrEffectEdgeType>( | 477 GrEffectEdgeType edgeType = static_cast<GrEffectEdgeType>( |
| 478 random->nextULessThan(kGrEff
ectEdgeTypeCnt)); | 478 random->nextULessThan(kGrEff
ectEdgeTypeCnt)); |
| 479 effect = GrCubicEffect::Create(edgeType, caps); | 479 effect = GrCubicEffect::Create(edgeType, caps); |
| 480 } while (NULL == effect); | 480 } while (NULL == effect); |
| 481 return effect; | 481 return effect; |
| 482 } | 482 } |
| 483 | 483 |
| OLD | NEW |