Merge "disable high-quality filtering during scrolling, until I can cached the scaled images." into eclair
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user