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

Side by Side Diff: src/effects/SkComposeImageFilter.cpp

Issue 789163006: Add toString methods to SkImageFilter-derived classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make sure leading 0's aren't stripped off colors Created 6 years 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
« no previous file with comments | « src/effects/SkColorFilterImageFilter.cpp ('k') | src/effects/SkDisplacementMapEffect.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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkComposeImageFilter.h" 9 #include "SkComposeImageFilter.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 22 matching lines...) Expand all
33 SkImageFilter* inner = getInput(1); 33 SkImageFilter* inner = getInput(1);
34 34
35 SkIRect tmp; 35 SkIRect tmp;
36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm, dst); 36 return inner->filterBounds(src, ctm, &tmp) && outer->filterBounds(tmp, ctm, dst);
37 } 37 }
38 38
39 SkFlattenable* SkComposeImageFilter::CreateProc(SkReadBuffer& buffer) { 39 SkFlattenable* SkComposeImageFilter::CreateProc(SkReadBuffer& buffer) {
40 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 2); 40 SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 2);
41 return SkComposeImageFilter::Create(common.getInput(0), common.getInput(1)); 41 return SkComposeImageFilter::Create(common.getInput(0), common.getInput(1));
42 } 42 }
43
44 #ifndef SK_IGNORE_TO_STRING
45 void SkComposeImageFilter::toString(SkString* str) const {
46 SkImageFilter* outer = getInput(0);
47 SkImageFilter* inner = getInput(1);
48
49 str->appendf("SkComposeImageFilter: (");
50
51 str->appendf("outer: ");
52 outer->toString(str);
53
54 str->appendf("inner: ");
55 inner->toString(str);
56
57 str->appendf(")");
58 }
59 #endif
OLDNEW
« no previous file with comments | « src/effects/SkColorFilterImageFilter.cpp ('k') | src/effects/SkDisplacementMapEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698