diff options
| author | 2018-08-08 15:58:15 -0700 | |
|---|---|---|
| committer | 2018-11-14 17:47:09 -0800 | |
| commit | 2c358bf8206d591a4707d33fd2ca45f0dc5360f7 (patch) | |
| tree | 302e722c58b4f30db625dfe0fd1e2f2f04ab2661 /libs/gui/LayerState.cpp | |
| parent | 7b0e9118785103c763042e56642e1234935e1e58 (diff) | |
Add setInputWindowInfo to SurfaceComposerClient::Transaction
In preparation for passing input through SurfaceFlinger to the InputDispatcher.
Bug: 80101428
Bug: 113136004
Bug: 111440400
Change-Id: I5f67fbb9894136bfb16c718ffe1cc23a02f3414d
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index 7b71b39ce0..9f30060467 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -50,6 +50,9 @@ status_t layer_state_t::write(Parcel& output) const output.writeFloat(color.r); output.writeFloat(color.g); output.writeFloat(color.b); +#ifndef NO_INPUT + inputInfo.write(output); +#endif output.write(transparentRegion); output.writeUint32(transform); output.writeBool(transformToDisplayInverse); @@ -120,6 +123,11 @@ status_t layer_state_t::read(const Parcel& input) color.r = input.readFloat(); color.g = input.readFloat(); color.b = input.readFloat(); + +#ifndef NO_INPUT + inputInfo = InputWindowInfo::read(input); +#endif + input.read(transparentRegion); transform = input.readUint32(); transformToDisplayInverse = input.readBool(); @@ -343,6 +351,13 @@ void layer_state_t::merge(const layer_state_t& other) { listenerCallbacks = other.listenerCallbacks; } +#ifndef NO_INPUT + if (other.what & eInputInfoChanged) { + what |= eInputInfoChanged; + inputInfo = other.inputInfo; + } +#endif + if ((other.what & what) != other.what) { ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? " "other.what=0x%X what=0x%X", |