OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 #ifndef PictureRenderer_DEFINED | 8 #ifndef PictureRenderer_DEFINED |
9 #define PictureRenderer_DEFINED | 9 #define PictureRenderer_DEFINED |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 enum BBoxHierarchyType { | 53 enum BBoxHierarchyType { |
54 kNone_BBoxHierarchyType = 0, | 54 kNone_BBoxHierarchyType = 0, |
55 kRTree_BBoxHierarchyType, | 55 kRTree_BBoxHierarchyType, |
56 kTileGrid_BBoxHierarchyType, | 56 kTileGrid_BBoxHierarchyType, |
57 }; | 57 }; |
58 | 58 |
59 // this uses SkPaint::Flags as a base and adds additional flags | 59 // this uses SkPaint::Flags as a base and adds additional flags |
60 enum DrawFilterFlags { | 60 enum DrawFilterFlags { |
61 kNone_DrawFilterFlag = 0, | 61 kNone_DrawFilterFlag = 0, |
62 kBlur_DrawFilterFlag = 0x4000, // toggles between blur and no blur | 62 kBlur_DrawFilterFlag = 0x8000, // toggles between blur and no blur |
63 kHinting_DrawFilterFlag = 0x8000, // toggles between no hinting and norm
al hinting | 63 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor
mal hinting |
64 kSlightHinting_DrawFilterFlag = 0x10000, // toggles between slight and n
ormal hinting | 64 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n
ormal hinting |
65 kAAClip_DrawFilterFlag = 0x20000, // toggles between soft and hard clip | 65 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip |
66 }; | 66 }; |
67 | 67 |
68 SK_COMPILE_ASSERT(!(kBlur_DrawFilterFlag & SkPaint::kAllFlags), blur_flag_mu
st_be_greater); | 68 SK_COMPILE_ASSERT(!(kBlur_DrawFilterFlag & SkPaint::kAllFlags), blur_flag_mu
st_be_greater); |
69 SK_COMPILE_ASSERT(!(kHinting_DrawFilterFlag & SkPaint::kAllFlags), | 69 SK_COMPILE_ASSERT(!(kHinting_DrawFilterFlag & SkPaint::kAllFlags), |
70 hinting_flag_must_be_greater); | 70 hinting_flag_must_be_greater); |
71 SK_COMPILE_ASSERT(!(kSlightHinting_DrawFilterFlag & SkPaint::kAllFlags), | 71 SK_COMPILE_ASSERT(!(kSlightHinting_DrawFilterFlag & SkPaint::kAllFlags), |
72 slight_hinting_flag_must_be_greater); | 72 slight_hinting_flag_must_be_greater); |
73 | 73 |
74 /** | 74 /** |
75 * Called with each new SkPicture to render. | 75 * Called with each new SkPicture to render. |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 typedef PictureRenderer INHERITED; | 547 typedef PictureRenderer INHERITED; |
548 }; | 548 }; |
549 | 549 |
550 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 550 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
551 extern PictureRenderer* CreatePictureCloneRenderer(); | 551 extern PictureRenderer* CreatePictureCloneRenderer(); |
552 | 552 |
553 } | 553 } |
554 | 554 |
555 #endif // PictureRenderer_DEFINED | 555 #endif // PictureRenderer_DEFINED |
OLD | NEW |