OSDN Git Service

Make Flattenable not virtual
authorMathias Agopian <mathias@google.com>
Tue, 30 Jul 2013 04:24:40 +0000 (21:24 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 31 Jul 2013 04:19:13 +0000 (21:19 -0700)
commite142428a9c8b9d2380032cd4d7b55ee440fe8770
tree7c55a190ef023bc7aba348d040211901448c13d3
parent1d76781b7aa19611c4045fdf6b848af6c6094e0b
Make Flattenable not virtual

Fallout from the Flattenable change, update all its uses.

Additionnaly, fix/tighten size checks when (un)flatten()ing
things.

Removed the assumption by some flattenables (e.g.: Fence)
that the size passed to them would be exact (it can
and will be larger in some cases)

The code in Parcel is a bit complicated so that we don't
have to expose the full implementation (and also to
keep the code smallish).

Change-Id: I0bf1c8aca2a3128491b4f45510bc46667e566dde
13 files changed:
include/binder/Parcel.h
include/gui/IGraphicBufferProducer.h
include/gui/Sensor.h
include/ui/Fence.h
include/ui/GraphicBuffer.h
include/ui/Region.h
libs/binder/Parcel.cpp
libs/gui/IGraphicBufferProducer.cpp
libs/gui/Sensor.cpp
libs/ui/Fence.cpp
libs/ui/GraphicBuffer.cpp
libs/ui/Region.cpp
opengl/libs/EGL/egl_cache.cpp