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

Side by Side Diff: skia/ext/skia_sandbox_support_win.cc

Issue 8566026: Implement skia sandbox callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « skia/ext/skia_sandbox_support_win.h ('k') | skia/skia.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 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 "skia_sandbox_support_win.h"
vandebo (ex-Chrome) 2011/11/22 22:17:13 nit: tools/sort-header.py says that this comes at
6 #include "SkFontHost.h"
7 #include "SkTypeface_win.h"
8
9 static SkiaEnsureTypefaceAccessible g_skia_ensure_typeface_accessible = NULL;
10
11 SK_API void SetSkiaEnsureTypefaceAccessible(SkiaEnsureTypefaceAccessible func) {
12 // This function is supposed to be called once in process life time.
vandebo (ex-Chrome) 2011/11/22 22:17:13 nit: This function should only be called once.
13 SkASSERT(g_skia_ensure_typeface_accessible == NULL);
14 g_skia_ensure_typeface_accessible = func;
15 }
16
17 // static
18 void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
19 if (g_skia_ensure_typeface_accessible) {
20 LOGFONT lf;
21 SkLOGFONTFromTypeface(&typeface, &lf);
22 g_skia_ensure_typeface_accessible(lf);
23 }
24 }
OLDNEW
« no previous file with comments | « skia/ext/skia_sandbox_support_win.h ('k') | skia/skia.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698