コード例 #1
0
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;
}
コード例 #2
0
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();
}
コード例 #3
0
	LayerPtr CloneInitInstance() const{ return CloneImpl(); }