зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356119 - Skip Flush to old context after device reset. r=dvander
This commit is contained in:
Родитель
4d8d922a77
Коммит
d83dc709cb
|
@ -418,7 +418,7 @@ public:
|
|||
*/
|
||||
virtual void EndFrame();
|
||||
|
||||
virtual void CancelFrame() { ReadUnlockTextures(); }
|
||||
virtual void CancelFrame(bool aNeedFlush = true) { ReadUnlockTextures(); }
|
||||
|
||||
virtual void SetDispAcquireFence(Layer* aLayer);
|
||||
|
||||
|
|
|
@ -1369,7 +1369,7 @@ void
|
|||
LayerManagerComposite::ChangeCompositor(Compositor* aNewCompositor)
|
||||
{
|
||||
if (mCompositor) {
|
||||
mCompositor->CancelFrame();
|
||||
mCompositor->CancelFrame(false);
|
||||
}
|
||||
mCompositor = aNewCompositor;
|
||||
mTwoPassTmpTarget = nullptr;
|
||||
|
|
|
@ -1534,12 +1534,14 @@ CompositorD3D11::Present()
|
|||
}
|
||||
|
||||
void
|
||||
CompositorD3D11::CancelFrame()
|
||||
CompositorD3D11::CancelFrame(bool aNeedFlush)
|
||||
{
|
||||
ReadUnlockTextures();
|
||||
// Flush the context, otherwise the driver might hold some resources alive
|
||||
// until the next flush or present.
|
||||
mContext->Flush();
|
||||
if (aNeedFlush) {
|
||||
mContext->Flush();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -119,7 +119,7 @@ public:
|
|||
*/
|
||||
virtual void EndFrame() override;
|
||||
|
||||
virtual void CancelFrame() override;
|
||||
virtual void CancelFrame(bool aNeedFlush = true) override;
|
||||
|
||||
/**
|
||||
* Setup the viewport and projection matrix for rendering
|
||||
|
|
Загрузка…
Ссылка в новой задаче