ECode Int32PropertyValuesHolder::Clone( /* [out] */ IInterface** holder) { AutoPtr<Int32PropertyValuesHolder> v = new Int32PropertyValuesHolder(mPropertyName, mInt32Keyframes); CloneImpl(v); v->mNativeSetter = mNativeSetter; v->mInt32Keyframes = mInt32Keyframes; v->mInt32AnimatedValue = mInt32AnimatedValue; *holder = (IInt32PropertyValuesHolder*)v; REFCOUNT_ADD(*holder); return NOERROR; }
already_AddRefed<ChannelMediaDecoder> ChannelMediaDecoder::Clone(MediaDecoderInit& aInit) { if (!mResource) { return nullptr; } RefPtr<ChannelMediaDecoder> decoder = CloneImpl(aInit); if (!decoder) { return nullptr; } nsresult rv = decoder->Load(mResource); if (NS_FAILED(rv)) { decoder->Shutdown(); return nullptr; } return decoder.forget(); }
LayerPtr CloneInitInstance() const{ return CloneImpl(); }