commit | 6cf6af0299f7e48bc5bcdcd6a6c0f5a8725e9411 | [log] [tgz] |
---|---|---|
author | Albert Chaulk <achaulk@google.com> | Tue Nov 22 13:52:43 2016 -0500 |
committer | Daniel Nicoara <dnicoara@google.com> | Tue Jan 24 10:59:40 2017 -0500 |
tree | 9570c8effb020bad764b3e5f88339a60ea77543f | |
parent | 146abf38c2442b77dc78a0565ad010376c9d1b69 [diff] [blame] |
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
diff --git a/libs/gui/SurfaceControl.cpp b/libs/gui/SurfaceControl.cpp index 33c1d90..b47e434 100644 --- a/libs/gui/SurfaceControl.cpp +++ b/libs/gui/SurfaceControl.cpp
@@ -107,6 +107,11 @@ 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;