summaryrefslogtreecommitdiffstats
path: root/cc/trees/property_tree.cc
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-02-24 17:55:38 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-25 01:56:41 +0000
commit6aaeb2eea626993638a204284e61bfc2916f9804 (patch)
tree06fe7b4687849447b015fce4f02d8e503a71cd62 /cc/trees/property_tree.cc
parentae3b7c85a92790c252c470f6fe0c772e5c5959ca (diff)
downloadchromium_src-6aaeb2eea626993638a204284e61bfc2916f9804.zip
chromium_src-6aaeb2eea626993638a204284e61bfc2916f9804.tar.gz
chromium_src-6aaeb2eea626993638a204284e61bfc2916f9804.tar.bz2
cc: Add out-of-line copy ctors for complex classes.
This patch adds out of line copy constructors for classes that our clang-plugin considers heavy. This is an effort to enable copy constructor checks by default. BUG=436357 R=enne@chromium.org, dcheng@chromium.org, thakis@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1732573002 Cr-Commit-Position: refs/heads/master@{#377462}
Diffstat (limited to 'cc/trees/property_tree.cc')
-rw-r--r--cc/trees/property_tree.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index a3c7e5b..31ebad1 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -65,6 +65,8 @@ TransformTree::TransformTree()
device_scale_factor_(1.f),
device_transform_scale_factor_(1.f) {}
+TransformTree::TransformTree(const TransformTree& other) = default;
+
TransformTree::~TransformTree() {
}
@@ -152,6 +154,8 @@ TransformNodeData::TransformNodeData()
combined_maximum_animation_target_scale(0.f),
combined_starting_animation_scale(0.f) {}
+TransformNodeData::TransformNodeData(const TransformNodeData& other) = default;
+
TransformNodeData::~TransformNodeData() {
}
@@ -364,6 +368,8 @@ ClipNodeData::ClipNodeData()
layers_are_clipped_when_surfaces_disabled(false),
resets_clip(false) {}
+ClipNodeData::ClipNodeData(const ClipNodeData& other) = default;
+
bool ClipNodeData::operator==(const ClipNodeData& other) const {
return clip == other.clip &&
combined_clip_in_target_space == other.combined_clip_in_target_space &&
@@ -433,6 +439,8 @@ EffectNodeData::EffectNodeData()
transform_id(0),
clip_id(0) {}
+EffectNodeData::EffectNodeData(const EffectNodeData& other) = default;
+
bool EffectNodeData::operator==(const EffectNodeData& other) const {
return opacity == other.opacity &&
screen_space_opacity == other.screen_space_opacity &&
@@ -490,6 +498,8 @@ ScrollNodeData::ScrollNodeData()
element_id(0),
transform_id(0) {}
+ScrollNodeData::ScrollNodeData(const ScrollNodeData& other) = default;
+
bool ScrollNodeData::operator==(const ScrollNodeData& other) const {
return scrollable == other.scrollable &&
main_thread_scrolling_reasons == other.main_thread_scrolling_reasons &&