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 "SkTwoPointRadialGradient.h" | 9 #include "SkTwoPointRadialGradient.h" |
10 | 10 |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 rot.setSinCos(-SkScalarMul(invDiffLen, fDiff.fY), | 694 rot.setSinCos(-SkScalarMul(invDiffLen, fDiff.fY), |
695 SkScalarMul(invDiffLen, fDiff.fX)); | 695 SkScalarMul(invDiffLen, fDiff.fX)); |
696 matrix.postConcat(rot); | 696 matrix.postConcat(rot); |
697 } | 697 } |
698 | 698 |
699 return GrRadial2Gradient::Create(context, *this, matrix, fTileMode); | 699 return GrRadial2Gradient::Create(context, *this, matrix, fTileMode); |
700 } | 700 } |
701 | 701 |
702 #else | 702 #else |
703 | 703 |
704 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&) c
onst { | 704 GrEffectRef* SkTwoPointRadialGradient::asNewEffect(GrContext*, const SkPaint&, |
| 705 const SkMatrix*) const { |
705 SkDEBUGFAIL("Should not call in GPU-less build"); | 706 SkDEBUGFAIL("Should not call in GPU-less build"); |
706 return NULL; | 707 return NULL; |
707 } | 708 } |
708 | 709 |
709 #endif | 710 #endif |
OLD | NEW |