summaryrefslogtreecommitdiffstats
path: root/liboverlay/overlay.cpp
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2012-09-07 13:37:49 -0700
committerSteve Kondik <shade@chemlab.org>2012-11-08 12:53:03 -0800
commit5b1f9478ffcd40c35b40c816fe5e55f902e5bac1 (patch)
tree587f6df0cdd0b41318d8322d7207cee1f4c19c29 /liboverlay/overlay.cpp
parentbdce8066528e702191f2059836509b52efa9a2f8 (diff)
downloadandroid_hardware_qcom_display-jellybean-stable.tar.gz
android_hardware_qcom_display-jellybean-stable.tar.bz2
android_hardware_qcom_display-jellybean-stable.zip
liboverlay: close all the opened pipes after framework reboot.jellybean-stable
Add initOverlay() function to close all the opened pipes when Surfaceflinger process gets killed. Change-Id: I9c65a61c81f9c81198f1076d6cbd27933b164c05 CRs-Fixed: 412954 (cherry picked from commit c20f1810dd07c9097ba4c066ec86a677399ae47f)
Diffstat (limited to 'liboverlay/overlay.cpp')
-rw-r--r--liboverlay/overlay.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp
index 09871da89..c01f00985 100644
--- a/liboverlay/overlay.cpp
+++ b/liboverlay/overlay.cpp
@@ -191,8 +191,12 @@ utils::eOverlayState Overlay::getState() const {
Overlay *Overlay::sInstance = 0;
Overlay* Overlay::getInstance() {
- if(sInstance == NULL)
+ if(sInstance == NULL) {
+ if(utils::initOverlay() == -1) {
+ ALOGE("utils::initOverlay() ERROR!!");
+ }
sInstance = new Overlay();
+ }
return sInstance;
}