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

Unified Diff: ui/aura/mus/window_port_mus.cc

Issue 2831763002: Fix SurfaceIds in mus with surface sync off. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.cc
diff --git a/ui/aura/mus/window_port_mus.cc b/ui/aura/mus/window_port_mus.cc
index 0621b0f8aedeb1c38c22de9e22c2c1f8c5329595..d5cec7110aedeb1342bde19e1f148313295baf0d 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -524,7 +524,7 @@ void WindowPortMus::OnPropertyChanged(const void* key,
void WindowPortMus::UpdatePrimarySurfaceInfo() {
bool embeds_surface = window_mus_type() == WindowMusType::TOP_LEVEL_IN_WM ||
window_mus_type() == WindowMusType::EMBED_IN_OWNER;
- if (!embeds_surface)
+ if (!embeds_surface || !window_tree_client_->enable_surface_synchronization_)
return;
if (!frame_sink_id_.is_valid() || !local_surface_id_.is_valid())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698