mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 1137151: Remove ref-counting from |OMXVideoEncoder| r=sotaro
Reference counting in |OMXVideoEncoder| is used inconsistently any actually not necessary. This patch removed the code. Users are converted to auto pointers.
This commit is contained in:
parent
e90fcbf7f7
commit
9823b29ee9
@ -278,7 +278,6 @@ private:
|
||||
*/
|
||||
class OMXVideoEncoder MOZ_FINAL : public OMXCodecWrapper
|
||||
{
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(OMXVideoEncoder)
|
||||
public:
|
||||
// Types of output blob format.
|
||||
enum BlobFormat {
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
virtual int32_t SetRates(uint32_t aBitRate, uint32_t aFrameRate) MOZ_OVERRIDE;
|
||||
|
||||
private:
|
||||
RefPtr<android::OMXVideoEncoder> mOMX;
|
||||
nsAutoPtr<android::OMXVideoEncoder> mOMX;
|
||||
android::sp<android::OMXCodecReservation> mReservation;
|
||||
|
||||
webrtc::EncodedImageCallback* mCallback;
|
||||
|
Loading…
Reference in New Issue
Block a user