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

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

Issue 1443743002: Rename some processor functions from GL to GLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@primProcs
Patch Set: nits Created 5 years, 1 month 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
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.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 "SkRadialGradient.h" 9 #include "SkRadialGradient.h"
10 #include "SkRadialGradient_Table.h" 10 #include "SkRadialGradient_Table.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 private: 453 private:
454 GrRadialGradient(GrContext* ctx, 454 GrRadialGradient(GrContext* ctx,
455 const SkRadialGradient& shader, 455 const SkRadialGradient& shader,
456 const SkMatrix& matrix, 456 const SkMatrix& matrix,
457 SkShader::TileMode tm) 457 SkShader::TileMode tm)
458 : INHERITED(ctx, shader, matrix, tm) { 458 : INHERITED(ctx, shader, matrix, tm) {
459 this->initClassID<GrRadialGradient>(); 459 this->initClassID<GrRadialGradient>();
460 } 460 }
461 461
462 GrGLSLFragmentProcessor* onCreateGLInstance() const override { 462 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
463 return new GrGLRadialGradient(*this); 463 return new GrGLRadialGradient(*this);
464 } 464 }
465 465
466 virtual void onGetGLProcessorKey(const GrGLSLCaps& caps, 466 virtual void onGetGLSLProcessorKey(const GrGLSLCaps& caps,
467 GrProcessorKeyBuilder* b) const override { 467 GrProcessorKeyBuilder* b) const override {
468 GrGLRadialGradient::GenKey(*this, caps, b); 468 GrGLRadialGradient::GenKey(*this, caps, b);
469 } 469 }
470 470
471 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; 471 GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
472 472
473 typedef GrGradientEffect INHERITED; 473 typedef GrGradientEffect INHERITED;
474 }; 474 };
475 475
476 ///////////////////////////////////////////////////////////////////// 476 /////////////////////////////////////////////////////////////////////
477 477
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 str->appendScalar(fCenter.fY); 545 str->appendScalar(fCenter.fY);
546 str->append(") radius: "); 546 str->append(") radius: ");
547 str->appendScalar(fRadius); 547 str->appendScalar(fRadius);
548 str->append(" "); 548 str->append(" ");
549 549
550 this->INHERITED::toString(str); 550 this->INHERITED::toString(str);
551 551
552 str->append(")"); 552 str->append(")");
553 } 553 }
554 #endif 554 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698