OLD | NEW |
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 "SkTwoPointConicalGradient.h" | 8 #include "SkTwoPointConicalGradient.h" |
9 #include "SkTwoPointConicalGradient_gpu.h" | 9 #include "SkTwoPointConicalGradient_gpu.h" |
10 | 10 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 353 } |
354 | 354 |
355 #if SK_SUPPORT_GPU | 355 #if SK_SUPPORT_GPU |
356 | 356 |
357 #include "SkGr.h" | 357 #include "SkGr.h" |
358 | 358 |
359 const GrFragmentProcessor* SkTwoPointConicalGradient::asFragmentProcessor( | 359 const GrFragmentProcessor* SkTwoPointConicalGradient::asFragmentProcessor( |
360 GrContext* context, | 360 GrContext* context, |
361 const SkMatrix& viewM, | 361 const SkMatrix& viewM, |
362 const SkMatrix* localMatrix, | 362 const SkMatrix* localMatrix, |
363 SkFilterQuality) const { | 363 SkFilterQuality, |
| 364 SkSourceGammaTreatment) const
{ |
364 SkASSERT(context); | 365 SkASSERT(context); |
365 SkASSERT(fPtsToUnit.isIdentity()); | 366 SkASSERT(fPtsToUnit.isIdentity()); |
366 SkAutoTUnref<const GrFragmentProcessor> inner( | 367 SkAutoTUnref<const GrFragmentProcessor> inner( |
367 Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMatri
x)); | 368 Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMatri
x)); |
368 return GrFragmentProcessor::MulOutputByInputAlpha(inner); | 369 return GrFragmentProcessor::MulOutputByInputAlpha(inner); |
369 } | 370 } |
370 | 371 |
371 #endif | 372 #endif |
372 | 373 |
373 #ifndef SK_IGNORE_TO_STRING | 374 #ifndef SK_IGNORE_TO_STRING |
(...skipping 14 matching lines...) Expand all Loading... |
388 str->appendScalar(fCenter2.fY); | 389 str->appendScalar(fCenter2.fY); |
389 str->append(") radius2: "); | 390 str->append(") radius2: "); |
390 str->appendScalar(fRadius2); | 391 str->appendScalar(fRadius2); |
391 str->append(" "); | 392 str->append(" "); |
392 | 393 |
393 this->INHERITED::toString(str); | 394 this->INHERITED::toString(str); |
394 | 395 |
395 str->append(")"); | 396 str->append(")"); |
396 } | 397 } |
397 #endif | 398 #endif |
OLD | NEW |