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

Unified Diff: mojo/services/view_manager/window_tree_host_impl.cc

Issue 494883002: Null out context_factory in window_tree_host on shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debugging LOG(ERROR) that slipped in Created 6 years, 4 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: mojo/services/view_manager/window_tree_host_impl.cc
diff --git a/mojo/services/view_manager/window_tree_host_impl.cc b/mojo/services/view_manager/window_tree_host_impl.cc
index fe4f653622b4ea3ecd82386feff2f78f27d3c601..7a7544f45c3d7f014d2f4c0b544bbe631b36bb36 100644
--- a/mojo/services/view_manager/window_tree_host_impl.cc
+++ b/mojo/services/view_manager/window_tree_host_impl.cc
@@ -89,6 +89,8 @@ WindowTreeHostImpl::WindowTreeHostImpl(
WindowTreeHostImpl::~WindowTreeHostImpl() {
DestroyCompositor();
DestroyDispatcher();
+ delete context_factory_;
+ context_factory_ = NULL;
}
////////////////////////////////////////////////////////////////////////////////
@@ -159,7 +161,6 @@ ui::EventProcessor* WindowTreeHostImpl::GetEventProcessor() {
// WindowTreeHostImpl, NativeViewportClient implementation:
void WindowTreeHostImpl::OnCreated(uint64_t native_viewport_id) {
- LOG(ERROR) << "OnCreated " << native_viewport_id;
CommandBufferPtr cb;
gpu_service_->CreateOnscreenGLES2Context(
native_viewport_id, Size::From(bounds_.size()), Get(&cb));
« 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