There should be only one frame rendering at one time,
this counter help scheduler accomplish this task.
But sometimes this counter could be notified to decrease
more times than it should be, so it becomes negative,
then scheduler is not working properly,
the FPS will go sky high.
From:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/262951/
Change-Id: Icb7ef4ae0c206a8764581cccb078bb57bbc0c432
Signed-off-by: lizhifan <lizhi.fan@samsung.com>
TRACE_EVENT_NESTABLE_ASYNC_END1("cc", "Scheduler:pending_submit_frames",
TRACE_ID_LOCAL(this), "pending_frames",
pending_submit_frames_);
- pending_submit_frames_--;
+ if (pending_submit_frames_ > 0)
+ pending_submit_frames_--;
}
void SchedulerStateMachine::SetTreePrioritiesAndScrollState(