This source file includes following definitions.
- filter
#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) {
if (type != kText_Type) {
paint->setAntiAlias(false);
}
paint->setSubpixelText(false);
paint->setLCDRenderText(false);
paint->setFilterBitmap(false);
paint->setMaskFilter(NULL);
return true;
}
}