summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Michael Lentine <mlentine@google.com> 2014-07-18 15:34:25 -0700
committer Michael Lentine <mlentine@google.com> 2014-07-30 14:36:25 -0700
commit47e45405d1533aa73307014f7bf371e118695cf3 (patch)
treecabc47d4088308ed27b799d998a6d4a705e18058 /libs/gui/LayerState.cpp
parent1f6078aef71b1d3f080cd565adbec350c71088dd (diff)
Allow for resizing of Virtual Displays.
Modify SurfaceFlinger to use VirtualDisplaySurface in all cases when a virtual display is used. Add functionality in VirtualDisplaySurface to resize the buffers aquired in the QueueBufferOutput. Add transaction support in SurfaceFlinger for resize. Add the modification of the size in DisplayDevice. Change-Id: Iae7e3556dc06fd18d470adbbd76f7255f6e6dd6b Tested: None
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index acdbd77161..e95d8b6c42 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -81,6 +81,8 @@ status_t DisplayState::write(Parcel& output) const {
output.writeInt32(orientation);
output.write(viewport);
output.write(frame);
+ output.writeInt32(width);
+ output.writeInt32(height);
return NO_ERROR;
}
@@ -92,6 +94,8 @@ status_t DisplayState::read(const Parcel& input) {
orientation = input.readInt32();
input.read(viewport);
input.read(frame);
+ width = input.readInt32();
+ height = input.readInt32();
return NO_ERROR;
}