[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 35/36: Bug 1792008 - Check size when mNotLost->mCanvasRenderer is re-used r=lsalzman, gfx-reviewers a=RyanVM



This is an automated email from the git hooks/post-receive script.

pierov pushed a commit to annotated tag FIREFOX_102_4_0esr_BUILD1
in repository tor-browser.

commit e5de4757b46f001376c2d930399ae63b2f981e31
Author: sotaro <sotaro.ikeda.g@xxxxxxxxx>
AuthorDate: Mon Sep 26 05:14:45 2022 +0000

    Bug 1792008 - Check size when mNotLost->mCanvasRenderer is re-used r=lsalzman,gfx-reviewers a=RyanVM
    
    Differential Revision: https://phabricator.services.mozilla.com/D158096
---
 dom/canvas/ClientWebGLContext.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dom/canvas/ClientWebGLContext.cpp b/dom/canvas/ClientWebGLContext.cpp
index d699cbbc44b1..1a509d616944 100644
--- a/dom/canvas/ClientWebGLContext.cpp
+++ b/dom/canvas/ClientWebGLContext.cpp
@@ -454,7 +454,10 @@ bool ClientWebGLContext::UpdateWebRenderCanvasData(
     return true;
   }
 
+  const auto& size = DrawingBufferSize();
+
   if (!IsContextLost() && !renderer && mNotLost->mCanvasRenderer &&
+      mNotLost->mCanvasRenderer->GetSize() == gfx::IntSize(size.x, size.y) &&
       aCanvasData->SetCanvasRenderer(mNotLost->mCanvasRenderer)) {
     mNotLost->mCanvasRenderer->SetDirty();
     mResetLayer = false;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits