From e57f292595bec48f65c8088b00ff6beea01217e9 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 9 Aug 2012 16:29:12 -0700 Subject: 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 --- libs/gui/LayerState.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libs/gui/LayerState.cpp') 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(input.readStrongBinder()); - displayId = input.readInt32(); + what = input.readInt32(); layerStack = input.readInt32(); orientation = input.readInt32(); memcpy(&viewport, input.readInplace(sizeof(Rect)), sizeof(Rect)); -- cgit v1.2.3-59-g8ed1b