diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.cc b/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.cc new file mode 100644 index 00000000000..e6c5bdcc316 --- /dev/null +++ b/chromium/third_party/blink/renderer/modules/animationworklet/worklet_animation_options.cc @@ -0,0 +1,21 @@ +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "third_party/blink/renderer/modules/animationworklet/worklet_animation_options.h" + +#include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h" + +namespace blink { + +WorkletAnimationOptions::WorkletAnimationOptions( + scoped_refptr<SerializedScriptValue> data) + : data_(data) {} + +std::unique_ptr<cc::AnimationOptions> WorkletAnimationOptions::Clone() const { + return std::make_unique<WorkletAnimationOptions>(this->data_); +} + +WorkletAnimationOptions::~WorkletAnimationOptions() {} + +} // namespace blink |