зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e90fcbf7f7
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче