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

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

Issue 278983002: add localmatrix param to asNewEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 9
10 #include "SkTwoPointConicalGradient_gpu.h" 10 #include "SkTwoPointConicalGradient_gpu.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext* context, const Sk Paint&, 383 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext* context, const Sk Paint&,
384 const SkMatrix* localMatrix) const { 384 const SkMatrix* localMatrix) const {
385 SkASSERT(NULL != context); 385 SkASSERT(NULL != context);
386 SkASSERT(fPtsToUnit.isIdentity()); 386 SkASSERT(fPtsToUnit.isIdentity());
387 387
388 return Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMa trix); 388 return Gr2PtConicalGradientEffect::Create(context, *this, fTileMode, localMa trix);
389 } 389 }
390 390
391 #else 391 #else
392 392
393 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&) const { 393 GrEffectRef* SkTwoPointConicalGradient::asNewEffect(GrContext*, const SkPaint&,
394 const SkMatrix*) const {
394 SkDEBUGFAIL("Should not call in GPU-less build"); 395 SkDEBUGFAIL("Should not call in GPU-less build");
395 return NULL; 396 return NULL;
396 } 397 }
397 398
398 #endif 399 #endif
399 400
400 #ifndef SK_IGNORE_TO_STRING 401 #ifndef SK_IGNORE_TO_STRING
401 void SkTwoPointConicalGradient::toString(SkString* str) const { 402 void SkTwoPointConicalGradient::toString(SkString* str) const {
402 str->append("SkTwoPointConicalGradient: ("); 403 str->append("SkTwoPointConicalGradient: (");
403 404
(...skipping 11 matching lines...) Expand all
415 str->appendScalar(fCenter2.fY); 416 str->appendScalar(fCenter2.fY);
416 str->append(") radius2: "); 417 str->append(") radius2: ");
417 str->appendScalar(fRadius2); 418 str->appendScalar(fRadius2);
418 str->append(" "); 419 str->append(" ");
419 420
420 this->INHERITED::toString(str); 421 this->INHERITED::toString(str);
421 422
422 str->append(")"); 423 str->append(")");
423 } 424 }
424 #endif 425 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkSweepGradient.cpp ('k') | src/effects/gradients/SkTwoPointRadialGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698