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

Unified Diff: components/exo/surface.cc

Issue 2627713004: exo: Make sure vsync observer is removed when Surface is destroyed. (Closed)
Patch Set: Created 3 years, 11 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: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index cbd8cf387c83bd49e6d94d5a6ae0b9f2d0a85a35..dffcaee6487592251ba2233159b312b3e5792e16 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -205,6 +205,8 @@ Surface::~Surface() {
observer.OnSurfaceDestroying(this);
window_->RemoveObserver(this);
+ if (window_->layer()->GetCompositor())
+ window_->layer()->GetCompositor()->vsync_manager()->RemoveObserver(this);
Fady Samuel 2017/01/11 20:33:04 drive-by question: What does exo use the vsync man
reveman 2017/01/11 21:52:08 We use it to implement the presentation time proto
window_->layer()->SetShowSolidColorContent();
frame_callbacks_.splice(frame_callbacks_.end(), pending_frame_callbacks_);
« 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