commit | 22ffb117b0c2a906bd04aef9738a52223cdd1dce | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Tue Apr 10 21:04:02 2012 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed Apr 11 15:31:40 2012 -0700 |
tree | 5d5b8915428be715ec6db9ace523f78668f4f50e | |
parent | b60314a12f3336b27d73920805ab07cbc498d857 [diff] [blame] |
make sure to disable VSYNC while screen is off Change-Id: If1894c43b0a39a2851e1280a35ae77bccd6d9abd
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index 6ae03c9..b87e191 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -205,6 +205,9 @@ status_t HWComposer::release() const { if (mHwc) { + if (mHwc->common.version >= HWC_DEVICE_API_VERSION_0_3) { + mHwc->methods->eventControl(mHwc, HWC_EVENT_VSYNC, 0); + } int err = mHwc->set(mHwc, NULL, NULL, NULL); return (status_t)err; }