diff options
author | 2012-08-09 16:29:12 -0700 | |
---|---|---|
committer | 2012-08-10 17:32:33 -0700 | |
commit | e57f292595bec48f65c8088b00ff6beea01217e9 (patch) | |
tree | 2db8aac9c9056e099ad70d7ce70eb0ac7a8223ae /libs/gui/LayerState.cpp | |
parent | ef7b9c7eac036cc1230c64821039d18f8cbd2c1c (diff) |
make multi-display more real
- displays are represented by a binder on the client side
- c++ clients can now create and modify displays
Change-Id: I203ea5b4beae0819d742ec5171c27568f4e8354b
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r-- | libs/gui/LayerState.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 25c773c3a6..07f62c40e8 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -72,8 +72,9 @@ status_t ComposerState::read(const Parcel& input) { status_t DisplayState::write(Parcel& output) const { + output.writeStrongBinder(token); output.writeStrongBinder(surface->asBinder()); - output.writeInt32(displayId); + output.writeInt32(what); output.writeInt32(layerStack); output.writeInt32(orientation); memcpy(output.writeInplace(sizeof(Rect)), &viewport, sizeof(Rect)); @@ -82,8 +83,9 @@ status_t DisplayState::write(Parcel& output) const { } status_t DisplayState::read(const Parcel& input) { + token = input.readStrongBinder(); surface = interface_cast<ISurfaceTexture>(input.readStrongBinder()); - displayId = input.readInt32(); + what = input.readInt32(); layerStack = input.readInt32(); orientation = input.readInt32(); memcpy(&viewport, input.readInplace(sizeof(Rect)), sizeof(Rect)); |