summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2012-09-27 16:02:06 -0700
committerAndy McFadden <fadden@android.com>2012-09-28 13:04:16 -0700
commitc01a79d77b829e7de86ef137694e8ad708470ca1 (patch)
treedec2e131548693c8b9bae93352557faed7b3cec9 /libs/gui
parent4c2732779a11c92222958e7150162d4eaaab7b66 (diff)
downloadframeworks_native-c01a79d77b829e7de86ef137694e8ad708470ca1.zip
frameworks_native-c01a79d77b829e7de86ef137694e8ad708470ca1.tar.gz
frameworks_native-c01a79d77b829e7de86ef137694e8ad708470ca1.tar.bz2
Pass display arg to blank/unblank
This allows us to blank and unblank displays other than the built-in display (e.g. HDMI). Bug: 7240511 Change-Id: I89ea13f9e497be74c3e1231d0c62fb558e93e0f8
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/ISurfaceComposer.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp
index 07d2b79..aff1b45 100644
--- a/libs/gui/ISurfaceComposer.cpp
+++ b/libs/gui/ISurfaceComposer.cpp
@@ -197,17 +197,19 @@ public:
return reply.readStrongBinder();
}
- virtual void blank()
+ virtual void blank(const sp<IBinder>& display)
{
Parcel data, reply;
data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor());
+ data.writeStrongBinder(display);
remote()->transact(BnSurfaceComposer::BLANK, data, &reply);
}
- virtual void unblank()
+ virtual void unblank(const sp<IBinder>& display)
{
Parcel data, reply;
data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor());
+ data.writeStrongBinder(display);
remote()->transact(BnSurfaceComposer::UNBLANK, data, &reply);
}
@@ -320,11 +322,13 @@ status_t BnSurfaceComposer::onTransact(
} break;
case BLANK: {
CHECK_INTERFACE(ISurfaceComposer, data, reply);
- blank();
+ sp<IBinder> display = data.readStrongBinder();
+ blank(display);
} break;
case UNBLANK: {
CHECK_INTERFACE(ISurfaceComposer, data, reply);
- unblank();
+ sp<IBinder> display = data.readStrongBinder();
+ unblank(display);
} break;
case GET_DISPLAY_INFO: {
CHECK_INTERFACE(ISurfaceComposer, data, reply);