OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 The Android Open Source Project | 3 * Copyright 2011 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 | 9 |
10 #ifndef SkDrawLooper_DEFINED | 10 #ifndef SkDrawLooper_DEFINED |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 */ | 61 */ |
62 virtual bool canComputeFastBounds(const SkPaint& paint); | 62 virtual bool canComputeFastBounds(const SkPaint& paint); |
63 virtual void computeFastBounds(const SkPaint& paint, | 63 virtual void computeFastBounds(const SkPaint& paint, |
64 const SkRect& src, SkRect* dst); | 64 const SkRect& src, SkRect* dst); |
65 | 65 |
66 SkDEVCODE(virtual void toString(SkString* str) const = 0;) | 66 SkDEVCODE(virtual void toString(SkString* str) const = 0;) |
67 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper) | 67 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper) |
68 | 68 |
69 protected: | 69 protected: |
70 SkDrawLooper() {} | 70 SkDrawLooper() {} |
71 SkDrawLooper(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} | 71 SkDrawLooper(SkReadBuffer& buffer) : INHERITED(buffer) {} |
72 | 72 |
73 private: | 73 private: |
74 typedef SkFlattenable INHERITED; | 74 typedef SkFlattenable INHERITED; |
75 }; | 75 }; |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |