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

Side by Side Diff: skia/ext/paint_simplifier.h

Issue 12210081: Paint low-res tiles without expensive filters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix filter() return value bug, change low-res scale Created 7 years, 10 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
(Empty)
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.
4
5 #ifndef SKIA_EXT_PAINT_SIMPLIFIER_H
6 #define SKIA_EXT_PAINT_SIMPLIFIER_H
7
8 #include "base/values.h"
9 #include "third_party/skia/include/core/SkDrawFilter.h"
10
11 class SkPaint;
12
13 namespace skia {
14
15 /*
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.
19 */
20 class SK_API PaintSimplifier : public SkDrawFilter {
21 public:
22 PaintSimplifier();
23 virtual ~PaintSimplifier();
24 virtual bool filter(SkPaint*, Type) OVERRIDE;
Sami 2013/02/08 15:05:47 We should name arguments even if its redundant.
25
26 private:
27 typedef SkDrawFilter INHERITED;
28 };
29
30 } // namespace skia
31
32 #endif // SKIA_EXT_PAINT_SIMPLIFIER_H
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698