mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
a7da7e14fb
commit
e13ee71316
@ -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()
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user