diff options
| author | 2016-11-22 13:52:43 -0500 | |
|---|---|---|
| committer | 2017-01-24 10:59:40 -0500 | |
| commit | 6cf6af0299f7e48bc5bcdcd6a6c0f5a8725e9411 (patch) | |
| tree | 9570c8effb020bad764b3e5f88339a60ea77543f /libs/gui/SurfaceControl.cpp | |
| parent | 146abf38c2442b77dc78a0565ad010376c9d1b69 (diff) | |
VR: Add API to plumb surface type and owner through to SurfaceFlinger
This is a cherry-pick of
https://googleplex-android-review.git.corp.google.com/c/1648886/
Test: None
Bug: None
Change-Id: I338c84c2576ab85fa4f6d8e759c9e7ce912cdd61
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
| -rw-r--r-- | libs/gui/SurfaceControl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 33c1d906e6..b47e434561 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp @@ -107,6 +107,11 @@ status_t SurfaceControl::setLayer(uint32_t layer) { if (err < 0) return err; return mClient->setLayer(mHandle, layer); } +status_t SurfaceControl::setLayerInfo(uint32_t type, uint32_t appid) { + status_t err = validate(); + if (err < 0) return err; + return mClient->setLayerInfo(mHandle, type, appid); +} status_t SurfaceControl::setPosition(float x, float y) { status_t err = validate(); if (err < 0) return err; |