diff options
| author | 2011-06-29 16:15:56 -0700 | |
|---|---|---|
| committer | 2011-06-29 16:15:56 -0700 | |
| commit | 272aaa382f95c38221739f2287c29e414523a5cc (patch) | |
| tree | 53b22ed4bd672af3edc9fc9d3e1c5d63661a37b1 /libs/gui/LayerState.cpp | |
| parent | 5231b0af515db51c722d4764ecf9412c145c93b6 (diff) | |
| parent | 439863f3b3e725b5de1cba4940a21900369961c0 (diff) | |
Merge "SF transactions are now O(1) wrt IPC instead of O(N)."
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <utils/Errors.h> #include <binder/Parcel.h> #include <private/surfaceflinger/LayerState.h> +#include <surfaceflinger/ISurfaceComposerClient.h> 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<ISurfaceComposerClient>(input.readStrongBinder()); + return state.read(input); +} + }; // namespace android |