OSDN Git Service

Fix ANR when hitting very large layers
authorNicolas Roard <nicolasroard@google.com>
Fri, 9 Dec 2011 00:50:32 +0000 (16:50 -0800)
committerNicolas Roard <nicolasroard@google.com>
Fri, 9 Dec 2011 00:50:32 +0000 (16:50 -0800)
commit900fb9639aa20ef442a9f542f1da52fea667589c
tree85dcacbb70d49878306c883dd9fbb725c403e6a6
parente50c6da15806ff91b5e9298cb303f2b8f9ae6b35
Fix ANR when hitting very large layers

In some cases we have to deal with very large layers (e.g. 130k x 56k).
We do clip them at draw time, but at prepare time we will generate *all* the
needed BaseTile objects. Those are small, but when you have to allocated
100k of them and then iterate, it does not make things fast, and we can
ANR (and sometimes recover later).

bug:5466840
Change-Id: I01c64ed1014fa719b619609fd2bd24126dc9056e
Source/WebCore/platform/graphics/android/PaintedSurface.cpp