Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 11363008: Fix for 128506: Random Chinese/Japanese characters are missing in documents printed via the syst... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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,
jam 2012/11/09 23:20:41 make this match the order in the header
edisonn 2012/11/12 13:26:40 first function after GetAudioRendererMixerManager
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698