Closed
Bug 606976
Opened 15 years ago
Closed 15 years ago
SharedDIBWin doesn't need to map its shared memory
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Unassigned)
Details
Currently SharedDIB is only used by SharedDIBWin, and that class doesn't actually use the mapped memory segment directly: it only uses it through ::CreateDIBSection. This means that we end up mapping the memory segment twice: once explicitly at http://mxr.mozilla.org/mozilla-central/source/gfx/ipc/SharedDIB.cpp#64 and once implicitly in ::CreateDIBSection.
I think we can just remove the Map() call entirely in SharedDIB. jmathies, can you think of any particular reason we need to map that memory?
![]() |
||
Comment 1•15 years ago
|
||
I don't see why not assuming CreateDIBSection maps the file into a section. Have you tried it, and does CreateDIBSection succeed?
Reporter | ||
Comment 2•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•