Merge "disable high-quality filtering during scrolling, until I can cached the scaled images." into eclair

This commit is contained in:
Mike Reed
2010-01-25 06:19:17 -08:00
committed by Android (Google) Code Review

View File

@ -1646,6 +1646,8 @@ final class WebViewCore {
final DrawFilter mZoomFilter =
new PaintFlagsDrawFilter(ZOOM_BITS, Paint.LINEAR_TEXT_FLAG);
final DrawFilter mScrollFilter =
new PaintFlagsDrawFilter(SCROLL_BITS, 0);
/* package */ void drawContentPicture(Canvas canvas, int color,
boolean animatingZoom,
@ -1654,7 +1656,7 @@ final class WebViewCore {
if (animatingZoom) {
df = mZoomFilter;
} else if (animatingScroll) {
df = null;
df = mScrollFilter;
}
canvas.setDrawFilter(df);
boolean tookTooLong = nativeDrawContent(canvas, color);