summaryrefslogtreecommitdiff
path: root/libs/graphicsenv/GraphicsEnv.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-07-09 02:33:28 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-07-09 02:33:28 +0000
commit7507a128ab55f325d11ccf258e4788fdaef4fbb6 (patch)
tree0f6a5870fdbc7c50e99e9c3cd51eb3e29e455c3a /libs/graphicsenv/GraphicsEnv.cpp
parentd2487949b3631e08737295279ebf2a845a0a66b0 (diff)
parent8e09730244a3fb935d5fdae94c572bb3946c5c6e (diff)
Merge "GpuStats: Cache the gpu service binder"
Diffstat (limited to 'libs/graphicsenv/GraphicsEnv.cpp')
-rw-r--r--libs/graphicsenv/GraphicsEnv.cpp2
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;