OLD | NEW |
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 307 |
308 RemoveFilter(vc_manager_->video_capture_message_filter()); | 308 RemoveFilter(vc_manager_->video_capture_message_filter()); |
309 | 309 |
310 RemoveFilter(db_message_filter_.get()); | 310 RemoveFilter(db_message_filter_.get()); |
311 db_message_filter_ = NULL; | 311 db_message_filter_ = NULL; |
312 | 312 |
313 // Shutdown the file thread if it's running. | 313 // Shutdown the file thread if it's running. |
314 if (file_thread_.get()) | 314 if (file_thread_.get()) |
315 file_thread_->Stop(); | 315 file_thread_->Stop(); |
316 | 316 |
317 RemoveFilter(compositor_output_surface_filter_.get()); | 317 if (compositor_output_surface_filter_.get()) { |
318 compositor_output_surface_filter_ = NULL; | 318 RemoveFilter(compositor_output_surface_filter_.get()); |
| 319 compositor_output_surface_filter_ = NULL; |
| 320 } |
319 | 321 |
320 if (compositor_initialized_) { | 322 if (compositor_initialized_) { |
321 WebKit::WebCompositor::shutdown(); | 323 WebKit::WebCompositor::shutdown(); |
322 compositor_initialized_ = false; | 324 compositor_initialized_ = false; |
323 } | 325 } |
324 if (compositor_thread_.get()) { | 326 if (compositor_thread_.get()) { |
325 RemoveFilter(compositor_thread_->GetMessageFilter()); | 327 RemoveFilter(compositor_thread_->GetMessageFilter()); |
326 compositor_thread_.reset(); | 328 compositor_thread_.reset(); |
327 } | 329 } |
328 | 330 |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 | 1072 |
1071 scoped_refptr<base::MessageLoopProxy> | 1073 scoped_refptr<base::MessageLoopProxy> |
1072 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1074 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1073 DCHECK(message_loop() == MessageLoop::current()); | 1075 DCHECK(message_loop() == MessageLoop::current()); |
1074 if (!file_thread_.get()) { | 1076 if (!file_thread_.get()) { |
1075 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1077 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1076 file_thread_->Start(); | 1078 file_thread_->Start(); |
1077 } | 1079 } |
1078 return file_thread_->message_loop_proxy(); | 1080 return file_thread_->message_loop_proxy(); |
1079 } | 1081 } |
OLD | NEW |