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

Side by Side Diff: src/core/SkPaint.cpp

Issue 15697012: Add printing of SkColorFilter-derived classes to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Neaten up a bit Created 7 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
« no previous file with comments | « include/effects/SkColorMatrixFilter.h ('k') | src/effects/SkColorFilters.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 "SkPaint.h" 9 #include "SkPaint.h"
10 #include "SkAnnotation.h" 10 #include "SkAnnotation.h"
(...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2322 SkMaskFilter* maskFilter = this->getMaskFilter(); 2322 SkMaskFilter* maskFilter = this->getMaskFilter();
2323 if (NULL != maskFilter) { 2323 if (NULL != maskFilter) {
2324 str->append("<dt>MaskFilter:</dt><dd>"); 2324 str->append("<dt>MaskFilter:</dt><dd>");
2325 SkDEVCODE(maskFilter->toString(str);) 2325 SkDEVCODE(maskFilter->toString(str);)
2326 str->append("</dd>"); 2326 str->append("</dd>");
2327 } 2327 }
2328 2328
2329 SkColorFilter* colorFilter = this->getColorFilter(); 2329 SkColorFilter* colorFilter = this->getColorFilter();
2330 if (NULL != colorFilter) { 2330 if (NULL != colorFilter) {
2331 str->append("<dt>ColorFilter:</dt><dd>"); 2331 str->append("<dt>ColorFilter:</dt><dd>");
2332 SkDEVCODE(colorFilter->toString(str);)
djsollen 2013/05/22 19:13:50 why does this need SkDEVCODE if it is in a SK_DEVE
robertphillips 2013/05/22 19:29:35 Can't go wrong with belt AND suspenders - done.
2332 str->append("</dd>"); 2333 str->append("</dd>");
2333 } 2334 }
2334 2335
2335 SkRasterizer* rasterizer = this->getRasterizer(); 2336 SkRasterizer* rasterizer = this->getRasterizer();
2336 if (NULL != rasterizer) { 2337 if (NULL != rasterizer) {
2337 str->append("<dt>Rasterizer:</dt><dd>"); 2338 str->append("<dt>Rasterizer:</dt><dd>");
2338 str->append("</dd>"); 2339 str->append("</dd>");
2339 } 2340 }
2340 2341
2341 SkDrawLooper* looper = this->getLooper(); 2342 SkDrawLooper* looper = this->getLooper();
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 if (firstTime) { 2593 if (firstTime) {
2593 *dst = r; 2594 *dst = r;
2594 } else { 2595 } else {
2595 dst->join(r); 2596 dst->join(r);
2596 } 2597 }
2597 } else { 2598 } else {
2598 break; 2599 break;
2599 } 2600 }
2600 } 2601 }
2601 } 2602 }
OLDNEW
« no previous file with comments | « include/effects/SkColorMatrixFilter.h ('k') | src/effects/SkColorFilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698