diff options
| author | 2019-07-09 02:33:28 +0000 | |
|---|---|---|
| committer | 2019-07-09 02:33:28 +0000 | |
| commit | 7507a128ab55f325d11ccf258e4788fdaef4fbb6 (patch) | |
| tree | 0f6a5870fdbc7c50e99e9c3cd51eb3e29e455c3a /libs/graphicsenv/GraphicsEnv.cpp | |
| parent | d2487949b3631e08737295279ebf2a845a0a66b0 (diff) | |
| parent | 8e09730244a3fb935d5fdae94c572bb3946c5c6e (diff) | |
Merge "GpuStats: Cache the gpu service binder"
Diffstat (limited to 'libs/graphicsenv/GraphicsEnv.cpp')
| -rw-r--r-- | libs/graphicsenv/GraphicsEnv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/graphicsenv/GraphicsEnv.cpp b/libs/graphicsenv/GraphicsEnv.cpp index c5d5f71800..3e29e88b20 100644 --- a/libs/graphicsenv/GraphicsEnv.cpp +++ b/libs/graphicsenv/GraphicsEnv.cpp @@ -258,7 +258,7 @@ void GraphicsEnv::setDriverLoaded(GpuStatsInfo::Api api, bool isDriverLoaded, } static sp<IGpuService> getGpuService() { - const sp<IBinder> binder = defaultServiceManager()->checkService(String16("gpu")); + static const sp<IBinder> binder = defaultServiceManager()->checkService(String16("gpu")); if (!binder) { ALOGE("Failed to get gpu service"); return nullptr; |