Game Driver: add GpuStats class to process and dump stats
Bug: 123529932
Test: adb shell dumpsys gpu
Change-Id: I2d524b1eecb00be71d344c07e8e18244a44bbcb8
diff --git a/services/gpuservice/GpuService.h b/services/gpuservice/GpuService.h
index 7216035..0cf48bb 100644
--- a/services/gpuservice/GpuService.h
+++ b/services/gpuservice/GpuService.h
@@ -27,6 +27,8 @@
namespace android {
+class GpuStats;
+
class GpuService : public BnGpuService, public PriorityDumper {
public:
static const char* const SERVICE_NAME ANDROID_API;
@@ -66,9 +68,7 @@
/*
* Attributes
*/
-
- // GpuStats access must be protected by mStateLock
- std::mutex mStateLock;
+ std::unique_ptr<GpuStats> mGpuStats;
};
} // namespace android