summaryrefslogtreecommitdiff
path: root/libs/ui/InputReader.cpp
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2010-07-15 17:29:15 -0700
committer Jamie Gennis <jgennis@google.com> 2010-07-16 13:03:15 -0700
commitaca4e2287939b4ce3d9e9aced64c5c9641333503 (patch)
tree3193d623b63d097374b2fdd1f800d5f7fe85a5b4 /libs/ui/InputReader.cpp
parent9e2d6e976b114f42142ba74a3c902b9c073c5629 (diff)
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 'libs/ui/InputReader.cpp')
0 files changed, 0 insertions, 0 deletions