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

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

Issue 2037413002: Add SkSourceGammaTreatment enum so we know how to create mips (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix DM compilation Created 4 years, 6 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
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 "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
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
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
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.h ('k') | src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698