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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::PreCacheFont(const LOGFONT& log_font) { | 877 void RenderThreadImpl::PreCacheFont(const LOGFONT& log_font) { |
878 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); | 878 Send(new ChildProcessHostMsg_PreCacheFont(log_font)); |
879 } | 879 } |
880 | 880 |
| 881 void RenderThreadImpl::PreCacheFontCharacters(const LOGFONT& log_font, |
| 882 const std::wstring& str) { |
| 883 Send(new ViewHostMsg_PreCacheFontCharacters(log_font, str)); |
| 884 } |
| 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 |
887 bool RenderThreadImpl::IsWebFrameValid(WebKit::WebFrame* web_frame) { | 892 bool RenderThreadImpl::IsWebFrameValid(WebKit::WebFrame* web_frame) { |
888 if (!web_frame) | 893 if (!web_frame) |
889 return false; // We must be shutting down. | 894 return false; // We must be shutting down. |
890 | 895 |
(...skipping 255 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 |