fix surfaceflinger's dumpsys
Change-Id: I7b95c3e04f145003f9c0eef321a21f3f36dfe835
This commit is contained in:
parent
373c2b2869
commit
35aadd6be2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user