Index: cc/surfaces/display.cc |
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc |
index 846897b21806db19b8c100a9660caa75ee05f441..c242bc7b79ecdd73c2ad906b1ae2c69902fc0517 100644 |
--- a/cc/surfaces/display.cc |
+++ b/cc/surfaces/display.cc |
@@ -277,9 +277,8 @@ bool Display::DrawAndSwap() { |
stored_latency_info_.end()); |
stored_latency_info_.clear(); |
bool have_copy_requests = false; |
- for (const auto& pass : frame.render_pass_list) { |
+ for (const auto& pass : frame.render_pass_list) |
have_copy_requests |= !pass->copy_requests.empty(); |
- } |
gfx::Size surface_size; |
bool have_damage = false; |