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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 if (!audio_renderer_mixer_manager_.get()) { | 847 if (!audio_renderer_mixer_manager_.get()) { |
848 audio_renderer_mixer_manager_.reset(new AudioRendererMixerManager( | 848 audio_renderer_mixer_manager_.reset(new AudioRendererMixerManager( |
849 GetAudioOutputSampleRate(), | 849 GetAudioOutputSampleRate(), |
850 GetAudioOutputBufferSize())); | 850 GetAudioOutputBufferSize())); |
851 } | 851 } |
852 | 852 |
853 return audio_renderer_mixer_manager_.get(); | 853 return audio_renderer_mixer_manager_.get(); |
854 } | 854 } |
855 | 855 |
856 #if defined(OS_WIN) | 856 #if defined(OS_WIN) |
| 857 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
| 858 const std::wstring& str) { |
| 859 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); |
| 860 } |
| 861 |
857 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { | 862 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
858 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 863 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
859 } | 864 } |
860 | 865 |
861 void RenderThreadImpl::ReleaseCachedFonts() { | 866 void RenderThreadImpl::ReleaseCachedFonts() { |
862 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); | 867 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); |
863 } | 868 } |
864 | 869 |
865 #endif // OS_WIN | 870 #endif // OS_WIN |
866 | 871 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1116 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1112 DCHECK(message_loop() == MessageLoop::current()); | 1117 DCHECK(message_loop() == MessageLoop::current()); |
1113 if (!file_thread_.get()) { | 1118 if (!file_thread_.get()) { |
1114 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1119 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1115 file_thread_->Start(); | 1120 file_thread_->Start(); |
1116 } | 1121 } |
1117 return file_thread_->message_loop_proxy(); | 1122 return file_thread_->message_loop_proxy(); |
1118 } | 1123 } |
1119 | 1124 |
1120 } // namespace content | 1125 } // namespace content |
OLD | NEW |