Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: tools/PictureRenderer.h

Issue 18386006: add extra flag (currently unused) for high quality downsampling (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkPaint.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 kMaskFilter_DrawFilterFlag = 0x8000, // toggles on/off mask filters (e.g ., blurs)
63 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting 62 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting
64 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting 63 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting
65 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip 64 kAAClip_DrawFilterFlag = 0x40000, // toggles between soft and hard clip
65 kMaskFilter_DrawFilterFlag = 0x80000, // toggles on/off mask filters (e. g., blurs)
66 }; 66 };
67 67
68 SK_COMPILE_ASSERT(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags), maskfi lter_flag_must_be_greater); 68 SK_COMPILE_ASSERT(!(kMaskFilter_DrawFilterFlag & SkPaint::kAllFlags), maskfi lter_flag_must_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
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
OLDNEW
« no previous file with comments | « include/core/SkPaint.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698