commit | f5f2712854599b4970643c6000fe6ae950a08ba9 | [log] [tgz] |
---|---|---|
author | Antti Hatala <ahatala@nvidia.com> | Thu Sep 09 02:33:05 2010 -0700 |
committer | Erik Gilling <konkers@android.com> | Thu Sep 09 12:06:48 2010 -0700 |
tree | 9c1105402f0a61e5e4426d4c7416c8301bbbd859 | |
parent | 586a0deb76012c4347298c11df460631853b67f8 [diff] [blame] |
surfaceflinger: give hwcomposer a chance to release buffers Change-Id: I605fa779702022865dd58df3b36f37c2644ade36
diff --git a/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp b/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp index 166c528..3e23929 100644 --- a/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp +++ b/services/surfaceflinger/DisplayHardware/DisplayHardware.cpp
@@ -292,6 +292,9 @@ void DisplayHardware::releaseScreen() const { DisplayHardwareBase::releaseScreen(); + if (mHwc->initCheck() == NO_ERROR) { + mHwc->release(); + } } void DisplayHardware::acquireScreen() const