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

Side by Side Diff: ui/gfx/harfbuzz_font_skia.h

Issue 2066323002: Remove SK_SUPPORT_LEGACY_TYPEFACE_PTR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Mac fixes Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_ 5 #ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_
6 #define UI_GFX_HARFBUZZ_FONT_SKIA_H_ 6 #define UI_GFX_HARFBUZZ_FONT_SKIA_H_
7 7
8 #include "third_party/harfbuzz-ng/src/hb.h" 8 #include "third_party/harfbuzz-ng/src/hb.h"
9 #include "third_party/skia/include/core/SkRefCnt.h"
9 #include "third_party/skia/include/core/SkScalar.h" 10 #include "third_party/skia/include/core/SkScalar.h"
10 #include "ui/gfx/font_render_params.h" 11 #include "ui/gfx/font_render_params.h"
11 12
12 class SkTypeface; 13 class SkTypeface;
13 14
14 namespace gfx { 15 namespace gfx {
15 16
16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face, 17 hb_font_t* CreateHarfBuzzFont(sk_sp<SkTypeface> skia_face,
17 SkScalar text_size, 18 SkScalar text_size,
18 const FontRenderParams& params, 19 const FontRenderParams& params,
19 bool subpixel_rendering_suppressed); 20 bool subpixel_rendering_suppressed);
20 21
21 } // namespace gfx 22 } // namespace gfx
22 23
23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ 24 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698