diff options
| author | 2016-03-24 12:19:32 -0700 | |
|---|---|---|
| committer | 2016-04-17 20:07:34 -0700 | |
| commit | c3574f7b0141c69fdca25ccafb80ff334462f9a3 (patch) | |
| tree | 7830169cb6639cbd8d612b34d27a605362e41c40 /libs/gui/LayerState.cpp | |
| parent | 47babb84bcd2dcf4943687e33595ba58dc0dbe28 (diff) | |
Add setOverrideScalingMode to SurfaceControl
Provide an interface for the window manager to override
the client specified scaling mode. This makes it possible
for the window manager to force windows to be scaleable
for animations, etc, even when a resize is pending.
Bug: 27891386
Change-Id: Ic4aae9917bd6869ee0dbb425979b4e21c68342a3
Diffstat (limited to 'libs/gui/LayerState.cpp')
| -rw-r--r-- | libs/gui/LayerState.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp index e43342e34a..d1c576e4c5 100644 --- a/libs/gui/LayerState.cpp +++ b/libs/gui/LayerState.cpp @@ -41,6 +41,7 @@ status_t layer_state_t::write(Parcel& output) const output.write(finalCrop); output.writeStrongBinder(handle); output.writeUint64(frameNumber); + output.writeInt32(overrideScalingMode); output.write(transparentRegion); return NO_ERROR; } @@ -68,6 +69,7 @@ status_t layer_state_t::read(const Parcel& input) input.read(finalCrop); handle = input.readStrongBinder(); frameNumber = input.readUint64(); + overrideScalingMode = input.readInt32(); input.read(transparentRegion); return NO_ERROR; } |