Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/effects/gradients/SkRadialGradient.cpp

Issue 1862373003: Rename EmitArgs::fSamplers to fTexSamplers (Closed) Base URL: https://skia.googlesource.com/skia.git@upload3_infer
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkLinearGradient.cpp ('k') | src/effects/gradients/SkSweepGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698