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

Merge commit 'f904be1659fcc88dd80be2c900ffc89e77b1c737' into eclair-plus-aosp

* commit 'f904be1659fcc88dd80be2c900ffc89e77b1c737':
  disable high-quality filtering during scrolling, until I can cached the scaled images.
This commit is contained in:
Mike Reed
2010-01-25 06:24:35 -08:00
committed by Android Git Automerger

View File

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