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
28
29
30
31
32
33
34
35
cc / trees / compositor_commit_data.cc [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/trees/compositor_commit_data.h"
#include "cc/trees/swap_promise.h"
namespace cc {
CompositorCommitData::CompositorCommitData() = default;
CompositorCommitData::~CompositorCommitData() = default;
CompositorCommitData::ScrollUpdateInfo::ScrollUpdateInfo() = default;
CompositorCommitData::ScrollUpdateInfo::ScrollUpdateInfo(
ElementId id,
gfx::Vector2dF delta,
std::optional<TargetSnapAreaElementIds> snap_target_ids)
: element_id(id),
scroll_delta(delta),
snap_target_element_ids(snap_target_ids) {}
CompositorCommitData::ScrollUpdateInfo::ScrollUpdateInfo(
const ScrollUpdateInfo& other) = default;
CompositorCommitData::ScrollUpdateInfo&
CompositorCommitData::ScrollUpdateInfo::operator=(
const ScrollUpdateInfo& other) = default;
CompositorCommitData::ScrollEndInfo::ScrollEndInfo() = default;
CompositorCommitData::ScrollEndInfo::~ScrollEndInfo() = default;
} // namespace cc