diff options
author | Robert Burns <burnsra@gmail.com> | 2012-11-23 11:54:40 -0500 |
---|---|---|
committer | Robert Burns <burnsra@gmail.com> | 2012-11-23 11:54:40 -0500 |
commit | f2108ee9f769c7c43aa42d7ba6e7989d891e3eb5 (patch) | |
tree | 68ca7fcb7618ea7e1f5ea1c57d09bba4519470a9 /libs/gui | |
parent | 11b423f953b0fae673231cc4b30caa992d4f7b8b (diff) | |
download | frameworks_native-f2108ee9f769c7c43aa42d7ba6e7989d891e3eb5.zip frameworks_native-f2108ee9f769c7c43aa42d7ba6e7989d891e3eb5.tar.gz frameworks_native-f2108ee9f769c7c43aa42d7ba6e7989d891e3eb5.tar.bz2 |
Revert "Revert "A vendor ril depends on a native screen shot code.""
This reverts commit 94f261556cc5f4aa628cd5b71bf923b583f6e3c3.
Fixes RIL on toroplus
Diffstat (limited to 'libs/gui')
-rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 80dd6ee..8029600 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -589,6 +589,14 @@ ScreenshotClient::ScreenshotClient() : mWidth(0), mHeight(0), mFormat(PIXEL_FORMAT_NONE) { } +// 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 ScreenshotClient::update() { + sp<ISurfaceComposer> sm(ComposerService::getComposerService()); + return update(sm->getBuiltInDisplay(0)); +} + status_t ScreenshotClient::update(const sp<IBinder>& display) { sp<ISurfaceComposer> s(ComposerService::getComposerService()); if (s == NULL) return NO_INIT; |