| 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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 scoped_refptr<base::MessageLoopProxy> | 1323 scoped_refptr<base::MessageLoopProxy> |
| 1324 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1324 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1325 DCHECK(message_loop() == base::MessageLoop::current()); | 1325 DCHECK(message_loop() == base::MessageLoop::current()); |
| 1326 if (!file_thread_) { | 1326 if (!file_thread_) { |
| 1327 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1327 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1328 file_thread_->Start(); | 1328 file_thread_->Start(); |
| 1329 } | 1329 } |
| 1330 return file_thread_->message_loop_proxy(); | 1330 return file_thread_->message_loop_proxy(); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 scoped_refptr<base::MessageLoopProxy> |
| 1334 RenderThreadImpl::GetMediaThreadMessageLoopProxy() { |
| 1335 DCHECK(message_loop() == base::MessageLoop::current()); |
| 1336 if (!media_thread_) { |
| 1337 media_thread_.reset(new base::Thread("Media")); |
| 1338 media_thread_->Start(); |
| 1339 } |
| 1340 return media_thread_->message_loop_proxy(); |
| 1341 } |
| 1342 |
| 1333 void RenderThreadImpl::SetFlingCurveParameters( | 1343 void RenderThreadImpl::SetFlingCurveParameters( |
| 1334 const std::vector<float>& new_touchpad, | 1344 const std::vector<float>& new_touchpad, |
| 1335 const std::vector<float>& new_touchscreen) { | 1345 const std::vector<float>& new_touchscreen) { |
| 1336 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1346 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1337 new_touchscreen); | 1347 new_touchscreen); |
| 1338 | 1348 |
| 1339 } | 1349 } |
| 1340 | 1350 |
| 1341 } // namespace content | 1351 } // namespace content |
| OLD | NEW |