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

Unified Diff: cc/surfaces/display.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Calculate damage of |force_render_surface|. 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 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;

Powered by Google App Engine
This is Rietveld 408576698