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

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient.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
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 "SkTwoPointConicalGradient.h" 9 #include "SkTwoPointConicalGradient.h"
10 10
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698