summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2012-10-04 20:26:52 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2012-10-04 20:26:52 -0700
commit95b9a0b688eab5a3c0c1fadb71e258e93e4c344c (patch)
tree796e9329ff5f6dfc90a49faa4b855f26a3ae3f8a
parent9c58d96f0079e627004c606436df27fa97ff4c8e (diff)
parente835976d285df80e261546bd4d016dadb45d906d (diff)
am e835976d: Merge "Tone down a fatal assert" into jb-mr1-dev
* commit 'e835976d285df80e261546bd4d016dadb45d906d': Tone down a fatal assert
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index 597e5d6305..dd9a762f95 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -686,8 +686,11 @@ status_t HWComposer::acquire(int disp) {
}
void HWComposer::disconnectDisplay(int disp) {
- LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY ||
- disp >= HWC_NUM_DISPLAY_TYPES);
+ LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY);
+ if (disp >= HWC_NUM_DISPLAY_TYPES) {
+ // nothing to do for these yet
+ return;
+ }
DisplayData& dd(mDisplayData[disp]);
if (dd.list != NULL) {
free(dd.list);