OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |