OSDN Git Service

Break dependency of libui on libbinder
authorMathias Agopian <mathias@google.com>
Tue, 7 Feb 2017 00:34:41 +0000 (16:34 -0800)
committerMathias Agopian <mathias@google.com>
Wed, 8 Feb 2017 23:51:42 +0000 (23:51 +0000)
commite1f5e6fd7ad07778fa4381059852a94567d77dfc
treed21543bb6ac6bc38fd6ed4668a8d1a894e7846f1
parentebdddc9a3ea71b409f04e0d51eef69682a5542f8
Break dependency of libui on libbinder

the dependency existed only because of
HdrCapabilities, which inherited from
Parcelable, instead of LightFlatenable<>.

An added benefit is that HdrCapabilities isn’t
virtual anymore.

Also, since the dtor is not trivial, move it to
the cpp, to avoid inlining.

Fix-up includes.

Test: built and booted device

Change-Id: Iaf9c4ef9dcc5cb28b29f79d9f7d8f21800223eb8
include/ui/HdrCapabilities.h
libs/gui/ISurfaceComposer.cpp
libs/ui/Android.bp
libs/ui/HdrCapabilities.cpp