From 439863f3b3e725b5de1cba4940a21900369961c0 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Tue, 28 Jun 2011 19:09:31 -0700 Subject: SF transactions are now O(1) wrt IPC instead of O(N). Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43 --- libs/gui/LayerState.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/gui/LayerState.cpp') diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 01c4c7ebfe84..87901e87f706 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -17,6 +17,7 @@ #include #include #include +#include namespace android { @@ -58,4 +59,14 @@ status_t layer_state_t::read(const Parcel& input) return NO_ERROR; } +status_t ComposerState::write(Parcel& output) const { + output.writeStrongBinder(client->asBinder()); + return state.write(output); +} + +status_t ComposerState::read(const Parcel& input) { + client = interface_cast(input.readStrongBinder()); + return state.read(input); +} + }; // namespace android -- cgit v1.2.3-59-g8ed1b