Changeset 283346 in webkit
- Timestamp:
- Sep 30, 2021, 4:12:17 PM (5 years ago)
- Location:
- branches/safari-611.4.2.0-branch
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/canvas/xr-compatible-crash-expected.txt (added)
-
LayoutTests/fast/canvas/xr-compatible-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-611.4.2.0-branch/LayoutTests/ChangeLog
r279077 r283346 1 2021-09-30 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r281613. rdar://problem/83369963 4 5 Crash in GraphicsContextGLOpenGL::reshapeDisplayBufferBacking 6 https://bugs.webkit.org/show_bug.cgi?id=229309 7 8 Patch by Alex Christensen <achristensen@webkit.org> on 2021-08-25 9 Reviewed by Myles C. Maxfield. 10 11 Source/WebCore: 12 13 Test: fast/canvas/xr-compatible-crash.html 14 15 Null check m_swapChain because reshapeDisplayBufferBacking can be called before it is set. 16 17 * html/canvas/WebGLRenderingContextBase.cpp: 18 (WebCore::WebGLRenderingContextBase::addContextObject): 19 * platform/graphics/angle/GraphicsContextGLANGLE.cpp: 20 (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): 21 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 22 (WebCore::GraphicsContextGLOpenGL::reshapeDisplayBufferBacking): 23 24 LayoutTests: 25 26 * fast/canvas/xr-compatible-crash.html: Added. 27 * fast/canvas/xr-compatible-crash-expected.txt: Added. 28 29 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281613 268f45cc-cd09-0410-ab3c-d52691b4dbfc 30 31 2021-08-25 Alex Christensen <achristensen@webkit.org> 32 33 Crash in GraphicsContextGLOpenGL::reshapeDisplayBufferBacking 34 https://bugs.webkit.org/show_bug.cgi?id=229309 35 36 Reviewed by Myles C. Maxfield. 37 38 * fast/canvas/xr-compatible-crash.html: Added. 39 * fast/canvas/xr-compatible-crash-expected.txt: Added. 40 1 41 2021-06-21 Alan Coon <alancoon@apple.com> 2 42 -
branches/safari-611.4.2.0-branch/Source/WebCore/ChangeLog
r283345 r283346 1 2021-09-30 Russell Epstein <repstein@apple.com> 2 3 Cherry-pick r281613. rdar://problem/83369963 4 5 Crash in GraphicsContextGLOpenGL::reshapeDisplayBufferBacking 6 https://bugs.webkit.org/show_bug.cgi?id=229309 7 8 Patch by Alex Christensen <achristensen@webkit.org> on 2021-08-25 9 Reviewed by Myles C. Maxfield. 10 11 Source/WebCore: 12 13 Test: fast/canvas/xr-compatible-crash.html 14 15 Null check m_swapChain because reshapeDisplayBufferBacking can be called before it is set. 16 17 * html/canvas/WebGLRenderingContextBase.cpp: 18 (WebCore::WebGLRenderingContextBase::addContextObject): 19 * platform/graphics/angle/GraphicsContextGLANGLE.cpp: 20 (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): 21 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 22 (WebCore::GraphicsContextGLOpenGL::reshapeDisplayBufferBacking): 23 24 LayoutTests: 25 26 * fast/canvas/xr-compatible-crash.html: Added. 27 * fast/canvas/xr-compatible-crash-expected.txt: Added. 28 29 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281613 268f45cc-cd09-0410-ab3c-d52691b4dbfc 30 31 2021-08-25 Alex Christensen <achristensen@webkit.org> 32 33 Crash in GraphicsContextGLOpenGL::reshapeDisplayBufferBacking 34 https://bugs.webkit.org/show_bug.cgi?id=229309 35 36 Reviewed by Myles C. Maxfield. 37 38 Test: fast/canvas/xr-compatible-crash.html 39 40 Null check m_swapChain because reshapeDisplayBufferBacking can be called before it is set. 41 42 * html/canvas/WebGLRenderingContextBase.cpp: 43 (WebCore::WebGLRenderingContextBase::addContextObject): 44 * platform/graphics/angle/GraphicsContextGLANGLE.cpp: 45 (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): 46 * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: 47 (WebCore::GraphicsContextGLOpenGL::reshapeDisplayBufferBacking): 48 1 49 2021-09-30 Russell Epstein <repstein@apple.com> 2 50 -
branches/safari-611.4.2.0-branch/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
r272279 r283346 6248 6248 return; 6249 6249 6250 ASSERT(!isContextLost());6251 6250 m_contextObjects.add(&object); 6252 6251 } -
branches/safari-611.4.2.0-branch/Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
r270964 r283346 166 166 // resize regular FBO 167 167 gl::BindFramebuffer(GL_FRAMEBUFFER, m_fbo); 168 ASSERT(m_texture);169 168 170 169 #if PLATFORM(COCOA) -
branches/safari-611.4.2.0-branch/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
r272279 r283346 519 519 } 520 520 // Reset the future recycled buffer now, because it most likely will not be reusable at the time it will be reused. 521 auto recycledBuffer = m_swapChain->recycleBuffer(); 522 if (recycledBuffer.handle) 523 EGL_DestroySurface(m_displayObj, recycledBuffer.handle); 524 recycledBuffer.surface.reset(); 521 if (m_swapChain) { 522 auto recycledBuffer = m_swapChain->recycleBuffer(); 523 if (recycledBuffer.handle) 524 EGL_DestroySurface(m_displayObj, recycledBuffer.handle); 525 recycledBuffer.surface.reset(); 526 } 525 527 return allocateAndBindDisplayBufferBacking(); 526 528 }
Note:
See TracChangeset
for help on using the changeset viewer.