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

Side by Side Diff: src/effects/gradients/SkSweepGradient.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkSweepGradient.h" 9 #include "SkSweepGradient.h"
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 return NULL; 291 return NULL;
292 } 292 }
293 matrix.postConcat(inv); 293 matrix.postConcat(inv);
294 } 294 }
295 matrix.postConcat(fPtsToUnit); 295 matrix.postConcat(fPtsToUnit);
296 return GrSweepGradient::Create(context, *this, matrix); 296 return GrSweepGradient::Create(context, *this, matrix);
297 } 297 }
298 298
299 #else 299 #else
300 300
301 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&) const { 301 GrEffectRef* SkSweepGradient::asNewEffect(GrContext*, const SkPaint&, const SkMa trix*) const {
302 SkDEBUGFAIL("Should not call in GPU-less build"); 302 SkDEBUGFAIL("Should not call in GPU-less build");
303 return NULL; 303 return NULL;
304 } 304 }
305 305
306 #endif 306 #endif
307 307
308 #ifndef SK_IGNORE_TO_STRING 308 #ifndef SK_IGNORE_TO_STRING
309 void SkSweepGradient::toString(SkString* str) const { 309 void SkSweepGradient::toString(SkString* str) const {
310 str->append("SkSweepGradient: ("); 310 str->append("SkSweepGradient: (");
311 311
312 str->append("center: ("); 312 str->append("center: (");
313 str->appendScalar(fCenter.fX); 313 str->appendScalar(fCenter.fX);
314 str->append(", "); 314 str->append(", ");
315 str->appendScalar(fCenter.fY); 315 str->appendScalar(fCenter.fY);
316 str->append(") "); 316 str->append(") ");
317 317
318 this->INHERITED::toString(str); 318 this->INHERITED::toString(str);
319 319
320 str->append(")"); 320 str->append(")");
321 } 321 }
322 #endif 322 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkRadialGradient.cpp ('k') | src/effects/gradients/SkTwoPointConicalGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698