OSDN Git Service

fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes...
authorMathias Agopian <mathias@google.com>
Wed, 14 Apr 2010 23:43:44 +0000 (16:43 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 14 Apr 2010 23:43:44 +0000 (16:43 -0700)
commit967dce306267109a6e8aec408b65609ac5642a03
treebf740531722b83fd0c5aba35f203c1ad1e80df43
parentdb281311a0e957ba989509cf11f2085b4db12074
fix [2594950] Flash: Zooming in on some content crashes the Nexus One and causes it to reboot (runtime restart)

We now limit the size of the surface to the maximum size supported by the GPU.
On Nexus One this will 2048 -- it could be different on other devices.
Surface creation fails if the limit is exceeded.

Change-Id: I9ecfc2e9c58c9e283782b61ebfc6b590f71df785
libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp
libs/surfaceflinger/DisplayHardware/DisplayHardware.h
libs/surfaceflinger/Layer.cpp