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

Unified Diff: components/exo/sub_surface.cc

Issue 2041193006: exo: Only create new SurfaceLayer if layer properties change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/exo/sub_surface.cc
diff --git a/components/exo/sub_surface.cc b/components/exo/sub_surface.cc
index a9ef5df1822be27b370222a6d8a68ec8f2fb87d1..edb7a3aa3ff4f6a033fe2a838664ee84238b79ec 100644
--- a/components/exo/sub_surface.cc
+++ b/components/exo/sub_surface.cc
@@ -96,6 +96,7 @@ void SubSurface::OnSurfaceCommit() {
if (IsSurfaceSynchronized())
return;
+ surface_->CheckForCommittingToNewSurface();
surface_->CommitSurfaceHierarchy();
}

Powered by Google App Engine
This is Rietveld 408576698