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

Side by Side Diff: src/effects/SkTileImageFilter.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/SkTestImageFilters.cpp ('k') | src/effects/SkXfermodeImageFilter.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 "SkTileImageFilter.h" 8 #include "SkTileImageFilter.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 buffer.readRect(&src); 99 buffer.readRect(&src);
100 buffer.readRect(&dst); 100 buffer.readRect(&dst);
101 return Create(src, dst, common.getInput(0), common.uniqueID()); 101 return Create(src, dst, common.getInput(0), common.uniqueID());
102 } 102 }
103 103
104 void SkTileImageFilter::flatten(SkWriteBuffer& buffer) const { 104 void SkTileImageFilter::flatten(SkWriteBuffer& buffer) const {
105 this->INHERITED::flatten(buffer); 105 this->INHERITED::flatten(buffer);
106 buffer.writeRect(fSrcRect); 106 buffer.writeRect(fSrcRect);
107 buffer.writeRect(fDstRect); 107 buffer.writeRect(fDstRect);
108 } 108 }
109
110 #ifndef SK_IGNORE_TO_STRING
111 void SkTileImageFilter::toString(SkString* str) const {
112 str->appendf("SkTileImageFilter: (");
113 str->append(")");
114 }
115 #endif
OLDNEW
« no previous file with comments | « src/effects/SkTestImageFilters.cpp ('k') | src/effects/SkXfermodeImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698