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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 357 }
358 358
359 #if SK_SUPPORT_GPU 359 #if SK_SUPPORT_GPU
360 360
361 #include "SkGr.h" 361 #include "SkGr.h"
362 362
363 const GrFragmentProcessor* SkTwoPointConicalGradient::asFragmentProcessor( 363 const GrFragmentProcessor* SkTwoPointConicalGradient::asFragmentProcessor(
364 GrContext* context, 364 GrContext* context,
365 const SkMatrix& viewM, 365 const SkMatrix& viewM,
366 const SkMatrix* localMatrix, 366 const SkMatrix* localMatrix,
367 SkFilterQuality) const { 367 SkFilterQuality,
368 GrRenderTarget* dst) const {
368 SkASSERT(context); 369 SkASSERT(context);
369 SkASSERT(fPtsToUnit.isIdentity()); 370 SkASSERT(fPtsToUnit.isIdentity());
370 SkAutoTUnref<const GrFragmentProcessor> inner( 371 SkAutoTUnref<const GrFragmentProcessor> inner(
371 Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMatri x)); 372 Gr2PtConicalGradientEffect::Create(context, *this, fTileMode,
373 localMatrix, dst));
372 return GrFragmentProcessor::MulOutputByInputAlpha(inner); 374 return GrFragmentProcessor::MulOutputByInputAlpha(inner);
373 } 375 }
374 376
375 #endif 377 #endif
376 378
377 #ifndef SK_IGNORE_TO_STRING 379 #ifndef SK_IGNORE_TO_STRING
378 void SkTwoPointConicalGradient::toString(SkString* str) const { 380 void SkTwoPointConicalGradient::toString(SkString* str) const {
379 str->append("SkTwoPointConicalGradient: ("); 381 str->append("SkTwoPointConicalGradient: (");
380 382
381 str->append("center1: ("); 383 str->append("center1: (");
(...skipping 10 matching lines...) Expand all
392 str->appendScalar(fCenter2.fY); 394 str->appendScalar(fCenter2.fY);
393 str->append(") radius2: "); 395 str->append(") radius2: ");
394 str->appendScalar(fRadius2); 396 str->appendScalar(fRadius2);
395 str->append(" "); 397 str->append(" ");
396 398
397 this->INHERITED::toString(str); 399 this->INHERITED::toString(str);
398 400
399 str->append(")"); 401 str->append(")");
400 } 402 }
401 #endif 403 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkTwoPointConicalGradient.h ('k') | src/effects/gradients/SkTwoPointConicalGradient_gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698