Closed
Bug 685767
Opened 13 years ago
Closed 13 years ago
Factor blur internals out of gfxBlur into a standalone class in gfx/2d
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: joe, Assigned: joe)
References
Details
Attachments
(2 files)
(deleted),
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
In order to implement shadows in the Cairo Azure backend, we need to have Gaussian blur support. The easiest way to do that is to to make the innards of gfxAlphaBoxBlur into their own class that uses it.
This patch does that, creating mozilla::gfx::AlphaBoxBlur.
Attachment #559364 -
Flags: review?(matt.woodrow)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → joe
Updated•13 years ago
|
Attachment #559364 -
Flags: review?(matt.woodrow) → review+
Comment 1•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Backed out for leaking (see Bug 703125).
https://hg.mozilla.org/mozilla-central/rev/b62e6ee5ba9b
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 3•13 years ago
|
||
With next psuh don't forget bug 702683 patch
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 4•13 years ago
|
||
Stupid bugzilla - was only adding myself and if closed - Reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 5•13 years ago
|
||
It seems that MSVC has a compiler bug that's triggered by AlphaBoxBlur being in the namespace mozilla::gfx. Due to link-time optimization, instead of calling an nsAutoPtr destructor that calls |delete ptr|, it calls a destructor that calls |delete[] ptr|, which doesn't call AlphaBoxBlur's destructor at all.
If we move AlphaBoxBlur to the global namespace, the bug doesn't manifest itself. And since we don't want to do that, if we change from nsAutoPtr to a raw ptr, and call delete on it manually in gfxBlur's destructor, this bug also disappears.
This is an interdiff, on top of the previous patch.
Attachment #575377 -
Flags: review?(matt.woodrow)
Updated•13 years ago
|
Attachment #575377 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 6•13 years ago
|
||
I've just pushed the combined patches on this bug, as well as the fix to bug 702683, to inbound: https://hg.mozilla.org/integration/mozilla-inbound/rev/5549f4202af8
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Joe, can you file a separate bug on investigating if there are any other uses of nsAutoPtr being miscompiled by MSVC?
Comment 9•13 years ago
|
||
(In reply to Joe Drew (:JOEDREW!) from comment #6)
> I've just pushed the combined patches on this bug, as well as the fix to bug
> 702683, to inbound:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/5549f4202af8
https://hg.mozilla.org/mozilla-central/rev/5549f4202af8
(But don't forget comment 8 :-))
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #8)
> Joe, can you file a separate bug on investigating if there are any other
> uses of nsAutoPtr being miscompiled by MSVC?
This is (mentored) bug 704304.
Comment 11•13 years ago
|
||
I think fixed-point division introduced by Bug 633627 has been returned again to integer division by the patch of this bug. Isn't this a regression?
Comment 12•13 years ago
|
||
(In reply to Tetsuro Kato (Tete) from comment #11)
> I think fixed-point division introduced by Bug 633627 has been returned
> again to integer division by the patch of this bug. Isn't this a regression?
Yes it is, can you file a new bug for it?
Comment 13•13 years ago
|
||
Fired a new bug.
https://bugzilla.mozilla.org/show_bug.cgi?id=739969
You need to log in
before you can comment on or make changes to this bug.
Description
•