OLD | NEW |
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 Loading... |
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 |
OLD | NEW |