diff options
| author | 2019-07-08 21:08:46 +0000 | |
|---|---|---|
| committer | 2019-07-08 21:08:46 +0000 | |
| commit | 5ae36f50d4794abd41ff9bedd4eef6d95bfb6da8 (patch) | |
| tree | a34c3e0ea22999c6ca9f965e51da0bd4d9bf35e2 /libs/graphicsenv/GraphicsEnv.cpp | |
| parent | eb6ab629bdb60f180567e22d5a158139965e18d1 (diff) | |
| parent | bcba4117941a0506971654331d89961b6fbfd3c0 (diff) | |
Merge "GpuStats: refactor single stats pieces into a uniform way"
Diffstat (limited to 'libs/graphicsenv/GraphicsEnv.cpp')
| -rw-r--r-- | libs/graphicsenv/GraphicsEnv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/graphicsenv/GraphicsEnv.cpp b/libs/graphicsenv/GraphicsEnv.cpp index a411dd56f6..c5d5f71800 100644 --- a/libs/graphicsenv/GraphicsEnv.cpp +++ b/libs/graphicsenv/GraphicsEnv.cpp @@ -267,14 +267,14 @@ static sp<IGpuService> getGpuService() { return interface_cast<IGpuService>(binder); } -void GraphicsEnv::setCpuVulkanInUse() { +void GraphicsEnv::setTargetStats(const GpuStatsInfo::Stats stats, const uint64_t value) { ATRACE_CALL(); - // Use the same stats lock to protect getGpuService() as well. std::lock_guard<std::mutex> lock(mStatsLock); const sp<IGpuService> gpuService = getGpuService(); if (gpuService) { - gpuService->setCpuVulkanInUse(mGpuStats.appPackageName, mGpuStats.driverVersionCode); + gpuService->setTargetStats(mGpuStats.appPackageName, mGpuStats.driverVersionCode, stats, + value); } } |