summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.h
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-02-05 23:41:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-02-05 23:41:59 +0000
commitb3cd68bc8230dfa38491ee712f33420a02049071 (patch)
tree44ca1ebe320d7c8390d5800f0cac35ccc873c0bd /libs/hwui/renderthread/RenderThread.h
parent55593a983fa6b5ee0c85a9c71d4dc66d65b3f8d6 (diff)
parent80dbc35555d21f65fcfe4ede5d7b406cc4190a97 (diff)
Merge "Tell JVM to not wait for HWUI worker threads upon shutdown"
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.h')
-rw-r--r--libs/hwui/renderthread/RenderThread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h
index 1ef83fb26c14..d062dba288fc 100644
--- a/libs/hwui/renderthread/RenderThread.h
+++ b/libs/hwui/renderthread/RenderThread.h
@@ -75,12 +75,15 @@ struct VsyncSource {
class DummyVsyncSource;
+typedef void (*JVMAttachHook)();
+
class RenderThread : private ThreadBase {
PREVENT_COPY_AND_ASSIGN(RenderThread);
public:
// Sets a callback that fires before any RenderThread setup has occurred.
- ANDROID_API static void setOnStartHook(void (*onStartHook)());
+ ANDROID_API static void setOnStartHook(JVMAttachHook onStartHook);
+ static JVMAttachHook getOnStartHook();
WorkQueue& queue() { return ThreadBase::queue(); }