| 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 SkDrawFilter_DEFINED | 10 #ifndef SkDrawFilter_DEFINED |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 enum Type { | 28 enum Type { |
| 29 kPaint_Type, | 29 kPaint_Type, |
| 30 kPoint_Type, | 30 kPoint_Type, |
| 31 kLine_Type, | 31 kLine_Type, |
| 32 kBitmap_Type, | 32 kBitmap_Type, |
| 33 kRect_Type, | 33 kRect_Type, |
| 34 kRRect_Type, | 34 kRRect_Type, |
| 35 kOval_Type, | 35 kOval_Type, |
| 36 kPath_Type, | 36 kPath_Type, |
| 37 kText_Type, | 37 kText_Type, |
| 38 kImage_Type, | |
| 39 }; | 38 }; |
| 40 | 39 |
| 41 enum { | 40 enum { |
| 42 kTypeCount = kImage_Type + 1 | 41 kTypeCount = kText_Type + 1 |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 /** | 44 /** |
| 46 * Called with the paint that will be used to draw the specified type. | 45 * Called with the paint that will be used to draw the specified type. |
| 47 * The implementation may modify the paint as they wish. If filter() | 46 * The implementation may modify the paint as they wish. If filter() |
| 48 * returns false, the draw will be skipped. | 47 * returns false, the draw will be skipped. |
| 49 */ | 48 */ |
| 50 virtual bool filter(SkPaint*, Type) = 0; | 49 virtual bool filter(SkPaint*, Type) = 0; |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 typedef SkRefCnt INHERITED; | 52 typedef SkRefCnt INHERITED; |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 #endif | 55 #endif |
| OLD | NEW |