[RESTRICT AUTOMERGE]gpuservice: always dump all in BugReport
Bug: 158386226
Test: take a bugreport and verify dumpsys gpu is not empty
Change-Id: Ib2827a72819ef3ccd3267144aaea2e5977f01745
diff --git a/services/gpuservice/GpuService.cpp b/services/gpuservice/GpuService.cpp
index 7bb0e4a..f40ce71 100644
--- a/services/gpuservice/GpuService.cpp
+++ b/services/gpuservice/GpuService.cpp
@@ -94,7 +94,6 @@
size_t numArgs = args.size();
if (numArgs) {
- dumpAll = false;
for (size_t index = 0; index < numArgs; ++index) {
if (args[index] == String16("--gpustats")) {
dumpStats = true;
@@ -102,6 +101,7 @@
dumpDriverInfo = true;
}
}
+ dumpAll = !(dumpDriverInfo || dumpStats);
}
if (dumpAll || dumpDriverInfo) {