Add new mode for SCHED_FIFO on UI and RenderThreads.

Add a new mode, controlled by sys.use_fifo_ui property, that enables the
top app's UI and RenderThread to be SCHED_FIFO. This eliminates almost
all jank due to scheduling competition with non-UI critical
threads. This mode may not be suitable for all devices.

bug 24503801

Change-Id: I7b8a31830ad80f7efa00236928d5476998ed4e00
This commit is contained in:
Tim Murray
2016-06-10 10:03:20 -07:00
parent b89970e0fb
commit 33eb07f575
10 changed files with 120 additions and 36 deletions

View File

@ -514,6 +514,10 @@ void RenderProxy::setProcessStatsBuffer(int fd) {
post(task);
}
int RenderProxy::getRenderThreadTid() {
return mRenderThread.getTid();
}
CREATE_BRIDGE3(addRenderNode, CanvasContext* context, RenderNode* node, bool placeFront) {
args->context->addRenderNode(args->node, args->placeFront);
return nullptr;