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

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

Issue 804813002: Cleanup: Mark some overridden methods with 'SK_OVERRIDE'. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkLinearGradient.h" 8 #include "SkLinearGradient.h"
9 9
10 static inline int repeat_bits(int x, const int bits) { 10 static inline int repeat_bits(int x, const int bits) {
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 static GrFragmentProcessor* Create(GrContext* ctx, 487 static GrFragmentProcessor* Create(GrContext* ctx,
488 const SkLinearGradient& shader, 488 const SkLinearGradient& shader,
489 const SkMatrix& matrix, 489 const SkMatrix& matrix,
490 SkShader::TileMode tm) { 490 SkShader::TileMode tm) {
491 return SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm)); 491 return SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm));
492 } 492 }
493 493
494 virtual ~GrLinearGradient() { } 494 virtual ~GrLinearGradient() { }
495 495
496 virtual const char* name() const { return "Linear Gradient"; } 496 virtual const char* name() const SK_OVERRIDE { return "Linear Gradient"; }
497 497
498 virtual void getGLProcessorKey(const GrGLCaps& caps, 498 virtual void getGLProcessorKey(const GrGLCaps& caps,
499 GrProcessorKeyBuilder* b) const SK_OVERRIDE { 499 GrProcessorKeyBuilder* b) const SK_OVERRIDE {
500 GrGLLinearGradient::GenKey(*this, caps, b); 500 GrGLLinearGradient::GenKey(*this, caps, b);
501 } 501 }
502 502
503 virtual GrGLFragmentProcessor* createGLInstance() const SK_OVERRIDE { 503 virtual GrGLFragmentProcessor* createGLInstance() const SK_OVERRIDE {
504 return SkNEW_ARGS(GrGLLinearGradient, (*this)); 504 return SkNEW_ARGS(GrGLLinearGradient, (*this));
505 } 505 }
506 506
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 str->append("SkLinearGradient ("); 599 str->append("SkLinearGradient (");
600 600
601 str->appendf("start: (%f, %f)", fStart.fX, fStart.fY); 601 str->appendf("start: (%f, %f)", fStart.fX, fStart.fY);
602 str->appendf(" end: (%f, %f) ", fEnd.fX, fEnd.fY); 602 str->appendf(" end: (%f, %f) ", fEnd.fX, fEnd.fY);
603 603
604 this->INHERITED::toString(str); 604 this->INHERITED::toString(str);
605 605
606 str->append(")"); 606 str->append(")");
607 } 607 }
608 #endif 608 #endif
OLDNEW
« no previous file with comments | « src/effects/SkLightingImageFilter.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698