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, | |
86 }; | 88 }; |
89 static const int kBBoxHierarchyTypeCount = kLast_BBoxHierarchyType + 1; | |
reed1
2014/03/07 13:39:49
stylistically, I'm not a fan of these in public he
mtklein
2014/03/07 13:41:15
If you can get away with it, I'd recommend using o
iancottrell
2014/03/07 14:52:47
Removed the count.
kLast seemed to be the standard
| |
87 | 90 |
88 // this uses SkPaint::Flags as a base and adds additional flags | 91 // this uses SkPaint::Flags as a base and adds additional flags |
89 enum DrawFilterFlags { | 92 enum DrawFilterFlags { |
90 kNone_DrawFilterFlag = 0, | 93 kNone_DrawFilterFlag = 0, |
91 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting | 94 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting |
92 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting | 95 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting |
93 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip | 96 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip |
94 kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e. g., blurs) | 97 kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e. g., blurs) |
95 }; | 98 }; |
96 | 99 |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
611 | 614 |
612 typedef PictureRenderer INHERITED; | 615 typedef PictureRenderer INHERITED; |
613 }; | 616 }; |
614 | 617 |
615 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 618 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
616 extern PictureRenderer* CreatePictureCloneRenderer(); | 619 extern PictureRenderer* CreatePictureCloneRenderer(); |
617 | 620 |
618 } | 621 } |
619 | 622 |
620 #endif // PictureRenderer_DEFINED | 623 #endif // PictureRenderer_DEFINED |
OLD | NEW |