Changeset 85126 in webkit


Ignore:
Timestamp:
Apr 27, 2011 5:17:30 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-27 Adam Barth <abarth@webkit.org>

Reviewed by David Levin.

Make GraphicsContext3DChromium play nice with strict OwnPtrs
https://bugs.webkit.org/show_bug.cgi?id=59659

Attempt #2. Hopefully this time I won't make everything crash.

  • src/GraphicsContext3DChromium.cpp: (WebCore::GraphicsContext3DInternal::initialize):
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r85093 r85126  
     12011-04-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by David Levin.
     4
     5        Make GraphicsContext3DChromium play nice with strict OwnPtrs
     6        https://bugs.webkit.org/show_bug.cgi?id=59659
     7
     8        Attempt #2.  Hopefully this time I won't make everything crash.
     9
     10        * src/GraphicsContext3DChromium.cpp:
     11        (WebCore::GraphicsContext3DInternal::initialize):
     12
    1132011-04-27  Dirk Pranke  <dpranke@chromium.org>
    214
  • trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

    r84916 r85126  
    110110    webAttributes.premultipliedAlpha = attrs.premultipliedAlpha;
    111111    webAttributes.canRecoverFromContextLoss = attrs.canRecoverFromContextLoss;
    112     WebKit::WebGraphicsContext3D* webContext = WebKit::webKitClient()->createGraphicsContext3D();
     112    OwnPtr<WebKit::WebGraphicsContext3D> webContext = adoptPtr(WebKit::webKitClient()->createGraphicsContext3D());
    113113    if (!webContext)
    114114        return false;
     
    121121    if (!m_webViewImpl)
    122122        return false;
    123     if (!webContext->initialize(webAttributes, m_webViewImpl, renderDirectlyToHostWindow)) {
    124         delete webContext;
     123    if (!webContext->initialize(webAttributes, m_webViewImpl, renderDirectlyToHostWindow))
    125124        return false;
    126     }
    127     m_impl.set(webContext);
     125    m_impl = webContext.release();
    128126
    129127#if USE(ACCELERATED_COMPOSITING)
Note: See TracChangeset for help on using the changeset viewer.