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 "SkTwoPointRadialGradient.h" | 9 #include "SkTwoPointRadialGradient.h" |
10 | 10 |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 , fFSVaryingName(NULL) | 524 , fFSVaryingName(NULL) |
525 , fCachedCenter(SK_ScalarMax) | 525 , fCachedCenter(SK_ScalarMax) |
526 , fCachedRadius(-SK_ScalarMax) | 526 , fCachedRadius(-SK_ScalarMax) |
527 , fCachedPosRoot(0) { | 527 , fCachedPosRoot(0) { |
528 | 528 |
529 const GrRadial2Gradient& data = CastEffect<GrRadial2Gradient>(baseData); | 529 const GrRadial2Gradient& data = CastEffect<GrRadial2Gradient>(baseData); |
530 fIsDegenerate = data.isDegenerate(); | 530 fIsDegenerate = data.isDegenerate(); |
531 } | 531 } |
532 | 532 |
533 void GrGLRadial2Gradient::emitCode(GrGLShaderBuilder* builder, | 533 void GrGLRadial2Gradient::emitCode(GrGLShaderBuilder* builder, |
534 const GrEffectStage& stage, | 534 const GrEffectStage&, |
535 EffectKey key, | 535 EffectKey key, |
536 const char* vertexCoords, | 536 const char* vertexCoords, |
537 const char* outputColor, | 537 const char* outputColor, |
538 const char* inputColor, | 538 const char* inputColor, |
539 const TextureSamplerArray& samplers) { | 539 const TextureSamplerArray& samplers) { |
540 | 540 |
541 this->emitYCoordUniform(builder); | 541 this->emitYCoordUniform(builder); |
542 const char* fsCoords; | 542 const char* fsCoords; |
543 const char* vsCoordsVarying; | 543 const char* vsCoordsVarying; |
544 GrSLType coordsVaryingType; | 544 GrSLType coordsVaryingType; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 } | 711 } |
712 | 712 |
713 #else | 713 #else |
714 | 714 |
715 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { | 715 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { |
716 SkDEBUGFAIL("Should not call in GPU-less build"); | 716 SkDEBUGFAIL("Should not call in GPU-less build"); |
717 return NULL; | 717 return NULL; |
718 } | 718 } |
719 | 719 |
720 #endif | 720 #endif |
OLD | NEW |