Changeset 211358 in webkit


Ignore:
Timestamp:
Jan 30, 2017 12:47:30 AM (7 years ago)
Author:
Carlos Garcia Campos
Message:

[Threaded Compositor] Crash in GraphicsContext3D::deleteTexture when destroying TextureMapperPlatformLayerProxy
https://bugs.webkit.org/show_bug.cgi?id=167575

Reviewed by Žan Doberšek.

We should clear all the buffers on invalidate to ensure we don't have textures alive after CoordinatedGraphicsScene::purgeGLResources().

Fix crash in media/video-poster-background.html.

  • platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp:

(WebCore::TextureMapperPlatformLayerProxy::invalidate): Clear current, pending and all used buffers.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211357 r211358  
     12017-01-30  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [Threaded Compositor] Crash in GraphicsContext3D::deleteTexture when destroying TextureMapperPlatformLayerProxy
     4        https://bugs.webkit.org/show_bug.cgi?id=167575
     5
     6        Reviewed by Žan Doberšek.
     7
     8        We should clear all the buffers on invalidate to ensure we don't have textures alive after CoordinatedGraphicsScene::purgeGLResources().
     9
     10        Fix crash in media/video-poster-background.html.
     11
     12        * platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp:
     13        (WebCore::TextureMapperPlatformLayerProxy::invalidate): Clear current, pending and all used buffers.
     14
    1152017-01-29  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp

    r211357 r211358  
    7878        m_compositor = nullptr;
    7979        m_targetLayer = nullptr;
     80
     81        m_currentBuffer = nullptr;
     82        m_pendingBuffer = nullptr;
     83        m_releaseUnusedBuffersTimer.stop();
     84        m_usedBuffers.clear();
    8085
    8186        // Clear the timer and dispatch the update function manually now.
Note: See TracChangeset for help on using the changeset viewer.