Skip to content

Commit 5d9a4f3

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "improve hwc log output" into ics-factoryrom
2 parents e8b7f4a + 1f84f44 commit 5d9a4f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/surfaceflinger/DisplayHardware/HWComposer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ void HWComposer::dump(String8& result, char* buffer, size_t SIZE,
176176
mList->numHwLayers, mList->flags);
177177
result.append(buffer);
178178
result.append(
179-
" type | hints | flags | tr | blend | format | source rectangle | crop rectangle name \n"
180-
"-----------+----------+----------+----+-------+----------+---------------------------+--------------------------------\n");
181-
// " ________ | ________ | ________ | __ | _____ | ________ | [_____,_____,_____,_____] | [_____,_____,_____,_____]
179+
" type | handle | hints | flags | tr | blend | format | source crop | frame name \n"
180+
"----------+----------+----------+----------+----+-------+----------+---------------------------+--------------------------------\n");
181+
// " ________ | ________ | ________ | ________ | __ | _____ | ________ | [_____,_____,_____,_____] | [_____,_____,_____,_____]
182182
for (size_t i=0 ; i<mList->numHwLayers ; i++) {
183183
const hwc_layer_t& l(mList->hwLayers[i]);
184184
const sp<LayerBase> layer(visibleLayersSortedByZ[i]);
@@ -190,9 +190,9 @@ void HWComposer::dump(String8& result, char* buffer, size_t SIZE,
190190
}
191191
}
192192
snprintf(buffer, SIZE,
193-
" %8s | %08x | %08x | %02x | %05x | %08x | [%5d,%5d,%5d,%5d] | [%5d,%5d,%5d,%5d] %s\n",
193+
" %8s | %08x | %08x | %08x | %02x | %05x | %08x | [%5d,%5d,%5d,%5d] | [%5d,%5d,%5d,%5d] %s\n",
194194
l.compositionType ? "OVERLAY" : "FB",
195-
l.hints, l.flags, l.transform, l.blending, format,
195+
intptr_t(l.handle), l.hints, l.flags, l.transform, l.blending, format,
196196
l.sourceCrop.left, l.sourceCrop.top, l.sourceCrop.right, l.sourceCrop.bottom,
197197
l.displayFrame.left, l.displayFrame.top, l.displayFrame.right, l.displayFrame.bottom,
198198
layer->getName().string());

0 commit comments

Comments
 (0)