OLD | NEW |
| 1 /* |
| 2 * Copyright 2011 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
1 | 7 |
2 #include "SkTestImageFilters.h" | 8 #include "SkTestImageFilters.h" |
3 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
4 #include "SkDevice.h" | 10 #include "SkDevice.h" |
5 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
6 #include "SkWriteBuffer.h" | 12 #include "SkWriteBuffer.h" |
7 | 13 |
8 // Simple helper canvas that "takes ownership" of the provided device, so that | 14 // Simple helper canvas that "takes ownership" of the provided device, so that |
9 // when this canvas goes out of scope, so will its device. Could be replaced | 15 // when this canvas goes out of scope, so will its device. Could be replaced |
10 // with the following: | 16 // with the following: |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 this->INHERITED::flatten(buffer); | 86 this->INHERITED::flatten(buffer); |
81 buffer.writeScalar(fScale); | 87 buffer.writeScalar(fScale); |
82 } | 88 } |
83 | 89 |
84 #ifndef SK_IGNORE_TO_STRING | 90 #ifndef SK_IGNORE_TO_STRING |
85 void SkDownSampleImageFilter::toString(SkString* str) const { | 91 void SkDownSampleImageFilter::toString(SkString* str) const { |
86 str->appendf("SkDownSampleImageFilter: ("); | 92 str->appendf("SkDownSampleImageFilter: ("); |
87 str->append(")"); | 93 str->append(")"); |
88 } | 94 } |
89 #endif | 95 #endif |
OLD | NEW |