summaryrefslogtreecommitdiffstats
path: root/awt
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-07-15 17:29:15 -0700
committerJamie Gennis <jgennis@google.com>2010-07-16 13:03:15 -0700
commitaca4e2287939b4ce3d9e9aced64c5c9641333503 (patch)
tree3193d623b63d097374b2fdd1f800d5f7fe85a5b4 /awt
parent9e2d6e976b114f42142ba74a3c902b9c073c5629 (diff)
downloadframeworks_native-aca4e2287939b4ce3d9e9aced64c5c9641333503.zip
frameworks_native-aca4e2287939b4ce3d9e9aced64c5c9641333503.tar.gz
frameworks_native-aca4e2287939b4ce3d9e9aced64c5c9641333503.tar.bz2
Re-use existing Surface objects when reading them from parcels.
This change adds a process-global cache of previously deserialized Surface objects so that if a Surface object wrapping the same ISurface gets received again the same Surface can be used. This is important because the 'tail' pointer in the SharedBufferClient is stored only on the client side, and needs to be the same for all the Surface objects wrapping an ISurface instance. This solves the problem by making there only be one Surface object wrapping an ISurface per process. Change-Id: I4bf0b8787885c56277622fca053022d2bb638902
Diffstat (limited to 'awt')
0 files changed, 0 insertions, 0 deletions