| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 *grColor = SkColor2GrColorJustAlpha(paint.getColor()); | 705 *grColor = SkColor2GrColorJustAlpha(paint.getColor()); |
| 706 *grEffect = GrRadial2Gradient::Create(context, *this, matrix, fTileMode); | 706 *grEffect = GrRadial2Gradient::Create(context, *this, matrix, fTileMode); |
| 707 | 707 |
| 708 return true; | 708 return true; |
| 709 } | 709 } |
| 710 | 710 |
| 711 #else | 711 #else |
| 712 | 712 |
| 713 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa
int, | 713 bool SkTwoPointRadialGradient::asNewEffect(GrContext* context, const SkPaint& pa
int, |
| 714 const SkMatrix* localMatrix, GrColor*
grColor, | 714 const SkMatrix* localMatrix, GrColor*
grColor, |
| 715 GrEffect** grEffect) const { | 715 GrEffectRef** grEffect) const { |
| 716 SkDEBUGFAIL("Should not call in GPU-less build"); | 716 SkDEBUGFAIL("Should not call in GPU-less build"); |
| 717 return false; | 717 return false; |
| 718 } | 718 } |
| 719 | 719 |
| 720 #endif | 720 #endif |
| OLD | NEW |