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

Unified Diff: cc/quads/draw_quad_perftest.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/ipc/cc_param_traits_unittest.cc ('k') | cc/quads/draw_quad_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_quad_perftest.cc
diff --git a/cc/quads/draw_quad_perftest.cc b/cc/quads/draw_quad_perftest.cc
index 99b9c970fe6db906436a938be07574be1ef85dc7..b4b5605b112848a3a687f78ace16cf0944bd12f1 100644
--- a/cc/quads/draw_quad_perftest.cc
+++ b/cc/quads/draw_quad_perftest.cc
@@ -48,7 +48,7 @@ class DrawQuadPerfTest : public testing::Test {
SharedQuadState* new_shared_state(
CreateSharedQuadState(render_pass_.get()));
shared_state_ = render_pass_->CreateAndAppendSharedQuadState();
- shared_state_->CopyFrom(new_shared_state);
+ *shared_state_ = *new_shared_state;
}
void CleanUpRenderPass() {
« no previous file with comments | « cc/ipc/cc_param_traits_unittest.cc ('k') | cc/quads/draw_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698