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

Side by Side Diff: src/ports/SkFontMgr_custom_embedded_factory.cpp

Issue 1184923002: Refactor SkFontHost_linux into SkFontMgr_custom. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Don't export embedded. Created 5 years, 6 months 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
« no previous file with comments | « src/ports/SkFontMgr_custom_directory_factory.cpp ('k') | src/ports/SkFontMgr_default_dw.cpp » ('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 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkFontMgr.h"
9
10 struct SkEmbeddedResource { const uint8_t* data; size_t size; };
11 struct SkEmbeddedResourceHeader { const SkEmbeddedResource* entries; int count; };
reed1 2015/06/15 20:05:00 How does this work, with struct definitions in a .
bungeman-skia 2015/06/15 20:39:39 It works the same way any function forward definit
12 SkFontMgr* SkFontMgr_New_Custom_Embedded(const SkEmbeddedResourceHeader* header) ;
13
14 extern "C" const SkEmbeddedResourceHeader SK_EMBEDDED_FONTS;
15 SkFontMgr* SkFontMgr::Factory() {
16 return SkFontMgr_New_Custom_Embedded(&SK_EMBEDDED_FONTS);
17 }
OLDNEW
« no previous file with comments | « src/ports/SkFontMgr_custom_directory_factory.cpp ('k') | src/ports/SkFontMgr_default_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698