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

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

Issue 12207157: New class to simplify rasterization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | skia/ext/paint_simplifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
25
26 private:
27 typedef SkDrawFilter INHERITED;
28 };
29
30 } // namespace skia
31
32 #endif // SKIA_EXT_PAINT_SIMPLIFIER_H
33
OLDNEW
« no previous file with comments | « no previous file | skia/ext/paint_simplifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698