| 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 "SkTwoPointConicalGradient.h" | 9 #include "SkTwoPointConicalGradient.h" |
| 10 | 10 |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 , fFSVaryingName(NULL) | 477 , fFSVaryingName(NULL) |
| 478 , fCachedCenter(SK_ScalarMax) | 478 , fCachedCenter(SK_ScalarMax) |
| 479 , fCachedRadius(-SK_ScalarMax) | 479 , fCachedRadius(-SK_ScalarMax) |
| 480 , fCachedDiffRadius(-SK_ScalarMax) { | 480 , fCachedDiffRadius(-SK_ScalarMax) { |
| 481 | 481 |
| 482 const GrConical2Gradient& data = CastEffect<GrConical2Gradient>(baseData); | 482 const GrConical2Gradient& data = CastEffect<GrConical2Gradient>(baseData); |
| 483 fIsDegenerate = data.isDegenerate(); | 483 fIsDegenerate = data.isDegenerate(); |
| 484 } | 484 } |
| 485 | 485 |
| 486 void GrGLConical2Gradient::emitCode(GrGLShaderBuilder* builder, | 486 void GrGLConical2Gradient::emitCode(GrGLShaderBuilder* builder, |
| 487 const GrEffectStage& stage, | 487 const GrEffectStage&, |
| 488 EffectKey key, | 488 EffectKey key, |
| 489 const char* vertexCoords, | 489 const char* vertexCoords, |
| 490 const char* outputColor, | 490 const char* outputColor, |
| 491 const char* inputColor, | 491 const char* inputColor, |
| 492 const TextureSamplerArray& samplers) { | 492 const TextureSamplerArray& samplers) { |
| 493 const char* fsCoords; | 493 const char* fsCoords; |
| 494 const char* vsCoordsVarying; | 494 const char* vsCoordsVarying; |
| 495 GrSLType coordsVaryingType; | 495 GrSLType coordsVaryingType; |
| 496 this->setupMatrix(builder, key, vertexCoords, &fsCoords, &vsCoordsVarying, &
coordsVaryingType); | 496 this->setupMatrix(builder, key, vertexCoords, &fsCoords, &vsCoordsVarying, &
coordsVaryingType); |
| 497 | 497 |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 str->appendScalar(fCenter2.fY); | 753 str->appendScalar(fCenter2.fY); |
| 754 str->append(") radius2: "); | 754 str->append(") radius2: "); |
| 755 str->appendScalar(fRadius2); | 755 str->appendScalar(fRadius2); |
| 756 str->append(" "); | 756 str->append(" "); |
| 757 | 757 |
| 758 this->INHERITED::toString(str); | 758 this->INHERITED::toString(str); |
| 759 | 759 |
| 760 str->append(")"); | 760 str->append(")"); |
| 761 } | 761 } |
| 762 #endif | 762 #endif |
| OLD | NEW |