summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/cssom/css_paint_worklet_input.cc
blob: 3a4827e25c1cf21642d5f471fb015e83265fd721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 <utility>

#include "third_party/blink/renderer/core/css/cssom/css_paint_worklet_input.h"

namespace blink {

CSSPaintWorkletInput::CSSPaintWorkletInput(
    const String& name,
    const FloatSize& container_size,
    float effective_zoom,
    float device_scale_factor,
    int worklet_id,
    PaintWorkletStylePropertyMap::CrossThreadData data,
    Vector<std::unique_ptr<CrossThreadStyleValue>> parsed_input_arguments,
    cc::PaintWorkletInput::PropertyKeys property_keys)
    : PaintWorkletInput(container_size, worklet_id, property_keys),
      name_(name.IsolatedCopy()),
      effective_zoom_(effective_zoom),
      device_scale_factor_(device_scale_factor),
      style_map_data_(std::move(data)),
      parsed_input_arguments_(std::move(parsed_input_arguments)) {}

}  // namespace blink