fix surfaceflinger's dumpsys

Change-Id: I7b95c3e04f145003f9c0eef321a21f3f36dfe835
This commit is contained in:
Mathias Agopian 2012-03-08 22:01:51 -08:00
parent 373c2b2869
commit 35aadd6be2
1 changed files with 3 additions and 2 deletions

View File

@ -1523,24 +1523,25 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
size_t index = 0;
size_t numArgs = args.size();
if (numArgs) {
dumpAll = false;
if ((index < numArgs) &&
(args[index] == String16("--list"))) {
index++;
listLayersLocked(args, index, result, buffer, SIZE);
dumpAll = false;
}
if ((index < numArgs) &&
(args[index] == String16("--latency"))) {
index++;
dumpStatsLocked(args, index, result, buffer, SIZE);
dumpAll = false;
}
if ((index < numArgs) &&
(args[index] == String16("--latency-clear"))) {
index++;
clearStatsLocked(args, index, result, buffer, SIZE);
dumpAll = false;
}
}