commit | 7c1786beff6050b7f2a3448e56eb222dd6be8a69 | [log] [tgz] |
---|---|---|
author | Matt Buckley <mattbuckley@google.com> | Mon Jan 30 23:36:56 2023 +0000 |
committer | Matt Buckley <mattbuckley@google.com> | Mon Feb 06 22:55:54 2023 +0000 |
tree | 13a5d208916213d7c476244f7b7d3d85d1f5b060 | |
parent | 4514e31ec20fd59ecae9c260f59a4537f9cb0000 [diff] [blame] |
Create HintSessionWrapper in RT right after CanvasContext Move the construction of the HintSessionWrapper to RT right after the creation of the CanvasContext to ensure enough time is provided to not block the critical path in most cases. Bug: 263755904 Test: manual Change-Id: Ibab98b811de9056c51092286398d5c41c4d1d86b Merged-In: I1a67b163acd9c41156d9b9e14e974c67b6ba6ed5
diff --git a/libs/hwui/renderthread/DrawFrameTask.h b/libs/hwui/renderthread/DrawFrameTask.h index d6fc292..b135a21 100644 --- a/libs/hwui/renderthread/DrawFrameTask.h +++ b/libs/hwui/renderthread/DrawFrameTask.h
@@ -90,6 +90,8 @@ void forceDrawNextFrame() { mForceDrawFrame = true; } + void createHintSession(pid_t uiThreadId, pid_t renderThreadId); + private: class HintSessionWrapper { public: