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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1036773002: Reset RenderThreadImpl::gpu_va_context_provider_ before shuttind down the main message loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 embedded_worker_dispatcher_.reset(); 781 embedded_worker_dispatcher_.reset();
782 782
783 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might 783 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might
784 // hold pointers to V8 objects (e.g., via pending requests). 784 // hold pointers to V8 objects (e.g., via pending requests).
785 main_thread_indexed_db_dispatcher_.reset(); 785 main_thread_indexed_db_dispatcher_.reset();
786 786
787 main_thread_compositor_task_runner_ = NULL; 787 main_thread_compositor_task_runner_ = NULL;
788 788
789 if (gpu_channel_.get()) 789 if (gpu_channel_.get())
790 gpu_channel_->DestroyChannel(); 790 gpu_channel_->DestroyChannel();
791 gpu_va_context_provider_ = nullptr;
791 792
792 // TODO(port) 793 // TODO(port)
793 #if defined(OS_WIN) 794 #if defined(OS_WIN)
794 // Clean up plugin channels before this thread goes away. 795 // Clean up plugin channels before this thread goes away.
795 NPChannelBase::CleanupChannels(); 796 NPChannelBase::CleanupChannels();
796 #endif 797 #endif
797 798
798 // Shut down the message loop and the renderer scheduler before shutting down 799 // Shut down the message loop and the renderer scheduler before shutting down
799 // Blink. This prevents a scenario where a pending task in the message loop 800 // Blink. This prevents a scenario where a pending task in the message loop
800 // accesses Blink objects after Blink shuts down. 801 // accesses Blink objects after Blink shuts down.
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 } 1852 }
1852 1853
1853 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 1854 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
1854 size_t erased = 1855 size_t erased =
1855 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 1856 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
1856 routing_id_); 1857 routing_id_);
1857 DCHECK_EQ(1u, erased); 1858 DCHECK_EQ(1u, erased);
1858 } 1859 }
1859 1860
1860 } // namespace content 1861 } // namespace content
OLDNEW
« 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