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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #if SK_SUPPORT_GPU | 76 #if SK_SUPPORT_GPU |
77 kGPU_DeviceType, | 77 kGPU_DeviceType, |
78 #endif | 78 #endif |
79 }; | 79 }; |
80 | 80 |
81 enum BBoxHierarchyType { | 81 enum BBoxHierarchyType { |
82 kNone_BBoxHierarchyType = 0, | 82 kNone_BBoxHierarchyType = 0, |
83 kQuadTree_BBoxHierarchyType, | 83 kQuadTree_BBoxHierarchyType, |
84 kRTree_BBoxHierarchyType, | 84 kRTree_BBoxHierarchyType, |
85 kTileGrid_BBoxHierarchyType, | 85 kTileGrid_BBoxHierarchyType, |
86 | |
87 kLast_BBoxHierarchyType = kTileGrid_BBoxHierarchyType, | |
88 }; | 86 }; |
89 | 87 |
90 // this uses SkPaint::Flags as a base and adds additional flags | 88 // this uses SkPaint::Flags as a base and adds additional flags |
91 enum DrawFilterFlags { | 89 enum DrawFilterFlags { |
92 kNone_DrawFilterFlag = 0, | 90 kNone_DrawFilterFlag = 0, |
93 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor
mal hinting | 91 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor
mal hinting |
94 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n
ormal hinting | 92 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n
ormal hinting |
95 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip | 93 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip |
96 kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e.
g., blurs) | 94 kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e.
g., blurs) |
97 }; | 95 }; |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 611 |
614 typedef PictureRenderer INHERITED; | 612 typedef PictureRenderer INHERITED; |
615 }; | 613 }; |
616 | 614 |
617 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 615 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
618 extern PictureRenderer* CreatePictureCloneRenderer(); | 616 extern PictureRenderer* CreatePictureCloneRenderer(); |
619 | 617 |
620 } | 618 } |
621 | 619 |
622 #endif // PictureRenderer_DEFINED | 620 #endif // PictureRenderer_DEFINED |
OLD | NEW |