Closed Bug 1392163 Opened 8 years ago Closed 8 years ago

Remove ImageBridgeChild::DispatchReleaseTextureClient()

Categories

(Core :: Graphics: Layers, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

Details

Attachments

(1 file)

ImageBridgeChild::DispatchReleaseTextureClient() seems not necessary any more.
Assignee: nobody → sotaro.ikeda.g
Attachment #8899325 - Flags: review?(nical.bugzilla)
Attachment #8899325 - Flags: review?(nical.bugzilla)
Attachment #8899325 - Flags: review?(nical.bugzilla)
I am missing some context, what made it unnecessary?
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;
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: