Closed
Bug 1288649
Opened 8 years ago
Closed 8 years ago
Fix non-unified-build errors for dom/canvas
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(5 files)
It's that time again!
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/66408/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66408/
Attachment #8773647 -
Flags: review?(ethlin)
Attachment #8773648 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 2•8 years ago
|
||
While fixing non-unified-build errors in dom/canvas, I started hitting a static_assert that we were calling IsPowerOfTwo with a signed type. It turns out we have at least three copies of IsPowerOfTwo() in the tree. Let's drop the non-mfbt ones. Review commit: https://reviewboard.mozilla.org/r/66410/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66410/
Assignee | ||
Comment 3•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/66412/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66412/
Comment 4•8 years ago
|
||
Comment on attachment 8773648 [details] Bug 1288649 - Use mfbt IsPowerOfTwo funcs in gfx/. - https://reviewboard.mozilla.org/r/66410/#review63180 ::: gfx/thebes/gfxUtils.h:299 (Diff revision 1) > /** > - * Returns the first integer greater than or equal to |aNumber| which is a > + * Returns the first integer greater than |aNumber| which is a power of two. > - * power of two. Undefined for |aNumber| < 0. > */ > -static inline int > +static int > NextPowerOfTwo(int aNumber) Although the name for this function is not great. The semantics are the ones that we want. i.e. NextPowerOfTwo(4) == 4. It would be better to change the existing callers to use RoundUpPow2
Attachment #8773648 -
Flags: review?(jmuizelaar) → review-
Assignee | ||
Comment 5•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/66602/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66602/
Attachment #8773972 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 6•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/66604/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/66604/
Assignee | ||
Comment 7•8 years ago
|
||
Looking green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2a51457b8c9a
Comment 8•8 years ago
|
||
Comment on attachment 8773647 [details] Bug 1288649 - Fix non-unified-build errors. - https://reviewboard.mozilla.org/r/66408/#review63462
Attachment #8773647 -
Flags: review?(ethlin) → review+
Comment 9•8 years ago
|
||
Comment on attachment 8773972 [details] Bug 1288649 - Remove NextPowerOfTwo. - https://reviewboard.mozilla.org/r/66602/#review63634
Attachment #8773972 -
Flags: review?(jmuizelaar) → review+
Comment 10•8 years ago
|
||
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/91f0e0f0e398 Fix non-unified-build errors. - r=ethlin https://hg.mozilla.org/integration/mozilla-inbound/rev/cb620c9d9139 Use mfbt IsPowerOfTwo funcs in gfx/. - r=jrmuizel https://hg.mozilla.org/integration/mozilla-inbound/rev/eb943039fc6d 2-arg ctors shouldn't be explicit. https://hg.mozilla.org/integration/mozilla-inbound/rev/19686b2399b5 Remove NextPowerOfTwo. - r=jrmuizel
Comment 11•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/91f0e0f0e398 https://hg.mozilla.org/mozilla-central/rev/cb620c9d9139 https://hg.mozilla.org/mozilla-central/rev/eb943039fc6d https://hg.mozilla.org/mozilla-central/rev/19686b2399b5
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•