WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
v2
(53.94 KB, patch)
2013-11-24 22:36 PST
,
Brian Burg
no flags
Details
Formatted Diff
Diff
v3
(54.58 KB, patch)
2013-11-24 22:57 PST
,
Brian Burg
no flags
Details
Formatted Diff
Diff
v3
(55.64 KB, patch)
2013-11-25 07:21 PST
,
Brian Burg
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Brian Burg
Comment 1
2013-11-24 22:22:35 PST
Created
attachment 217772
[details]
v1
EFL EWS Bot
Comment 2
2013-11-24 22:29:15 PST
Comment on
attachment 217772
[details]
v1
Attachment 217772
[details]
did not pass efl-ews (efl): Output:
http://webkit-queues.appspot.com/results/35168398
EFL EWS Bot
Comment 3
2013-11-24 22:33:49 PST
Comment on
attachment 217772
[details]
v1
Attachment 217772
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/35318405
Brian Burg
Comment 4
2013-11-24 22:36:47 PST
Created
attachment 217773
[details]
v2
EFL EWS Bot
Comment 5
2013-11-24 22:41:23 PST
Comment on
attachment 217773
[details]
v2
Attachment 217773
[details]
did not pass efl-ews (efl): Output:
http://webkit-queues.appspot.com/results/36148162
EFL EWS Bot
Comment 6
2013-11-24 22:43:17 PST
Comment on
attachment 217773
[details]
v2
Attachment 217773
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/35188428
Brian Burg
Comment 7
2013-11-24 22:57:55 PST
Created
attachment 217775
[details]
v3
EFL EWS Bot
Comment 8
2013-11-24 23:02:15 PST
Comment on
attachment 217775
[details]
v3
Attachment 217775
[details]
did not pass efl-ews (efl): Output:
http://webkit-queues.appspot.com/results/35358389
EFL EWS Bot
Comment 9
2013-11-24 23:03:59 PST
Comment on
attachment 217775
[details]
v3
Attachment 217775
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/35318411
kov's GTK+ EWS bot
Comment 10
2013-11-25 01:07:26 PST
Comment on
attachment 217775
[details]
v3
Attachment 217775
[details]
did not pass gtk-ews (gtk): Output:
http://webkit-queues.appspot.com/results/35328394
Brian Burg
Comment 11
2013-11-25 07:21:11 PST
Created
attachment 217805
[details]
v3
EFL EWS Bot
Comment 12
2013-11-25 07:40:18 PST
Comment on
attachment 217805
[details]
v3
Attachment 217805
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/36468068
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.
Top of Page
Format For Printing
XML
Clone This Bug