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 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 if (!audio_renderer_mixer_manager_.get()) { | 867 if (!audio_renderer_mixer_manager_.get()) { |
868 audio_renderer_mixer_manager_.reset(new AudioRendererMixerManager( | 868 audio_renderer_mixer_manager_.reset(new AudioRendererMixerManager( |
869 audio_hardware::GetOutputSampleRate(), | 869 audio_hardware::GetOutputSampleRate(), |
870 audio_hardware::GetOutputBufferSize())); | 870 audio_hardware::GetOutputBufferSize())); |
871 } | 871 } |
872 | 872 |
873 return audio_renderer_mixer_manager_.get(); | 873 return audio_renderer_mixer_manager_.get(); |
874 } | 874 } |
875 | 875 |
876 #if defined(OS_WIN) | 876 #if defined(OS_WIN) |
| 877 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
| 878 const std::wstring& str) { |
| 879 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); |
| 880 } |
| 881 |
877 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { | 882 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
878 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 883 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
879 } | 884 } |
880 | 885 |
881 void RenderThreadImpl::ReleaseCachedFonts() { | 886 void RenderThreadImpl::ReleaseCachedFonts() { |
882 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); | 887 Send(new ChildProcessHostMsg_ReleaseCachedFonts()); |
883 } | 888 } |
884 | 889 |
885 #endif // OS_WIN | 890 #endif // OS_WIN |
886 | 891 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 | 1151 |
1147 scoped_refptr<base::MessageLoopProxy> | 1152 scoped_refptr<base::MessageLoopProxy> |
1148 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1153 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1149 DCHECK(message_loop() == MessageLoop::current()); | 1154 DCHECK(message_loop() == MessageLoop::current()); |
1150 if (!file_thread_.get()) { | 1155 if (!file_thread_.get()) { |
1151 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1156 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1152 file_thread_->Start(); | 1157 file_thread_->Start(); |
1153 } | 1158 } |
1154 return file_thread_->message_loop_proxy(); | 1159 return file_thread_->message_loop_proxy(); |
1155 } | 1160 } |
OLD | NEW |