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

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

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 years, 5 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
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 "SkRadialGradient.h" 9 #include "SkRadialGradient.h"
10 #include "SkRadialGradient_Table.h" 10 #include "SkRadialGradient_Table.h"
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 dstX += SK_Scalar1; 451 dstX += SK_Scalar1;
452 } while (--count != 0); 452 } while (--count != 0);
453 } 453 }
454 } 454 }
455 455
456 ///////////////////////////////////////////////////////////////////// 456 /////////////////////////////////////////////////////////////////////
457 457
458 #if SK_SUPPORT_GPU 458 #if SK_SUPPORT_GPU
459 459
460 #include "GrTBackendEffectFactory.h" 460 #include "GrTBackendEffectFactory.h"
461 #include "gl/GrGLShaderBuilder.h"
461 #include "SkGr.h" 462 #include "SkGr.h"
462 463
463 class GrGLRadialGradient : public GrGLGradientEffect { 464 class GrGLRadialGradient : public GrGLGradientEffect {
464 public: 465 public:
465 466
466 GrGLRadialGradient(const GrBackendEffectFactory& factory, 467 GrGLRadialGradient(const GrBackendEffectFactory& factory,
467 const GrDrawEffect&) : INHERITED (factory) { } 468 const GrDrawEffect&) : INHERITED (factory) { }
468 virtual ~GrGLRadialGradient() { } 469 virtual ~GrGLRadialGradient() { }
469 470
470 virtual void emitCode(GrGLShaderBuilder*, 471 virtual void emitCode(GrGLShaderBuilder*,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 str->appendScalar(fCenter.fY); 608 str->appendScalar(fCenter.fY);
608 str->append(") radius: "); 609 str->append(") radius: ");
609 str->appendScalar(fRadius); 610 str->appendScalar(fRadius);
610 str->append(" "); 611 str->append(" ");
611 612
612 this->INHERITED::toString(str); 613 this->INHERITED::toString(str);
613 614
614 str->append(")"); 615 str->append(")");
615 } 616 }
616 #endif 617 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698