summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-10-04 02:34:38 -0700
committerThe Android Automerger <android-build@android.com>2012-10-04 18:06:03 -0700
commit947abbdd2cd6bf0143b659415ff67a6940d5c16f (patch)
treedecaf197dbbf88bf64a2547a241ec6df19a2bfe5 /services/surfaceflinger/SurfaceFlinger.cpp
parenteb1caaea6970d2cf870d26cadb40871f6b9784ab (diff)
downloadframeworks_native-947abbdd2cd6bf0143b659415ff67a6940d5c16f.zip
frameworks_native-947abbdd2cd6bf0143b659415ff67a6940d5c16f.tar.gz
frameworks_native-947abbdd2cd6bf0143b659415ff67a6940d5c16f.tar.bz2
make sure we don't call into the HWC HAL when not needed
when enabling/disabling vsync we now make sure to not call into the HAL if the state wouldn't change. Bug: 7274951 Change-Id: Ie24a6d68888a51b577acf9c2a973d85437cbacaf
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index ebec4cb..8160a7a 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -777,8 +777,8 @@ void SurfaceFlinger::onHotplugReceived(int type, bool connected) {
}
}
-void SurfaceFlinger::eventControl(int event, int enabled) {
- getHwComposer().eventControl(event, enabled);
+void SurfaceFlinger::eventControl(int disp, int event, int enabled) {
+ getHwComposer().eventControl(disp, event, enabled);
}
void SurfaceFlinger::onMessageReceived(int32_t what) {