summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-09-04 19:30:46 -0700
committerMathias Agopian <mathias@google.com>2012-09-04 19:30:46 -0700
commit00e8c7a88a5b9c4104a71013a713acd3e4d3b77b (patch)
tree71fd225e0f7f8dd1a909c64c97718989aa8f06c2 /include/gui
parentda8d0a5c0cf9d41915d3b106cad4aaec3e767c11 (diff)
downloadframeworks_native-00e8c7a88a5b9c4104a71013a713acd3e4d3b77b.zip
frameworks_native-00e8c7a88a5b9c4104a71013a713acd3e4d3b77b.tar.gz
frameworks_native-00e8c7a88a5b9c4104a71013a713acd3e4d3b77b.tar.bz2
display projection API now has a single function instead of 3
Change-Id: I9bf46d372b77d547486d4bbe6f1953ec8c65e98f
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/SurfaceComposerClient.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h
index a143d81..57c72c9 100644
--- a/include/gui/SurfaceComposerClient.h
+++ b/include/gui/SurfaceComposerClient.h
@@ -121,11 +121,21 @@ public:
const sp<ISurfaceTexture>& surface);
static void setDisplayLayerStack(const sp<IBinder>& token,
uint32_t layerStack);
- static void setDisplayOrientation(const sp<IBinder>& token,
- uint32_t orientation);
- static void setDisplayViewport(const sp<IBinder>& token,
- const Rect& viewport);
- static void setDisplayFrame(const sp<IBinder>& token, const Rect& frame);
+
+ /* setDisplayProjection() defines the projection of layer stacks
+ * to a given display.
+ *
+ * - orientation defines the display's orientation.
+ * - layerStackRect defines which area of the window manager coordinate
+ * space will be used.
+ * - displayRect defines where on the display will layerStackRect be
+ * mapped to. displayRect is specified post-orientation, that is
+ * it uses the orientation seen by the end-user.
+ */
+ static void setDisplayProjection(const sp<IBinder>& token,
+ uint32_t orientation,
+ const Rect& layerStackRect,
+ const Rect& displayRect);
private:
virtual void onFirstRef();