Index: skia/ext/paint_simplifier.cc |
diff --git a/skia/ext/paint_simplifier.cc b/skia/ext/paint_simplifier.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1b842a400c5b26b76a5e78c921631e0bf0e4b33c |
--- /dev/null |
+++ b/skia/ext/paint_simplifier.cc |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "skia/ext/paint_simplifier.h" |
+#include "third_party/skia/include/core/SkPaint.h" |
+ |
+namespace skia { |
+ |
+PaintSimplifier::PaintSimplifier() |
+ : INHERITED() { |
+ |
+} |
+ |
+PaintSimplifier::~PaintSimplifier() { |
+ |
+} |
+ |
+bool PaintSimplifier::filter(SkPaint* paint, Type type) { |
+ |
+ paint->setAntiAlias(false); |
+ paint->setFilterBitmap(false); |
+ paint->setMaskFilter(NULL); |
+ |
+ // Uncomment this line to shade simplified tiles pink during debugging. |
+ //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
|
+} |
+ |
+ |
+} // namespace skia |
+ |
+ |