diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-02-05 23:41:59 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-02-05 23:41:59 +0000 |
commit | b3cd68bc8230dfa38491ee712f33420a02049071 (patch) | |
tree | 44ca1ebe320d7c8390d5800f0cac35ccc873c0bd /libs/hwui/renderthread/RenderThread.h | |
parent | 55593a983fa6b5ee0c85a9c71d4dc66d65b3f8d6 (diff) | |
parent | 80dbc35555d21f65fcfe4ede5d7b406cc4190a97 (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.h | 5 |
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(); } |