| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 * is expected to have the following behavior. Given the parent paint and | 57 * is expected to have the following behavior. Given the parent paint and |
| 58 * the parent's bounding rect the subclass must fill in and return the | 58 * the parent's bounding rect the subclass must fill in and return the |
| 59 * storage rect, where the storage rect is with the union of the src rect | 59 * storage rect, where the storage rect is with the union of the src rect |
| 60 * and the looper's bounding rect. | 60 * and the looper's bounding rect. |
| 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 | 68 |
| 68 protected: | 69 protected: |
| 69 SkDrawLooper() {} | 70 SkDrawLooper() {} |
| 70 SkDrawLooper(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} | 71 SkDrawLooper(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 typedef SkFlattenable INHERITED; | 74 typedef SkFlattenable INHERITED; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 #endif | 77 #endif |
| OLD | NEW |