Changeset 85126 in webkit
- Timestamp:
- Apr 27, 2011 5:17:30 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r85093 r85126 1 2011-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 1 13 2011-04-27 Dirk Pranke <dpranke@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp
r84916 r85126 110 110 webAttributes.premultipliedAlpha = attrs.premultipliedAlpha; 111 111 webAttributes.canRecoverFromContextLoss = attrs.canRecoverFromContextLoss; 112 WebKit::WebGraphicsContext3D* webContext = WebKit::webKitClient()->createGraphicsContext3D();112 OwnPtr<WebKit::WebGraphicsContext3D> webContext = adoptPtr(WebKit::webKitClient()->createGraphicsContext3D()); 113 113 if (!webContext) 114 114 return false; … … 121 121 if (!m_webViewImpl) 122 122 return false; 123 if (!webContext->initialize(webAttributes, m_webViewImpl, renderDirectlyToHostWindow)) { 124 delete webContext; 123 if (!webContext->initialize(webAttributes, m_webViewImpl, renderDirectlyToHostWindow)) 125 124 return false; 126 } 127 m_impl.set(webContext); 125 m_impl = webContext.release(); 128 126 129 127 #if USE(ACCELERATED_COMPOSITING)
Note: See TracChangeset
for help on using the changeset viewer.