summaryrefslogtreecommitdiffstats
path: root/ui/gfx/harfbuzz_font_skia.h
diff options
context:
space:
mode:
authorckocagil <ckocagil@chromium.org>2015-02-05 20:18:57 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-06 04:19:36 +0000
commit42a3f824040f2a251ef13e46387b03ea3382b81a (patch)
tree3bb17ed0b615c892c953ca1e2e1e2a8e914d4f23 /ui/gfx/harfbuzz_font_skia.h
parentb985af1c7d2647db123a76370ea5a09e41151e61 (diff)
downloadchromium_src-42a3f824040f2a251ef13e46387b03ea3382b81a.zip
chromium_src-42a3f824040f2a251ef13e46387b03ea3382b81a.tar.gz
chromium_src-42a3f824040f2a251ef13e46387b03ea3382b81a.tar.bz2
Extract the Skia implementation of HarfBuzz font to its own file
BUG= R=msw Review URL: https://codereview.chromium.org/891183003 Cr-Commit-Position: refs/heads/master@{#314975}
Diffstat (limited to 'ui/gfx/harfbuzz_font_skia.h')
-rw-r--r--ui/gfx/harfbuzz_font_skia.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/gfx/harfbuzz_font_skia.h b/ui/gfx/harfbuzz_font_skia.h
new file mode 100644
index 0000000..8e2289c
--- /dev/null
+++ b/ui/gfx/harfbuzz_font_skia.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_
+#define UI_GFX_HARFBUZZ_FONT_SKIA_H_
+
+#include "third_party/harfbuzz-ng/src/hb.h"
+#include "third_party/skia/include/core/SkScalar.h"
+#include "ui/gfx/font_render_params.h"
+
+class SkTypeface;
+
+namespace gfx {
+
+hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face,
+ SkScalar text_size,
+ const FontRenderParams& params,
+ bool background_is_transparent);
+
+} // namespace gfx
+
+#endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_