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

Side by Side Diff: tools/PictureRenderer.h

Issue 18110012: Add canFilterMaskGPU & filterMaskGPU to SkMaskFilter (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: added comments & fixed nits 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
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 kBlur_DrawFilterFlag = 0x8000, // toggles between blur and no blur 62 kMaskFilter_DrawFilterFlag = 0x8000, // toggles on/off mask filters (e.g ., blurs)
63 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting 63 kHinting_DrawFilterFlag = 0x10000, // toggles between no hinting and nor mal hinting
64 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting 64 kSlightHinting_DrawFilterFlag = 0x20000, // toggles between slight and n ormal hinting
65 kAAClip_DrawFilterFlag = 0x40000, // 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(!(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.
76 */ 76 */
77 virtual void init(SkPicture* pict); 77 virtual void init(SkPicture* pict);
78 78
(...skipping 467 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
« src/core/SkMaskFilter.cpp ('K') | « tests/BlurTest.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698