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

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

Issue 12210081: Paint low-res tiles without expensive filters. (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
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 #include "skia/ext/paint_simplifier.h"
6 #include "third_party/skia/include/core/SkPaint.h"
7
8 namespace skia {
9
10 PaintSimplifier::PaintSimplifier()
11 : INHERITED() {
12
13 }
14
15 PaintSimplifier::~PaintSimplifier() {
16
17 }
18
19 bool PaintSimplifier::filter(SkPaint* paint, Type type) {
20
21 paint->setAntiAlias(false);
22 paint->setFilterBitmap(false);
23 paint->setMaskFilter(NULL);
24
25 // Uncomment this line to shade simplified tiles pink during debugging.
26 //paint->setColor(SkColorSetRGB(255, 127, 127));
reed1 2013/02/08 14:15:26 need to return true so that drawing will continue.
Tom Hudson 2013/02/08 14:47:39 Done. Thanks, that was the bug that was manifesti
27 }
28
29
30 } // namespace skia
31
32
OLDNEW
« skia/ext/paint_simplifier.h ('K') | « skia/ext/paint_simplifier.h ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698