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

Unified Diff: include/ports/SkFontMgr_custom.h

Issue 1184923002: Refactor SkFontHost_linux into SkFontMgr_custom. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove dead code. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/ports.gyp ('k') | src/ports/SkFontHost_linux.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ports/SkFontMgr_custom.h
diff --git a/include/ports/SkFontMgr_custom.h b/include/ports/SkFontMgr_custom.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a413b024358991ba97d2aa002c295eaf62bd2ea
--- /dev/null
+++ b/include/ports/SkFontMgr_custom.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkFontMgr_custom_DEFINED
+#define SkFontMgr_custom_DEFINED
+
+#include "SkTypes.h"
+
+class SkFontMgr;
+
+/** Create a custom font manager which scans a given directory for font files. */
+SK_API SkFontMgr* SkFontMgr_New_Custom_Directory(const char* dir);
+
+struct SkEmbeddedResource { const uint8_t* data; size_t size; };
reed1 2015/06/15 15:48:07 This struct stuff seems funny. If it is supposed t
bungeman-skia 2015/06/15 16:15:43 No, the entire point is to avoid having a file sys
+struct SkEmbeddedResourceHeader { const SkEmbeddedResource* entries; int count; };
+/** Create a custom font manager which reads font files from embedded data. */
+SK_API SkFontMgr* SkFontMgr_New_Custom_Embedded(const SkEmbeddedResourceHeader* header);
+
+#endif // SkFontMgr_custom_DEFINED
« no previous file with comments | « gyp/ports.gyp ('k') | src/ports/SkFontHost_linux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698