Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
a52397e0
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,发现更多精彩内容 >>
未验证
提交
a52397e0
编写于
9月 09, 2020
作者:
D
David Worsham
提交者:
GitHub
9月 09, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fuchsia: Compile disabled RasterThreadMerger code (#20984)
上级
cd580e20
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
46 addition
and
14 deletion
+46
-14
shell/common/rasterizer.cc
shell/common/rasterizer.cc
+0
-4
shell/common/shell_unittests.cc
shell/common/shell_unittests.cc
+46
-10
未找到文件。
shell/common/rasterizer.cc
浏览文件 @
a52397e0
...
...
@@ -77,9 +77,6 @@ void Rasterizer::Setup(std::unique_ptr<Surface> surface) {
user_override_resource_cache_bytes_
);
}
compositor_context_
->
OnGrContextCreated
();
#if !defined(OS_FUCHSIA)
// TODO(sanjayc77): https://github.com/flutter/flutter/issues/53179. Add
// support for raster thread merger for Fuchsia.
if
(
surface_
->
GetExternalViewEmbedder
()
&&
surface_
->
GetExternalViewEmbedder
()
->
SupportsDynamicThreadMerging
()
&&
!
raster_thread_merger_
)
{
...
...
@@ -98,7 +95,6 @@ void Rasterizer::Setup(std::unique_ptr<Surface> surface) {
}
});
}
#endif
}
void
Rasterizer
::
Teardown
()
{
...
...
shell/common/shell_unittests.cc
浏览文件 @
a52397e0
...
...
@@ -497,9 +497,6 @@ TEST_F(ShellTest, FrameRasterizedCallbackIsCalled) {
DestroyShell
(
std
::
move
(
shell
));
}
#if !defined(OS_FUCHSIA)
// TODO(sanjayc77): https://github.com/flutter/flutter/issues/53179. Add
// support for raster thread merger for Fuchsia.
TEST_F
(
ShellTest
,
ExternalEmbedderNoThreadMerger
)
{
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
...
...
@@ -548,8 +545,14 @@ TEST_F(ShellTest, ExternalEmbedderNoThreadMerger) {
DestroyShell
(
std
::
move
(
shell
));
}
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
ExternalEmbedderEndFrameIsCalledWhenPostPrerollResultIsResubmit
)
{
#if defined(OS_FUCHSIA)
DISABLED_ExternalEmbedderEndFrameIsCalledWhenPostPrerollResultIsResubmit
#else
ExternalEmbedderEndFrameIsCalledWhenPostPrerollResultIsResubmit
#endif
)
{
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
bool
end_frame_called
=
false
;
...
...
@@ -597,7 +600,14 @@ TEST_F(ShellTest,
DestroyShell
(
std
::
move
(
shell
));
}
TEST_F
(
ShellTest
,
OnPlatformViewDestroyDisablesThreadMerger
)
{
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
#if defined(OS_FUCHSIA)
DISABLED_OnPlatformViewDestroyDisablesThreadMerger
#else
OnPlatformViewDestroyDisablesThreadMerger
#endif
)
{
auto
settings
=
CreateSettingsForFixture
();
fml
::
RefPtr
<
fml
::
RasterThreadMerger
>
raster_thread_merger
;
auto
end_frame_callback
=
...
...
@@ -653,7 +663,14 @@ TEST_F(ShellTest, OnPlatformViewDestroyDisablesThreadMerger) {
DestroyShell
(
std
::
move
(
shell
));
}
TEST_F
(
ShellTest
,
OnPlatformViewDestroyAfterMergingThreads
)
{
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
#if defined(OS_FUCHSIA)
DISABLED_OnPlatformViewDestroyAfterMergingThreads
#else
OnPlatformViewDestroyAfterMergingThreads
#endif
)
{
const
size_t
ThreadMergingLease
=
10
;
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
...
...
@@ -719,7 +736,14 @@ TEST_F(ShellTest, OnPlatformViewDestroyAfterMergingThreads) {
DestroyShell
(
std
::
move
(
shell
));
}
TEST_F
(
ShellTest
,
OnPlatformViewDestroyWhenThreadsAreMerging
)
{
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
#if defined(OS_FUCHSIA)
DISABLED_OnPlatformViewDestroyWhenThreadsAreMerging
#else
OnPlatformViewDestroyWhenThreadsAreMerging
#endif
)
{
const
size_t
kThreadMergingLease
=
10
;
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
...
...
@@ -792,8 +816,14 @@ TEST_F(ShellTest, OnPlatformViewDestroyWhenThreadsAreMerging) {
DestroyShell
(
std
::
move
(
shell
));
}
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
OnPlatformViewDestroyWithThreadMergerWhileThreadsAreUnmerged
)
{
#if defined(OS_FUCHSIA)
DISABLED_OnPlatformViewDestroyWithThreadMergerWhileThreadsAreUnmerged
#else
OnPlatformViewDestroyWithThreadMergerWhileThreadsAreUnmerged
#endif
)
{
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
auto
end_frame_callback
=
...
...
@@ -894,9 +924,15 @@ TEST_F(ShellTest, OnPlatformViewDestroyWithoutRasterThreadMerger) {
DestroyShell
(
std
::
move
(
shell
));
}
#endif
TEST_F
(
ShellTest
,
OnPlatformViewDestroyWithStaticThreadMerging
)
{
// TODO(https://github.com/flutter/flutter/issues/59816): Enable on fuchsia.
TEST_F
(
ShellTest
,
#if defined(OS_FUCHSIA)
DISABLED_OnPlatformViewDestroyWithStaticThreadMerging
#else
OnPlatformViewDestroyWithStaticThreadMerging
#endif
)
{
auto
settings
=
CreateSettingsForFixture
();
fml
::
AutoResetWaitableEvent
end_frame_latch
;
auto
end_frame_callback
=
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录