diff options
author | 2012-11-26 20:26:54 +0000 | |
---|---|---|
committer | 2012-11-26 20:26:54 +0000 | |
commit | 971aca75572ed6e0c5e1cc959173dc58ca7b6b8d (patch) | |
tree | ee8ee93c54512b7815268442bd8faa301b274cbf /gm | |
parent | db3f0fda6899b11e3213c1213165f2d22ad0fb83 (diff) |
change SkDrawFilter::filter to return a bool, where false means don't-draw
Review URL: https://codereview.appspot.com/6851111
git-svn-id: http://skia.googlecode.com/svn/trunk@6551 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gmmain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index d4d2154835..ebafb8db81 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -155,12 +155,13 @@ struct ConfigData { class BWTextDrawFilter : public SkDrawFilter { public: - virtual void filter(SkPaint*, Type) SK_OVERRIDE; + virtual bool filter(SkPaint*, Type) SK_OVERRIDE; }; -void BWTextDrawFilter::filter(SkPaint* p, Type t) { +bool BWTextDrawFilter::filter(SkPaint* p, Type t) { if (kText_Type == t) { p->setAntiAlias(false); } + return true; } struct PipeFlagComboData { |