mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 735230 - Part 1: Add Pause and Resume messages to PCompositor. r=bgirard
This commit is contained in:
parent
f41653e7d9
commit
170d63ff3e
@ -90,6 +90,20 @@ CompositorParent::RecvStop()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorParent::RecvPause()
|
||||
{
|
||||
PauseComposition();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorParent::RecvResume()
|
||||
{
|
||||
ResumeComposition();
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
CompositorParent::ScheduleRenderOnCompositorThread()
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user