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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 compositor_output_surface_filter_ = NULL; | 440 compositor_output_surface_filter_ = NULL; |
441 } | 441 } |
442 | 442 |
443 compositor_thread_.reset(); | 443 compositor_thread_.reset(); |
444 input_handler_manager_.reset(); | 444 input_handler_manager_.reset(); |
445 if (input_event_filter_.get()) { | 445 if (input_event_filter_.get()) { |
446 RemoveFilter(input_event_filter_.get()); | 446 RemoveFilter(input_event_filter_.get()); |
447 input_event_filter_ = NULL; | 447 input_event_filter_ = NULL; |
448 } | 448 } |
449 | 449 |
| 450 // Ramp down IDB before we ramp down WebKit (and V8), since IDB classes might |
| 451 // hold pointers to V8 objects (e.g., via pending requests). |
| 452 main_thread_indexed_db_dispatcher_.reset(); |
| 453 |
450 if (webkit_platform_support_) | 454 if (webkit_platform_support_) |
451 WebKit::shutdown(); | 455 WebKit::shutdown(); |
452 | 456 |
453 lazy_tls.Pointer()->Set(NULL); | 457 lazy_tls.Pointer()->Set(NULL); |
454 | 458 |
455 // TODO(port) | 459 // TODO(port) |
456 #if defined(OS_WIN) | 460 #if defined(OS_WIN) |
457 // Clean up plugin channels before this thread goes away. | 461 // Clean up plugin channels before this thread goes away. |
458 NPChannelBase::CleanupChannels(); | 462 NPChannelBase::CleanupChannels(); |
459 #endif | 463 #endif |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 | 1304 |
1301 } | 1305 } |
1302 | 1306 |
1303 void RenderThreadImpl::SampleGamepads(WebKit::WebGamepads* data) { | 1307 void RenderThreadImpl::SampleGamepads(WebKit::WebGamepads* data) { |
1304 if (!gamepad_shared_memory_reader_) | 1308 if (!gamepad_shared_memory_reader_) |
1305 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); | 1309 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); |
1306 gamepad_shared_memory_reader_->SampleGamepads(*data); | 1310 gamepad_shared_memory_reader_->SampleGamepads(*data); |
1307 } | 1311 } |
1308 | 1312 |
1309 } // namespace content | 1313 } // namespace content |
OLD | NEW |