diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2010-12-08 16:15:33 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2010-12-08 16:25:49 -0800 |
commit | 8a8bcba6421d62a32ffbc3a2461cb978d522dbdc (patch) | |
tree | bb8ef2cfe543ee436a2faa93599c0ac11529ef79 | |
parent | ca545d559ae83b77f092246a390b463ff7b6901d (diff) | |
download | external_webkit-8a8bcba6421d62a32ffbc3a2461cb978d522dbdc.zip external_webkit-8a8bcba6421d62a32ffbc3a2461cb978d522dbdc.tar.gz external_webkit-8a8bcba6421d62a32ffbc3a2461cb978d522dbdc.tar.bz2 |
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
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |