| Index: components/html_viewer/web_layer_tree_view_impl.cc
|
| diff --git a/components/html_viewer/web_layer_tree_view_impl.cc b/components/html_viewer/web_layer_tree_view_impl.cc
|
| index 486e803abd55f8541e5f22356026943e799fc74f..cbc4664d7f5c518f7ad68e97d0de42cdeb8c85f7 100644
|
| --- a/components/html_viewer/web_layer_tree_view_impl.cc
|
| +++ b/components/html_viewer/web_layer_tree_view_impl.cc
|
| @@ -72,6 +72,9 @@ WebLayerTreeViewImpl::WebLayerTreeViewImpl(
|
| }
|
|
|
| WebLayerTreeViewImpl::~WebLayerTreeViewImpl() {
|
| + // Destroy the LayerTreeHost before anything else as doing so ensures we're
|
| + // not accessed on the compositor thread (we are the LayerTreeHostClient).
|
| + layer_tree_host_.reset();
|
| }
|
|
|
| void WebLayerTreeViewImpl::WillBeginMainFrame() {
|
|
|