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

Unified Diff: cc/surfaces/display.cc

Issue 1044093005: Preliminary compositor disabling patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove renderpass calculation Created 5 years, 8 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/quads/render_pass.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 7ec46727385581123b61289e353b1d6d98821024..498cb19f258f6a5963e7015048e5e2ea6b6088e8 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -147,8 +147,8 @@ bool Display::Draw() {
bool have_damage = false;
if (!frame_data->render_pass_list.empty()) {
surface_size = frame_data->render_pass_list.back()->output_rect.size();
- have_damage =
- !frame_data->render_pass_list.back()->damage_rect.size().IsEmpty();
+ have_damage = !frame_data->render_pass_list.back()->damage_rect.IsEmpty() ||
+ !frame_data->render_pass_list.back()->overlay_rect.IsEmpty();
}
bool avoid_swap = surface_size != current_surface_size_;
bool should_draw = !frame->metadata.latency_info.empty() ||
« no previous file with comments | « cc/quads/render_pass.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698