| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 audio_hardware_config_.reset(new media::AudioHardwareConfig( | 993 audio_hardware_config_.reset(new media::AudioHardwareConfig( |
| 994 input_params, output_params)); | 994 input_params, output_params)); |
| 995 audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get()); | 995 audio_message_filter_->SetAudioHardwareConfig(audio_hardware_config_.get()); |
| 996 } | 996 } |
| 997 | 997 |
| 998 return audio_hardware_config_.get(); | 998 return audio_hardware_config_.get(); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 #if defined(OS_WIN) | 1001 #if defined(OS_WIN) |
| 1002 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, | 1002 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
| 1003 const string16& str) { | 1003 const base::string16& str) { |
| 1004 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); | 1004 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { | 1007 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
| 1008 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 1008 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 void RenderThreadImpl::ReleaseCachedFonts() { | 1011 void RenderThreadImpl::ReleaseCachedFonts() { |
| 1012 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); | 1012 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); |
| 1013 } | 1013 } |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1370 if (!gamepad_shared_memory_reader_) | 1370 if (!gamepad_shared_memory_reader_) |
| 1371 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); | 1371 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); |
| 1372 gamepad_shared_memory_reader_->SampleGamepads(*data); | 1372 gamepad_shared_memory_reader_->SampleGamepads(*data); |
| 1373 } | 1373 } |
| 1374 | 1374 |
| 1375 base::ProcessId RenderThreadImpl::renderer_process_id() const { | 1375 base::ProcessId RenderThreadImpl::renderer_process_id() const { |
| 1376 return renderer_process_id_; | 1376 return renderer_process_id_; |
| 1377 } | 1377 } |
| 1378 | 1378 |
| 1379 } // namespace content | 1379 } // namespace content |
| OLD | NEW |