summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-04-04 22:36:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-04 22:36:10 +0000
commit6d5b8e600e77164d3b5e51b89bf9c940fd7b4ea2 (patch)
treee54c10de12724f637648d8513f9bfd25c8fe6141 /services/surfaceflinger/DisplayHardware
parent2ca79399b933935eb1b6c0ec1f746f8c4475369c (diff)
parent02d86567d95b99e1142941ed7ec23a4465822813 (diff)
downloadframeworks_native-6d5b8e600e77164d3b5e51b89bf9c940fd7b4ea2.zip
frameworks_native-6d5b8e600e77164d3b5e51b89bf9c940fd7b4ea2.tar.gz
frameworks_native-6d5b8e600e77164d3b5e51b89bf9c940fd7b4ea2.tar.bz2
Merge "Clean up HWC state when releasing a DisplayDevice" into jb-mr2-dev
Diffstat (limited to 'services/surfaceflinger/DisplayHardware')
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index a68ddd8..a29c068 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -954,17 +954,17 @@ void HWComposer::dump(String8& result, char* buffer, size_t SIZE) const {
result.appendFormat(" mDebugForceFakeVSync=%d\n", mDebugForceFakeVSync);
for (size_t i=0 ; i<mNumDisplays ; i++) {
const DisplayData& disp(mDisplayData[i]);
+ if (!disp.connected)
+ continue;
const Vector< sp<Layer> >& visibleLayersSortedByZ =
mFlinger->getLayerSortedByZForHwcDisplay(i);
- if (disp.connected) {
- result.appendFormat(
- " Display[%d] : %ux%u, xdpi=%f, ydpi=%f, refresh=%lld\n",
- i, disp.width, disp.height, disp.xdpi, disp.ydpi, disp.refresh);
- }
+ result.appendFormat(
+ " Display[%d] : %ux%u, xdpi=%f, ydpi=%f, refresh=%lld\n",
+ i, disp.width, disp.height, disp.xdpi, disp.ydpi, disp.refresh);
- if (disp.list && disp.connected) {
+ if (disp.list) {
result.appendFormat(
" numHwLayers=%u, flags=%08x\n",
disp.list->numHwLayers, disp.list->flags);