am e1fd0240: Merge change 24551 into eclair
Merge commit 'e1fd02400d69c059db2cc6299c893eba4096cc1d' into eclair-plus-aosp * commit 'e1fd02400d69c059db2cc6299c893eba4096cc1d': default dithering to ON (cheap, looks good)
This commit is contained in:
@@ -193,6 +193,14 @@ public class NinePatchDrawable extends Drawable {
|
||||
getPaint().setDither(dither);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFilterBitmap(boolean filter) {
|
||||
// at the moment, we see no quality improvement, but a big slowdown
|
||||
// with filtering, so ignore this call for now
|
||||
//
|
||||
//getPaint().setFilterBitmap(filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs)
|
||||
throws XmlPullParserException, IOException {
|
||||
@@ -247,6 +255,8 @@ public class NinePatchDrawable extends Drawable {
|
||||
public Paint getPaint() {
|
||||
if (mPaint == null) {
|
||||
mPaint = new Paint();
|
||||
// dithering helps a lot, and is pretty cheap, so default on
|
||||
mPaint.setDither(true);
|
||||
}
|
||||
return mPaint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user