Changeset 75986 in webkit


Ignore:
Timestamp:
Jan 17, 2011 5:45:14 PM (13 years ago)
Author:
Adam Roben
Message:

Remove contexts from WKCACFContextFlusher before destroying them

We aren't really using WKCACFContextFlusher for anything useful at the
moment, but that will probably change in the near future.

I couldn't come up with a way to test this because it isn't possible to
resize a window in DumpRenderTree.

Fixes <http://webkit.org/b/52573> REGRESSION (r75262): Crash beneath
WKCACFContextFlusher::flushAllContexts when resizing window on page
that uses accelerated compositing

Reviewed by Simon Fraser.

  • platform/graphics/win/WKCACFLayerRenderer.cpp:

(WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer): Remove our
context from WKCACFContextFlusher. (This code was erroneously removed
from WKCACFLayerRenderer::destroyRenderer in r75262. This is a more
sensible place for it.)

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r75985 r75986  
     12011-01-17  Adam Roben  <aroben@apple.com>
     2
     3        Remove contexts from WKCACFContextFlusher before destroying them
     4
     5        We aren't really using WKCACFContextFlusher for anything useful at the
     6        moment, but that will probably change in the near future.
     7
     8        I couldn't come up with a way to test this because it isn't possible to
     9        resize a window in DumpRenderTree.
     10
     11        Fixes <http://webkit.org/b/52573> REGRESSION (r75262): Crash beneath
     12        WKCACFContextFlusher::flushAllContexts when resizing window on page
     13        that uses accelerated compositing
     14
     15        Reviewed by Simon Fraser.
     16
     17        * platform/graphics/win/WKCACFLayerRenderer.cpp:
     18        (WebCore::WKCACFLayerRenderer::~WKCACFLayerRenderer): Remove our
     19        context from WKCACFContextFlusher. (This code was erroneously removed
     20        from WKCACFLayerRenderer::destroyRenderer in r75262. This is a more
     21        sensible place for it.)
     22
    1232011-01-17  Adam Roben  <aroben@apple.com>
    224
  • trunk/Source/WebCore/platform/graphics/win/WKCACFLayerRenderer.cpp

    r75262 r75986  
    226226{
    227227    destroyRenderer();
     228    WKCACFContextFlusher::shared().removeContext(m_context);
    228229    wkCACFContextDestroy(m_context);
    229230}
Note: See TracChangeset for help on using the changeset viewer.