Bug 1148149 - Support Android Presentation API. r=snorp, r=jgilbert
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user