| 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 "SkRadialGradient.h" | 8 #include "SkRadialGradient.h" |
| 9 #include "SkNx.h" | 9 #include "SkNx.h" |
| 10 | 10 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 this->emitUniforms(args.fUniformHandler, ge); | 325 this->emitUniforms(args.fUniformHandler, ge); |
| 326 SkString t("length("); | 326 SkString t("length("); |
| 327 t.append(args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0)); | 327 t.append(args.fFragBuilder->ensureFSCoords2D(args.fCoords, 0)); |
| 328 t.append(")"); | 328 t.append(")"); |
| 329 this->emitColor(args.fFragBuilder, | 329 this->emitColor(args.fFragBuilder, |
| 330 args.fUniformHandler, | 330 args.fUniformHandler, |
| 331 args.fGLSLCaps, | 331 args.fGLSLCaps, |
| 332 ge, t.c_str(), | 332 ge, t.c_str(), |
| 333 args.fOutputColor, | 333 args.fOutputColor, |
| 334 args.fInputColor, | 334 args.fInputColor, |
| 335 args.fSamplers); | 335 args.fTexSamplers); |
| 336 } | 336 } |
| 337 | 337 |
| 338 ///////////////////////////////////////////////////////////////////// | 338 ///////////////////////////////////////////////////////////////////// |
| 339 | 339 |
| 340 const GrFragmentProcessor* SkRadialGradient::asFragmentProcessor( | 340 const GrFragmentProcessor* SkRadialGradient::asFragmentProcessor( |
| 341 GrContext* context, | 341 GrContext* context, |
| 342 const SkMatrix& viewM, | 342 const SkMatrix& viewM, |
| 343 const SkMatrix* localMatrix, | 343 const SkMatrix* localMatrix, |
| 344 SkFilterQuality) const { | 344 SkFilterQuality) const { |
| 345 SkASSERT(context); | 345 SkASSERT(context); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 373 str->appendScalar(fCenter.fY); | 373 str->appendScalar(fCenter.fY); |
| 374 str->append(") radius: "); | 374 str->append(") radius: "); |
| 375 str->appendScalar(fRadius); | 375 str->appendScalar(fRadius); |
| 376 str->append(" "); | 376 str->append(" "); |
| 377 | 377 |
| 378 this->INHERITED::toString(str); | 378 this->INHERITED::toString(str); |
| 379 | 379 |
| 380 str->append(")"); | 380 str->append(")"); |
| 381 } | 381 } |
| 382 #endif | 382 #endif |
| OLD | NEW |