RESOLVED FIXED Bug 59659
Make GraphicsContext3DChromium play nice with strict OwnPtrs
https://bugs.webkit.org/show_bug.cgi?id=59659
Summary Make GraphicsContext3DChromium play nice with strict OwnPtrs
Adam Barth
Reported 2011-04-27 16:56:18 PDT
Make GraphicsContext3DChromium play nice with strict OwnPtrs
Attachments
Patch (1.98 KB, patch)
2011-04-27 16:56 PDT, Adam Barth
levin: review+
Adam Barth
Comment 1 2011-04-27 16:56:57 PDT
David Levin
Comment 2 2011-04-27 17:06:25 PDT
Comment on attachment 91385 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=91385&action=review > Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:112 > + OwnPtr<WebKit::WebGraphicsContext3D> webContext = adoptPtr(WebKit::webKitClient()->createGraphicsContext3D()); Since it is part of webKitClient we can't change it to return PassOwnPtr?
Adam Barth
Comment 3 2011-04-27 17:14:49 PDT
Comment on attachment 91385 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=91385&action=review >> Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:112 >> - WebKit::WebGraphicsContext3D* webContext = WebKit::webKitClient()->createGraphicsContext3D(); >> + OwnPtr<WebKit::WebGraphicsContext3D> webContext = adoptPtr(WebKit::webKitClient()->createGraphicsContext3D()); > > Since it is part of webKitClient we can't change it to return PassOwnPtr? I don't think we can use PassOwnPtr in WebKitClient.h. That code needs to be free of WebCore types.
Adam Barth
Comment 4 2011-04-27 17:17:35 PDT
Note You need to log in before you can comment on or make changes to this bug.