summaryrefslogtreecommitdiff
path: root/libs/hwui/jni/GraphicsStatsService.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2019-10-25 11:11:32 -0400
committerDerek Sollenberger <djsollen@google.com>2020-02-20 21:49:44 -0500
commitc5882c4eb614179c8dad323cbbb115b62bb35f43 (patch)
tree95aa6014369da64fa5a6911df001046c002fd51e /libs/hwui/jni/GraphicsStatsService.cpp
parent5368eda5127701dc84b9e4da61dfbfa685a00b2d (diff)
Remove dependencies on headers outside UI module
This includes AndroidRuntime and core_jni_helper.h Bug: 137655431 Test: CtsUiRenderingTestCases Change-Id: If3d26f41eaf4981505ee47634097f3645fd563fd
Diffstat (limited to 'libs/hwui/jni/GraphicsStatsService.cpp')
-rw-r--r--libs/hwui/jni/GraphicsStatsService.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/hwui/jni/GraphicsStatsService.cpp b/libs/hwui/jni/GraphicsStatsService.cpp
index 2ce392daeb87..e9259462bcac 100644
--- a/libs/hwui/jni/GraphicsStatsService.cpp
+++ b/libs/hwui/jni/GraphicsStatsService.cpp
@@ -18,16 +18,14 @@
#define LOG_TAG "GraphicsStatsService"
#include <JankTracker.h>
-#include <jni.h>
#include <log/log.h>
-#include <nativehelper/JNIHelp.h>
#include <nativehelper/ScopedPrimitiveArray.h>
#include <nativehelper/ScopedUtfChars.h>
#include <service/GraphicsStatsService.h>
#include <stats_event.h>
#include <stats_pull_atom_callback.h>
#include <statslog.h>
-#include "core_jni_helpers.h"
+#include "GraphicsJNI.h"
namespace android {
@@ -116,7 +114,7 @@ static jobject gGraphicsStatsServiceObject = nullptr;
static jmethodID gGraphicsStatsService_pullGraphicsStatsMethodID;
static JNIEnv* getJNIEnv() {
- JavaVM* vm = AndroidRuntime::getJavaVM();
+ JavaVM* vm = GraphicsJNI::getJavaVM();
JNIEnv* env = nullptr;
if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
if (vm->AttachCurrentThreadAsDaemon(&env, nullptr) != JNI_OK) {