diff options
author | Colin Cross <ccross@android.com> | 2012-06-08 14:14:18 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-08 14:14:18 -0700 |
commit | 52cf768fc24f7b6b8f4bacf8b630acc1fbee7e2f (patch) | |
tree | 1f91fc18b4aa4807a6a9bda091e5294e9f9ff40c /libs | |
parent | bd3ad5b23fa026be35595ebf52633e2d51cfc1ca (diff) | |
parent | 8e533069e5721e55cb9768e140e16546c3a4a8b6 (diff) | |
download | frameworks_native-52cf768fc24f7b6b8f4bacf8b630acc1fbee7e2f.zip frameworks_native-52cf768fc24f7b6b8f4bacf8b630acc1fbee7e2f.tar.gz frameworks_native-52cf768fc24f7b6b8f4bacf8b630acc1fbee7e2f.tar.bz2 |
Merge "surfaceflinger: replace early suspend with binder call from PowerManager"
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/ISurfaceComposer.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp index 1f1794c..8177e4d 100644 --- a/libs/gui/ISurfaceComposer.cpp +++ b/libs/gui/ISurfaceComposer.cpp @@ -193,6 +193,20 @@ public: result = interface_cast<IDisplayEventConnection>(reply.readStrongBinder()); return result; } + + virtual void blank() + { + Parcel data, reply; + data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); + remote()->transact(BnSurfaceComposer::BLANK, data, &reply); + } + + virtual void unblank() + { + Parcel data, reply; + data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); + remote()->transact(BnSurfaceComposer::UNBLANK, data, &reply); + } }; IMPLEMENT_META_INTERFACE(SurfaceComposer, "android.ui.ISurfaceComposer"); @@ -279,6 +293,14 @@ status_t BnSurfaceComposer::onTransact( reply->writeStrongBinder(connection->asBinder()); return NO_ERROR; } break; + case BLANK: { + CHECK_INTERFACE(ISurfaceComposer, data, reply); + blank(); + } break; + case UNBLANK: { + CHECK_INTERFACE(ISurfaceComposer, data, reply); + unblank(); + } break; default: return BBinder::onTransact(code, data, reply, flags); } |