From 8a8bcba6421d62a32ffbc3a2461cb978d522dbdc Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Wed, 8 Dec 2010 16:15:33 -0800 Subject: When the tile get painted, it should be cleared first. This will clear the residue for the areas not in viewport, either the area belongs to the tiles inside or outside the viewport. In another word, area in the viewport will be redraw anyway, but area not in the viewport will get an invalidate only, that is why we need to clear the content when invalidating. bug: 3253934 Change-Id: I29b88c20cb5e68d6c0f917e7fa9fb22b395d6321 --- WebCore/platform/graphics/android/BaseTile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 4bee626..0f4ab4f 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -227,7 +227,7 @@ void BaseTile::paintBitmap() SkCanvas* canvas = texture->canvas(); canvas->save(); - + canvas->drawARGB(0, 0, 0, 0, SkXfermode::kClear_Mode); canvas->scale(scale, scale); canvas->translate(-x * w, -y * h); -- cgit v1.1