mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Bug 1573343 - Destroy mFullWindowRenderTarget in a different place. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42415
This commit is contained in:
1 parent
a022450b27
commit
14869779fc
1 file changed
+4
-6
@@ -992,6 +992,10 @@ void BasicCompositor::BeginFrame(
|
||||
mFullWindowRenderTarget =
|
||||
new BasicCompositingRenderTarget(drawTarget, rect);
|
||||
}
|
||||
} else if (mFullWindowRenderTarget) {
|
||||
// If we are no longer recording a profile, we can drop the render target
|
||||
// if it exists.
|
||||
mFullWindowRenderTarget = nullptr;
|
||||
}
|
||||
|
||||
gfxUtils::ClipToRegion(mRenderTarget->mDrawTarget,
|
||||
@@ -1034,12 +1038,6 @@ void BasicCompositor::EndFrame() {
|
||||
mRenderTarget->mDrawTarget->SetTransform(gfx::Matrix());
|
||||
|
||||
TryToEndRemoteDrawing();
|
||||
|
||||
// If we are no longer recording a profile, we can drop the render target if
|
||||
// it exists.
|
||||
if (mFullWindowRenderTarget && !ShouldRecordFrames()) {
|
||||
mFullWindowRenderTarget = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void BasicCompositor::TryToEndRemoteDrawing(bool aForceToEnd) {
|
||||
|
||||
Reference in new issue
Block a user