RESOLVED FIXED Bug 124822
ImageBuffer::create should return a unique_ptr instead of OwnPtr.
https://bugs.webkit.org/show_bug.cgi?id=124822
Summary ImageBuffer::create should return a unique_ptr instead of OwnPtr.
Brian Burg
Reported 2013-11-24 18:12:18 PST
Suggested by darin in review of: https://bugs.webkit.org/show_bug.cgi?id=124325
Attachments
v1 (51.97 KB, patch)
2013-11-24 22:22 PST, Brian Burg
no flags
v2 (53.94 KB, patch)
2013-11-24 22:36 PST, Brian Burg
no flags
v3 (54.58 KB, patch)
2013-11-24 22:57 PST, Brian Burg
no flags
v3 (55.64 KB, patch)
2013-11-25 07:21 PST, Brian Burg
no flags
Brian Burg
Comment 1 2013-11-24 22:22:35 PST
EFL EWS Bot
Comment 2 2013-11-24 22:29:15 PST
EFL EWS Bot
Comment 3 2013-11-24 22:33:49 PST
Brian Burg
Comment 4 2013-11-24 22:36:47 PST
EFL EWS Bot
Comment 5 2013-11-24 22:41:23 PST
EFL EWS Bot
Comment 6 2013-11-24 22:43:17 PST
Brian Burg
Comment 7 2013-11-24 22:57:55 PST
EFL EWS Bot
Comment 8 2013-11-24 23:02:15 PST
EFL EWS Bot
Comment 9 2013-11-24 23:03:59 PST
kov's GTK+ EWS bot
Comment 10 2013-11-25 01:07:26 PST
Brian Burg
Comment 11 2013-11-25 07:21:11 PST
EFL EWS Bot
Comment 12 2013-11-25 07:40:18 PST
Sergio Correia (qrwteyrutiyoup)
Comment 13 2013-11-25 07:45:46 PST
Comment on attachment 217805 [details] v3 View in context: https://bugs.webkit.org/attachment.cgi?id=217805&action=review > Source/WebCore/platform/graphics/ImageBuffer.h:84 > + std::unique_ptr<ImageBuffer> buffer(new ImageBuffer(size, resolutionScale, colorSpace, renderingMode, success)); It might be better to use std::make_unique here: auto buffer = std::make_unique<ImageBuffer>(size, resolutionScale, colorSpace, renderingMode, success);
Brian Burg
Comment 14 2013-11-25 08:05:05 PST
(In reply to comment #13) > (From update of attachment 217805 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=217805&action=review > > > Source/WebCore/platform/graphics/ImageBuffer.h:84 > > + std::unique_ptr<ImageBuffer> buffer(new ImageBuffer(size, resolutionScale, colorSpace, renderingMode, success)); > > It might be better to use std::make_unique here: > auto buffer = std::make_unique<ImageBuffer>(size, resolutionScale, colorSpace, renderingMode, success); Ah, true. Thanks for pointing it out.
Brian Burg
Comment 15 2013-11-25 08:07:03 PST
Not sure why WK2 EFL bot is hitting an ICE, or why the preflight test is crashy. :-/
Sergio Correia (qrwteyrutiyoup)
Comment 16 2013-11-25 08:13:54 PST
(In reply to comment #15) > Not sure why WK2 EFL bot is hitting an ICE, or why the preflight test is crashy. :-/ By the looks of the error message, looks like it hit an OOM condition, which in general isn't related to the patch being tested. Just to make your life harder :)
Andreas Kling
Comment 17 2013-11-26 14:19:05 PST
Comment on attachment 217805 [details] v3 r=me. EFL EWS has been ICE'ing randomly for ages, nothing to do with your patch.
WebKit Commit Bot
Comment 18 2013-11-26 14:55:42 PST
Comment on attachment 217805 [details] v3 Clearing flags on attachment: 217805 Committed r159791: <http://trac.webkit.org/changeset/159791>
WebKit Commit Bot
Comment 19 2013-11-26 14:55:46 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.