Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
1e58794b
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
1e58794b
编写于
10月 08, 2019
作者:
C
Chinmay Garde
提交者:
GitHub
10月 08, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Upgrade compiler to Clang 10. (#11256)" (#13017)
This reverts commit
9ce33571
.
上级
9ce33571
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
51 addition
and
51 deletion
+51
-51
DEPS
DEPS
+2
-2
shell/common/input_events_unittests.cc
shell/common/input_events_unittests.cc
+49
-49
未找到文件。
DEPS
浏览文件 @
1e58794b
...
...
@@ -136,7 +136,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
73331c60597020b7ba4743cbefef24561e32eca7
',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
edd0f2d19604a7d63deb20e9c19c1412acb8a9bd
',
# Fuchsia compatibility
#
...
...
@@ -524,7 +524,7 @@ deps = {
'packages': [
{
'package': 'fuchsia/clang/${{platform}}',
'version': 'git_revision:
cea8882254f97ae82867e25e736959d1cfa31896
'
'version': 'git_revision:
de39621f0f03f20633bdfa50bde97a3908bf6e98
'
}
],
'condition': 'host_os == "mac" or host_os == "linux"',
...
...
shell/common/input_events_unittests.cc
浏览文件 @
1e58794b
...
...
@@ -183,53 +183,53 @@ TEST_F(ShellTest, DelayAtMostOneEventForFasterThanVSyncInputEvents) {
TEST_F
(
ShellTest
,
HandlesActualIphoneXsInputEvents
)
{
// Actual delivery times measured on iPhone Xs, in the unit of frame_time
// (16.67ms for 60Hz).
double
iphone_xs_times
[]
=
{
0.15
,
1.0773046874999999
,
2.1738720703124996
,
3.0579052734374996
,
4.0890087890624995
,
5.0952685546875
,
6.1251708984375
,
7.1253076171875
,
8.125927734374999
,
9.37248046875
,
10.133950195312499
,
11.161201171875
,
12.226992187499999
,
13.1443798828125
,
14.440327148437499
,
15.091684570312498
,
16.138681640625
,
17.126469726562497
,
18.1592431640625
,
19.371372070312496
,
20.033774414062496
,
21.021782226562497
,
22.070053710937497
,
23.325541992187496
,
24.119648437499997
,
25.084262695312496
,
26.077866210937497
,
27.036547851562496
,
28.035073242187497
,
29.081411132812498
,
30.066064453124998
,
31.089360351562497
,
32.086142578125
,
33.4618798828125
,
34.14697265624999
,
35.0513525390625
,
36.136025390624994
,
37.1618408203125
,
38.144472656249995
,
39.201123046875
,
40.4339501953125
,
41.1552099609375
,
42.102128906249995
,
43.0426318359375
,
44.070131835937495
,
45.08862304687499
,
46.091469726562494
};
constexpr
double
iphone_xs_times
[]
=
{
0.15
,
1.0773046874999999
,
2.1738720703124996
,
3.0579052734374996
,
4.0890087890624995
,
5.0952685546875
,
6.1251708984375
,
7.1253076171875
,
8.125927734374999
,
9.37248046875
,
10.133950195312499
,
11.161201171875
,
12.226992187499999
,
13.1443798828125
,
14.440327148437499
,
15.091684570312498
,
16.138681640625
,
17.126469726562497
,
18.1592431640625
,
19.371372070312496
,
20.033774414062496
,
21.021782226562497
,
22.070053710937497
,
23.325541992187496
,
24.119648437499997
,
25.084262695312496
,
26.077866210937497
,
27.036547851562496
,
28.035073242187497
,
29.081411132812498
,
30.066064453124998
,
31.089360351562497
,
32.086142578125
,
33.4618798828125
,
34.14697265624999
,
35.0513525390625
,
36.136025390624994
,
37.1618408203125
,
38.144472656249995
,
39.201123046875
,
40.4339501953125
,
41.1552099609375
,
42.102128906249995
,
43.0426318359375
,
44.070131835937495
,
45.08862304687499
,
46.091469726562494
};
constexpr
int
n
=
sizeof
(
iphone_xs_times
)
/
sizeof
(
iphone_xs_times
[
0
]);
// We don't use `constexpr int frame_time` here because MSVC doesn't handle
// it well with lambda capture.
...
...
@@ -239,8 +239,8 @@ TEST_F(ShellTest, HandlesActualIphoneXsInputEvents) {
// TestSimulatedInputEvents.
UnitlessTime
base_latency
=
static_cast
<
UnitlessTime
>
(
base_latency_f
*
frame_time
);
Generator
iphone_xs_generator
=
[
frame_time
,
base_latency
,
&
iphone_xs_times
](
int
i
)
{
Generator
iphone_xs_generator
=
[
frame_time
,
iphone_xs_times
,
base_latency
](
int
i
)
{
return
base_latency
+
static_cast
<
UnitlessTime
>
(
iphone_xs_times
[
i
]
*
frame_time
);
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录