Bug 735230 - Part 1: Add Pause and Resume messages to PCompositor. r=bgirard

This commit is contained in:
Ali Juma 2012-03-28 18:00:10 -04:00
parent f41653e7d9
commit 170d63ff3e
3 changed files with 21 additions and 0 deletions

View File

@ -90,6 +90,20 @@ CompositorParent::RecvStop()
return true;
}
bool
CompositorParent::RecvPause()
{
PauseComposition();
return true;
}
bool
CompositorParent::RecvResume()
{
ResumeComposition();
return true;
}
void
CompositorParent::ScheduleRenderOnCompositorThread()
{

View File

@ -94,6 +94,8 @@ public:
virtual ~CompositorParent();
virtual bool RecvStop() MOZ_OVERRIDE;
virtual bool RecvPause() MOZ_OVERRIDE;
virtual bool RecvResume() MOZ_OVERRIDE;
virtual void ShadowLayersUpdated(bool isFirstPaint) MOZ_OVERRIDE;
void Destroy();

View File

@ -64,6 +64,11 @@ parent:
// Clean up in preparation for destruction.
sync Stop();
// Pause/resume the compositor. These are intended to be used on mobile, when
// the compositor needs to pause/resume in lockstep with the application.
sync Pause();
sync Resume();
sync PLayers(LayersBackend backend);
};