Closed
Bug 1392163
Opened 8 years ago
Closed 8 years ago
Remove ImageBridgeChild::DispatchReleaseTextureClient()
Categories
(Core :: Graphics: Layers, enhancement)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
Details
Attachments
(1 file)
|
6.20 KB,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
ImageBridgeChild::DispatchReleaseTextureClient() seems not necessary any more.
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sotaro.ikeda.g
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Comment 2•8 years ago
|
||
| Assignee | ||
Updated•8 years ago
|
Attachment #8899325 -
Flags: review?(nical.bugzilla)
| Assignee | ||
Updated•8 years ago
|
Attachment #8899325 -
Flags: review?(nical.bugzilla)
| Assignee | ||
Updated•8 years ago
|
Attachment #8899325 -
Flags: review?(nical.bugzilla)
Comment 3•8 years ago
|
||
I am missing some context, what made it unnecessary?
| Assignee | ||
Comment 4•8 years ago
|
||
ImageBridgeChild::DispatchReleaseTextureClient() is used only by SharedPlanarYCbCrImage::~SharedPlanarYCbCrImage() and SharedRGBImage::~SharedRGBImage(). The role was to release refcount of TextureClient on ImageBridgeChild thread. It was originally added by bug 886219. At that time, TextureClient have to be released on Compositor thread to avoild memory leak. But TextureClient does not have such limitation anymore.
Further SharedPlanarYCbCrImage::~SharedPlanarYCbCrImage() and SharedRGBImage::~SharedRGBImage() do not work as expected originally by Bug 1144906. The change was like the following. mTextureClient was set to null after ImageBridgeChild::DispatchReleaseTextureClient(). There could be a case that ReleaseTextureClient on ImageBridge could happen before clearing mTextureClient.
> - ImageBridgeChild::DispatchReleaseTextureClient(mTextureClient.forget().take());
> + ADDREF_MANUALLY(mTextureClient);
> + ImageBridgeChild::DispatchReleaseTextureClient(mTextureClient);
> + mTextureClient = nullptr;
Updated•8 years ago
|
Attachment #8899325 -
Flags: review?(nical.bugzilla) → review+
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/47027aa05bac
Remove ImageBridgeChild::DispatchReleaseTextureClient() r=nical
Comment 6•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•