Skip to content

Commit

Permalink
Bug 1573343 - Reset the transform in a better place. r=mattwoodrow
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D41672

--HG--
extra : moz-landing-system : lando
  • Loading branch information
mstange committed Aug 19, 2019
1 parent f182a07 commit 2dbe70d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gfx/layers/basic/BasicCompositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,9 @@ void BasicCompositor::EndFrame() {
// Pop aInvalidregion
mRenderTarget->mDrawTarget->PopClip();

// Reset the translation that was applied in BeginFrame.
mRenderTarget->mDrawTarget->SetTransform(gfx::Matrix());

TryToEndRemoteDrawing();

// If we are no longer recording a profile, we can drop the render target if
Expand Down
1 change: 0 additions & 1 deletion widget/CompositorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ already_AddRefed<gfx::DrawTarget> CompositorWidget::GetBackBufferDrawTarget(
mLastBackBuffer->GetFormat() == format &&
mLastBackBuffer->GetSize() == clientSize) {
target = mLastBackBuffer;
target->SetTransform(gfx::Matrix());
if (!aClearRect.IsEmpty()) {
gfx::IntRect clearRect =
aClearRect.ToUnknownRect() - aRect.ToUnknownRect().TopLeft();
Expand Down

0 comments on commit 2dbe70d

Please sign in to comment.