Changeset 69127 in webkit


Ignore:
Timestamp:
Oct 5, 2010 11:20:06 AM (14 years ago)
Author:
cmarrin@apple.com
Message:

2010-10-05 Chris Marrin <cmarrin@apple.com>

Reviewed by Adam Roben.

Fix ownership of GraphicsContext3D in SharedGraphicsContext3D to prevent early deallocation and crash
https://bugs.webkit.org/show_bug.cgi?id=47197

This is work in progress and the crash only happens with ACCELERATED_2D_CANVAS turned on (which is off
by default). Many existing test cases will crash before and after this patch.

  • platform/graphics/gpu/SharedGraphicsContext3D.cpp: (WebCore::SharedGraphicsContext3D::create):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69126 r69127  
     12010-10-05  Chris Marrin  <cmarrin@apple.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        Fix ownership of GraphicsContext3D in SharedGraphicsContext3D to prevent early deallocation and crash
     6        https://bugs.webkit.org/show_bug.cgi?id=47197
     7
     8        This is work in progress and the crash only happens with ACCELERATED_2D_CANVAS turned on (which is off
     9        by default). Many existing test cases will crash before and after this patch.
     10
     11        * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
     12        (WebCore::SharedGraphicsContext3D::create):
     13
    1142010-10-05  Tony Chang  <tony@chromium.org>
    215
  • trunk/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp

    r69053 r69127  
    5656    if (!context)
    5757        return 0;
    58     return adoptRef(new SharedGraphicsContext3D(context.get()));
     58    return adoptRef(new SharedGraphicsContext3D(context.release()));
    5959}
    6060
Note: See TracChangeset for help on using the changeset viewer.