summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-24 22:39:21 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-25 20:29:11 +0000
commitc0f52aabe2ab8c859c4f3a790f6c8b0ec40107ba (patch)
tree983817e6ade1593666f32560c2146de767e44bff /libs
parent2b77c3e473c4347e34d2fae9dcf32366fd629b33 (diff)
downloadframeworks_native-c0f52aabe2ab8c859c4f3a790f6c8b0ec40107ba.zip
frameworks_native-c0f52aabe2ab8c859c4f3a790f6c8b0ec40107ba.tar.gz
frameworks_native-c0f52aabe2ab8c859c4f3a790f6c8b0ec40107ba.tar.bz2
Revert "Revert "Compatibility work around for bad graphics driver dependency.""
This reverts commit 38b657265ccc5ae45bd7860a68b0d9373b47a2f3. Change-Id: If350d73839f1ed5e01af4299d44837e619d14d66
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/SurfaceComposerClient.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp
index 8029600..267359a 100644
--- a/libs/gui/SurfaceComposerClient.cpp
+++ b/libs/gui/SurfaceComposerClient.cpp
@@ -583,6 +583,15 @@ void SurfaceComposerClient::unblankDisplay(const sp<IBinder>& token) {
ComposerService::getComposerService()->unblank(token);
}
+// TODO: Remove me. Do not use.
+// This is a compatibility shim for one product whose drivers are depending on
+// this legacy function (when they shouldn't).
+status_t SurfaceComposerClient::getDisplayInfo(
+ int32_t displayId, DisplayInfo* info)
+{
+ return getDisplayInfo(getBuiltInDisplay(displayId), info);
+}
+
// ----------------------------------------------------------------------------
ScreenshotClient::ScreenshotClient()