Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
39990946
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
39990946
编写于
8月 26, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[OT] Use relaxed ops for recursing into GSUB/GPOS lookups again
上级
d8c57e85
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
8 deletion
+16
-8
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+2
-2
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+2
-2
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+10
-2
src/hb-ot-layout.hh
src/hb-ot-layout.hh
+2
-2
未找到文件。
src/hb-ot-layout-gpos-table.hh
浏览文件 @
39990946
...
@@ -1630,13 +1630,13 @@ GPOS::position_finish_offsets (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
...
@@ -1630,13 +1630,13 @@ GPOS::position_finish_offsets (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
template
<
typename
context_t
>
template
<
typename
context_t
>
/*static*/
inline
typename
context_t
::
return_t
PosLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
/*static*/
inline
typename
context_t
::
return_t
PosLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
{
{
const
PosLookup
&
l
=
_get_gpos
(
c
->
face
)
->
get_lookup
(
lookup_index
);
const
PosLookup
&
l
=
_get_gpos
_relaxed
(
c
->
face
)
->
get_lookup
(
lookup_index
);
return
l
.
dispatch
(
c
);
return
l
.
dispatch
(
c
);
}
}
/*static*/
inline
bool
PosLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
/*static*/
inline
bool
PosLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
{
{
const
PosLookup
&
l
=
_get_gpos
(
c
->
face
).
get_lookup
(
lookup_index
);
const
PosLookup
&
l
=
_get_gpos
_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
c
->
set_lookup_index
(
lookup_index
);
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
39990946
...
@@ -1351,13 +1351,13 @@ GSUB::substitute_start (hb_font_t *font, hb_buffer_t *buffer)
...
@@ -1351,13 +1351,13 @@ GSUB::substitute_start (hb_font_t *font, hb_buffer_t *buffer)
template
<
typename
context_t
>
template
<
typename
context_t
>
/*static*/
inline
typename
context_t
::
return_t
SubstLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
/*static*/
inline
typename
context_t
::
return_t
SubstLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
{
{
const
SubstLookup
&
l
=
_get_gsub
(
c
->
face
).
get_lookup
(
lookup_index
);
const
SubstLookup
&
l
=
_get_gsub
_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
return
l
.
dispatch
(
c
);
return
l
.
dispatch
(
c
);
}
}
/*static*/
inline
bool
SubstLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
/*static*/
inline
bool
SubstLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
{
{
const
SubstLookup
&
l
=
_get_gsub
(
c
->
face
).
get_lookup
(
lookup_index
);
const
SubstLookup
&
l
=
_get_gsub
_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
c
->
set_lookup_index
(
lookup_index
);
...
...
src/hb-ot-layout.cc
浏览文件 @
39990946
...
@@ -66,21 +66,29 @@ static hb_blob_t * _get_gsub_blob (hb_face_t *face)
...
@@ -66,21 +66,29 @@ static hb_blob_t * _get_gsub_blob (hb_face_t *face)
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
hb_blob_get_empty
();
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
hb_blob_get_empty
();
return
hb_ot_face_data
(
face
)
->
table
.
GSUB
->
blob
;
return
hb_ot_face_data
(
face
)
->
table
.
GSUB
->
blob
;
}
}
inline
const
OT
::
GSUB
&
_get_gsub
(
hb_face_t
*
face
)
static
inline
const
OT
::
GSUB
&
_get_gsub
(
hb_face_t
*
face
)
{
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
GSUB
);
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
GSUB
);
return
*
hb_ot_face_data
(
face
)
->
table
.
GSUB
->
table
;
return
*
hb_ot_face_data
(
face
)
->
table
.
GSUB
->
table
;
}
}
inline
const
OT
::
GSUB
&
_get_gsub_relaxed
(
hb_face_t
*
face
)
{
return
*
hb_ot_face_data
(
face
)
->
table
.
GSUB
.
get_relaxed
()
->
table
;
}
static
hb_blob_t
*
_get_gpos_blob
(
hb_face_t
*
face
)
static
hb_blob_t
*
_get_gpos_blob
(
hb_face_t
*
face
)
{
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
hb_blob_get_empty
();
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
hb_blob_get_empty
();
return
hb_ot_face_data
(
face
)
->
table
.
GPOS
->
blob
;
return
hb_ot_face_data
(
face
)
->
table
.
GPOS
->
blob
;
}
}
inline
const
OT
::
GPOS
&
_get_gpos
(
hb_face_t
*
face
)
static
inline
const
OT
::
GPOS
&
_get_gpos
(
hb_face_t
*
face
)
{
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
GPOS
);
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
GPOS
);
return
*
hb_ot_face_data
(
face
)
->
table
.
GPOS
->
table
;
return
*
hb_ot_face_data
(
face
)
->
table
.
GPOS
->
table
;
}
}
inline
const
OT
::
GPOS
&
_get_gpos_relaxed
(
hb_face_t
*
face
)
{
return
*
hb_ot_face_data
(
face
)
->
table
.
GPOS
.
get_relaxed
()
->
table
;
}
/*
/*
...
...
src/hb-ot-layout.hh
浏览文件 @
39990946
...
@@ -45,8 +45,8 @@ namespace OT
...
@@ -45,8 +45,8 @@ namespace OT
}
}
HB_INTERNAL
const
OT
::
GDEF
&
_get_gdef
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GDEF
&
_get_gdef
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GSUB
&
_get_gsub
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GSUB
&
_get_gsub
_relaxed
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GPOS
&
_get_gpos
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GPOS
&
_get_gpos
_relaxed
(
hb_face_t
*
face
);
/* Private API corresponding to hb-ot-layout.h: */
/* Private API corresponding to hb-ot-layout.h: */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录