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

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: Fix errors in checkin 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
vandebo (ex-Chrome) 2011/11/18 21:35:18 You should include build/build_config.h and use th
arthurhsu 2011/11/22 00:56:23 Done.
9
10 #include "SkFontHost_sandbox_win.h"
11 #include "SkTypeface_win.h"
12
13 // static
14 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
15 if (skia::g_SkiaSandboxSupport) {
16 LOGFONT lf;
17 SkLOGFONTFromTypeface(&typeface, &lf);
18 skia::g_SkiaSandboxSupport->EnsureFontLoad(lf);
19 }
20 }
21
22 #else
23
24 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
vandebo (ex-Chrome) 2011/11/18 21:35:18 Lets use Skia's version in the non-windows case.
arthurhsu 2011/11/22 00:56:23 Done.
25 // No-op for all other platforms
26 }
27
28 #endif // WIN32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698