summaryrefslogtreecommitdiffstats
path: root/cc/debug
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/debug
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/debug')
-rw-r--r--cc/debug/layer_tree_debug_state.cc3
-rw-r--r--cc/debug/layer_tree_debug_state.h1
-rw-r--r--cc/debug/rendering_stats.cc5
-rw-r--r--cc/debug/rendering_stats.h2
4 files changed, 11 insertions, 0 deletions
diff --git a/cc/debug/layer_tree_debug_state.cc b/cc/debug/layer_tree_debug_state.cc
index a7ea1d6..3779dcc 100644
--- a/cc/debug/layer_tree_debug_state.cc
+++ b/cc/debug/layer_tree_debug_state.cc
@@ -28,6 +28,9 @@ LayerTreeDebugState::LayerTreeDebugState()
show_picture_borders(false),
record_rendering_stats_(false) {}
+LayerTreeDebugState::LayerTreeDebugState(const LayerTreeDebugState& other) =
+ default;
+
LayerTreeDebugState::~LayerTreeDebugState() {}
void LayerTreeDebugState::SetRecordRenderingStats(bool enabled) {
diff --git a/cc/debug/layer_tree_debug_state.h b/cc/debug/layer_tree_debug_state.h
index 3b5ba3a..0e40d13 100644
--- a/cc/debug/layer_tree_debug_state.h
+++ b/cc/debug/layer_tree_debug_state.h
@@ -16,6 +16,7 @@ class LayerTreeDebugState;
class CC_EXPORT LayerTreeDebugState {
public:
LayerTreeDebugState();
+ LayerTreeDebugState(const LayerTreeDebugState& other);
~LayerTreeDebugState();
bool show_fps_counter;
diff --git a/cc/debug/rendering_stats.cc b/cc/debug/rendering_stats.cc
index a3d7a43..b78b4f9 100644
--- a/cc/debug/rendering_stats.cc
+++ b/cc/debug/rendering_stats.cc
@@ -9,6 +9,9 @@ namespace cc {
RenderingStats::TimeDeltaList::TimeDeltaList() {
}
+RenderingStats::TimeDeltaList::TimeDeltaList(const TimeDeltaList& other) =
+ default;
+
RenderingStats::TimeDeltaList::~TimeDeltaList() {
}
@@ -42,6 +45,8 @@ RenderingStats::RenderingStats()
checkerboarded_no_recording_content_area(0),
checkerboarded_needs_raster_content_area(0) {}
+RenderingStats::RenderingStats(const RenderingStats& other) = default;
+
RenderingStats::~RenderingStats() {
}
diff --git a/cc/debug/rendering_stats.h b/cc/debug/rendering_stats.h
index f296447..d6d4478 100644
--- a/cc/debug/rendering_stats.h
+++ b/cc/debug/rendering_stats.h
@@ -22,6 +22,7 @@ struct CC_EXPORT RenderingStats {
class CC_EXPORT TimeDeltaList {
public:
TimeDeltaList();
+ TimeDeltaList(const TimeDeltaList& other);
~TimeDeltaList();
void Append(base::TimeDelta value);
@@ -37,6 +38,7 @@ struct CC_EXPORT RenderingStats {
};
RenderingStats();
+ RenderingStats(const RenderingStats& other);
~RenderingStats();
// Note: when adding new members, please remember to update Add in