Bug 1377950 - Stub in a function for resetting all compositors with GPUProcessManager. r=jrmuizel

MozReview-Commit-ID: HsKCGli3TOM

--HG--
extra : rebase_source : 60a06588747feeb6d3ed0543c38715adea89957d
This commit is contained in:
Ryan Hunt 2017-08-11 02:51:23 -05:00
parent a7da7e14fb
commit e13ee71316
2 changed files with 12 additions and 0 deletions

View File

@ -407,6 +407,15 @@ ShouldLimitDeviceResets(uint32_t count, int32_t deltaMilliseconds)
return false;
}
void
GPUProcessManager::ResetCompositors()
{
// Note: this will recreate devices in addition to recreating compositors.
// This isn't optimal, but this is only used on linux where acceleration
// isn't enabled by default, and this way we don't need a new code path.
SimulateDeviceReset();
}
void
GPUProcessManager::SimulateDeviceReset()
{

View File

@ -143,6 +143,9 @@ public:
uint64_t* aOutLayersId,
CompositorOptions* aOutCompositorOptions);
// Destroy and recreate all of the compositors
void ResetCompositors();
void OnProcessLaunchComplete(GPUProcessHost* aHost) override;
void OnProcessUnexpectedShutdown(GPUProcessHost* aHost) override;
void SimulateDeviceReset();