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

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

Issue 867003002: Cache gfx::RenderText instances in views::Label. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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/SkScalar.h" 9 #include "third_party/skia/include/core/SkScalar.h"
10 #include "ui/gfx/font_render_params.h" 10 #include "ui/gfx/font_render_params.h"
11 11
12 class SkTypeface; 12 class SkTypeface;
13 13
14 namespace gfx { 14 namespace gfx {
15 15
16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face, 16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face,
17 SkScalar text_size, 17 SkScalar text_size,
18 const FontRenderParams& params, 18 const FontRenderParams& params,
19 bool background_is_transparent); 19 bool subpixel_rendering_enabled);
20 20
21 } // namespace gfx 21 } // namespace gfx
22 22
23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ 23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_
OLDNEW
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/harfbuzz_font_skia.cc » ('j') | ui/gfx/render_text.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698