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

gitolite role git at cupani.torproject.org
Thu Oct 13 07:51:23 UTC 2022


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 at gmail.com>
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.


More information about the tbb-commits mailing list