Shared timeline plumbing
Add plumbing to get shared timeline data from Surface Flinger to HWUI and back. Bug: 162890382 Bug: 162888881 Bug: 162890407 Test: manual using ALOG messages in SF Change-Id: I85c5eb56d2fa933889518854e7b79b1e65e29af3
This commit is contained in:
committed by
Ady Abraham
parent
e78c0050bb
commit
6fabb5aa17
@@ -128,7 +128,9 @@ void DrawFrameTask::run() {
|
||||
bool DrawFrameTask::syncFrameState(TreeInfo& info) {
|
||||
ATRACE_CALL();
|
||||
int64_t vsync = mFrameInfo[static_cast<int>(FrameInfoIndex::Vsync)];
|
||||
mRenderThread->timeLord().vsyncReceived(vsync);
|
||||
int64_t intendedVsync = mFrameInfo[static_cast<int>(FrameInfoIndex::IntendedVsync)];
|
||||
int64_t vsyncId = mFrameInfo[static_cast<int>(FrameInfoIndex::FrameTimelineVsyncId)];
|
||||
mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId);
|
||||
bool canDraw = mContext->makeCurrent();
|
||||
mContext->unpinImages();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user