Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |