OSDN Git Service

Use resize, not reserve
authorJohn Reck <jreck@google.com>
Wed, 30 Apr 2014 21:19:56 +0000 (14:19 -0700)
committerJohn Reck <jreck@google.com>
Wed, 30 Apr 2014 21:19:56 +0000 (14:19 -0700)
commit52622668f91c69ec718b356d2e0f8555fc88435f
tree85853f422b9fca99135bc08c2c1d5bc2be47a5c6
parent406c51b360cb224e2cb4773eabd04d05d29793f8
Use resize, not reserve

Reserve ensures the underlying buffer is the correct size, but
iterating across it is not necessarily valid. Use resize() instead
to ensure that the iterator access is valid

Change-Id: I35ff5f4416bb94cf4ce2c6acf72ffd17ab3e523a
libs/hwui/RenderNode.cpp