Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1660)

Unified Diff: cc/quads/shared_quad_state.cc

Issue 2029813002: cc::SharedQuadState: drop CopyFrom and add copy constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use = default in cc Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/quads/shared_quad_state.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/shared_quad_state.cc
diff --git a/cc/quads/shared_quad_state.cc b/cc/quads/shared_quad_state.cc
index aa630c52f3959dc80b6e6f491ed2c6d6919386e8..cd75f947396c4f99271c47bbcc25aa0bad0bd4f8 100644
--- a/cc/quads/shared_quad_state.cc
+++ b/cc/quads/shared_quad_state.cc
@@ -19,16 +19,14 @@ SharedQuadState::SharedQuadState()
sorting_context_id(0) {
}
+SharedQuadState::SharedQuadState(const SharedQuadState& other) = default;
+
SharedQuadState::~SharedQuadState() {
TRACE_EVENT_OBJECT_DELETED_WITH_ID(
TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"),
"cc::SharedQuadState", this);
}
-void SharedQuadState::CopyFrom(const SharedQuadState* other) {
- *this = *other;
-}
-
void SharedQuadState::SetAll(const gfx::Transform& quad_to_target_transform,
const gfx::Size& quad_layer_bounds,
const gfx::Rect& visible_quad_layer_rect,
« no previous file with comments | « cc/quads/shared_quad_state.h ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698