Move extension_test_message_listener to extensions.
[chromium-blink-merge.git] / skia / ext / paint_simplifier.h
blob0eff833727dad8a57fb187aa44987ac809125747
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SKIA_EXT_PAINT_SIMPLIFIER_H
6 #define SKIA_EXT_PAINT_SIMPLIFIER_H
8 #include "base/values.h"
9 #include "third_party/skia/include/core/SkDrawFilter.h"
11 class SkPaint;
13 namespace skia {
16 When installed on a SkCanvas, reduces the quality of all draws
17 to that canvas. This improves rasterization speed during flings.
18 We turn off blurs, filters, and antialiasing *except for* text.
20 class SK_API PaintSimplifier : public SkDrawFilter {
21 public:
22 PaintSimplifier();
23 virtual ~PaintSimplifier();
24 virtual bool filter(SkPaint*, Type) OVERRIDE;
26 private:
27 typedef SkDrawFilter INHERITED;
30 } // namespace skia
32 #endif // SKIA_EXT_PAINT_SIMPLIFIER_H