diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-09 05:25:31 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-09 05:25:31 +0000 |
commit | 5790d92e12c225bfe1683c81cf223dcf64302d1d (patch) | |
tree | 6f58f7e47ef43377cde1c34b33d6f95b15b67f75 /content/ppapi_plugin | |
parent | eaa60485f027b00047a2e142d9616ede4333a46b (diff) | |
download | chromium_src-5790d92e12c225bfe1683c81cf223dcf64302d1d.zip chromium_src-5790d92e12c225bfe1683c81cf223dcf64302d1d.tar.gz chromium_src-5790d92e12c225bfe1683c81cf223dcf64302d1d.tar.bz2 |
Enable sending requests to pre-cache fonts from pepper plugin processes.
BUG=None
TEST=Pepper Flash should render the text on http://www.adventmedia.net/#/home correctly.
Review URL: http://codereview.chromium.org/8479024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/ppapi_plugin')
-rw-r--r-- | content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc index 4733909..a2acb57 100644 --- a/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc +++ b/content/ppapi_plugin/ppapi_webkitplatformsupport_impl.cc @@ -10,6 +10,9 @@ #include "base/logging.h" #include "base/string16.h" #include "build/build_config.h" +#include "content/common/child_process_messages.h" +#include "content/common/child_thread.h" +#include "ipc/ipc_sync_message_filter.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptValue.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" @@ -59,11 +62,11 @@ class PpapiWebKitPlatformSupportImpl::SandboxSupport : public WebSandboxSupport bool PpapiWebKitPlatformSupportImpl::SandboxSupport::ensureFontLoaded( HFONT font) { - // TODO(brettw) this should do the something similar to what - // RendererWebKitPlatformSupportImpl does and request that the browser load - // the font. - NOTIMPLEMENTED(); - return false; + LOGFONT logfont; + GetObject(font, sizeof(LOGFONT), &logfont); + + return ChildThread::current()->sync_message_filter()->Send( + new ChildProcessHostMsg_PreCacheFont(logfont)); } #elif defined(OS_MACOSX) |