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

Side by Side Diff: skia/ext/SkFontHost_sandbox_win.cpp

Issue 8566026: Implement skia sandbox callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and Update per code review Created 9 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "SkFontHost.h"
6 #include "SkTypeface.h"
7
8 #ifdef WIN32
9
10 #include "SkFontHost_sandbox_win.h"
11
12 #include <windows.h>
13
14 #include "SkTypeface_win.h"
15
16 // static
17 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
18 LOGFONT lf;
19 SkLOGFONTFromTypeface(&typeface, &lf);
20 skia::SandboxSupport::EnsureFontLoad(lf);
21 }
22
23 #else
24
25 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
26 // No-op for all other platforms
27 }
28
29 #endif // WIN32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698