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

Side by Side Diff: src/effects/gradients/SkSweepGradient.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 "SkSweepGradient.h" 9 #include "SkSweepGradient.h"
10 10
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored); 457 int colorCount = RandomGradientParams(random, colors, &stops, &tmIgnored);
458 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateSweep(center.fX, cente r.fY, 458 SkAutoTUnref<SkShader> shader(SkGradientShader::CreateSweep(center.fX, cente r.fY,
459 colors, stops, c olorCount)); 459 colors, stops, c olorCount));
460 SkPaint paint; 460 SkPaint paint;
461 return shader->asNewEffect(context, paint); 461 return shader->asNewEffect(context, paint);
462 } 462 }
463 463
464 ///////////////////////////////////////////////////////////////////// 464 /////////////////////////////////////////////////////////////////////
465 465
466 void GrGLSweepGradient::emitCode(GrGLShaderBuilder* builder, 466 void GrGLSweepGradient::emitCode(GrGLShaderBuilder* builder,
467 const GrEffectStage& stage, 467 const GrEffectStage&,
468 EffectKey key, 468 EffectKey key,
469 const char* vertexCoords, 469 const char* vertexCoords,
470 const char* outputColor, 470 const char* outputColor,
471 const char* inputColor, 471 const char* inputColor,
472 const TextureSamplerArray& samplers) { 472 const TextureSamplerArray& samplers) {
473 this->emitYCoordUniform(builder); 473 this->emitYCoordUniform(builder);
474 const char* coords; 474 const char* coords;
475 this->setupMatrix(builder, key, vertexCoords, &coords); 475 this->setupMatrix(builder, key, vertexCoords, &coords);
476 SkString t; 476 SkString t;
477 t.printf("atan(- %s.y, - %s.x) * 0.1591549430918 + 0.5", coords, coords); 477 t.printf("atan(- %s.y, - %s.x) * 0.1591549430918 + 0.5", coords, coords);
(...skipping 28 matching lines...) Expand all
506 str->appendScalar(fCenter.fX); 506 str->appendScalar(fCenter.fX);
507 str->append(", "); 507 str->append(", ");
508 str->appendScalar(fCenter.fY); 508 str->appendScalar(fCenter.fY);
509 str->append(") "); 509 str->append(") ");
510 510
511 this->INHERITED::toString(str); 511 this->INHERITED::toString(str);
512 512
513 str->append(")"); 513 str->append(")");
514 } 514 }
515 #endif 515 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkRadialGradient.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698