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

Unified Diff: cc/trees/proxy_impl.cc

Issue 2075343003: Use a cc::Display for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mailbox-test
Patch Set: layouttests-display: self-nits 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: cc/trees/proxy_impl.cc
diff --git a/cc/trees/proxy_impl.cc b/cc/trees/proxy_impl.cc
index 603f9732cce7f64bb74e001333f8edab280d1e11..60c8c71d353a36f6342c354562e634ca8730de6d 100644
--- a/cc/trees/proxy_impl.cc
+++ b/cc/trees/proxy_impl.cc
@@ -115,6 +115,10 @@ ProxyImpl::~ProxyImpl() {
DCHECK(IsImplThread());
DCHECK(IsMainThreadBlocked());
+ // Take away the OutputSurface before destroying things so it doesn't try
+ // to call into its client mid-shutdown.
+ layer_tree_host_impl_->ReleaseOutputSurface();
+
scheduler_ = nullptr;
external_begin_frame_source_ = nullptr;
unthrottled_begin_frame_source_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698