Index: cc/quads/render_pass.cc |
diff --git a/cc/quads/render_pass.cc b/cc/quads/render_pass.cc |
index 0a868e3e057c084b2b7b8b31924b0ac47d09552b..125291f0ca5063274f15e12822fecf67572ad7c3 100644 |
--- a/cc/quads/render_pass.cc |
+++ b/cc/quads/render_pass.cc |
@@ -112,7 +112,7 @@ void RenderPass::CopyAll(const std::vector<std::unique_ptr<RenderPass>>& in, |
for (const auto& shared_quad_state : source->shared_quad_state_list) { |
SharedQuadState* copy_shared_quad_state = |
copy_pass->CreateAndAppendSharedQuadState(); |
- copy_shared_quad_state->CopyFrom(shared_quad_state); |
+ *copy_shared_quad_state = *shared_quad_state; |
} |
SharedQuadStateList::Iterator sqs_iter = |
source->shared_quad_state_list.begin(); |