Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: src/effects/gradients/SkTwoPointRadialGradient.cpp

Issue 12469002: Removed unused parameters (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/gpu/GrBufferAllocPool.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.cpp ('k') | src/gpu/GrBufferAllocPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698