Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert

This commit is contained in:
Randall Barker
2015-04-10 22:14:00 -04:00
parent 983be4c745
commit c2f98c668e
15 changed files with 517 additions and 1 deletions

View File

@@ -2454,6 +2454,29 @@ nsWindow::ScheduleComposite()
}
}
bool
nsWindow::IsCompositionPaused()
{
return sCompositorPaused;
}
void
nsWindow::SchedulePauseComposition()
{
if (sCompositorParent) {
sCompositorParent->SchedulePauseOnCompositorThread();
sCompositorPaused = true;
}
}
void
nsWindow::ScheduleResumeComposition()
{
if (sCompositorParent && sCompositorParent->ScheduleResumeOnCompositorThread()) {
sCompositorPaused = false;
}
}
void
nsWindow::ScheduleResumeComposition(int width, int height)
{