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"
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
{
23 virtual ~PaintSimplifier();
24 virtual bool filter(SkPaint
*, Type
) OVERRIDE
;
27 typedef SkDrawFilter INHERITED
;
32 #endif // SKIA_EXT_PAINT_SIMPLIFIER_H