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

Unified Diff: cc/surfaces/display.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix for patch 1. Created 3 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
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index e3693207031f15a0056d3d9600f33b45476f3d10..d7df1fdd12cb971f7b2f8bccc55b7c6ba07718d6 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;

Powered by Google App Engine
This is Rietveld 408576698