summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-12-01 16:18:53 -0800
committerJohn Reck <jreck@google.com>2017-12-01 16:35:06 -0800
commit259b25a310bf3beb5d41233717aaf3dc02a46c36 (patch)
treeebcfdbf6e6b35ee2954e9f7bbf3183b414228198 /libs/hwui/renderthread/RenderThread.h
parent9fdbc957c6d7b464fccfcfcd01a4771172f18c0e (diff)
Switch RenderThread to a Java daemon thread
Bug: 69962494 Test: device boots, hwui unit tests pass Change-Id: I9d5f2fccebf845328914c82aa97285cf605a4354
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.h')
-rw-r--r--libs/hwui/renderthread/RenderThread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h
index d17a509f6357..970537b69fad 100644
--- a/libs/hwui/renderthread/RenderThread.h
+++ b/libs/hwui/renderthread/RenderThread.h
@@ -67,6 +67,9 @@ class RenderThread : private ThreadBase {
PREVENT_COPY_AND_ASSIGN(RenderThread);
public:
+ // Sets a callback that fires before any RenderThread setup has occured.
+ ANDROID_API static void setOnStartHook(void (*onStartHook)());
+
WorkQueue& queue() { return ThreadBase::queue(); }
// Mimics android.view.Choreographer