Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
31d03de0
E
engine
项目概览
liujiuri
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
31d03de0
编写于
9月 11, 2017
作者:
G
George Kulakowski
提交者:
GitHub
9月 11, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename mtl to fsl (#4094)
上级
952798cc
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
27 addition
and
27 deletion
+27
-27
content_handler/BUILD.gn
content_handler/BUILD.gn
+1
-1
content_handler/app.cc
content_handler/app.cc
+5
-5
content_handler/app.h
content_handler/app.h
+3
-3
content_handler/application_controller_impl.cc
content_handler/application_controller_impl.cc
+2
-2
content_handler/main.cc
content_handler/main.cc
+2
-2
content_handler/runtime_holder.cc
content_handler/runtime_holder.cc
+2
-2
content_handler/vulkan_surface.cc
content_handler/vulkan_surface.cc
+2
-2
content_handler/vulkan_surface.h
content_handler/vulkan_surface.h
+5
-5
content_handler/vulkan_surface_producer.h
content_handler/vulkan_surface_producer.h
+1
-1
sky/engine/web/BUILD.gn
sky/engine/web/BUILD.gn
+1
-1
sky/engine/web/Sky.cpp
sky/engine/web/Sky.cpp
+3
-3
未找到文件。
content_handler/BUILD.gn
浏览文件 @
31d03de0
...
...
@@ -61,7 +61,7 @@ template("flutter_content_handler") {
"//garnet/public/dart-pkg/fuchsia",
"//garnet/public/lib/fxl",
"//garnet/public/lib/icu_data/cpp",
"//garnet/public/lib/
mt
l",
"//garnet/public/lib/
fs
l",
"//garnet/public/lib/zip",
"//lib/tonic",
"//magenta/system/ulib/trace-provider",
...
...
content_handler/app.cc
浏览文件 @
31d03de0
...
...
@@ -13,7 +13,7 @@
#include "lib/fxl/macros.h"
#include "lib/fxl/tasks/task_runner.h"
#include "lib/icu_data/cpp/icu_data.h"
#include "lib/
mt
l/tasks/message_loop.h"
#include "lib/
fs
l/tasks/message_loop.h"
namespace
flutter_runner
{
namespace
{
...
...
@@ -21,7 +21,7 @@ namespace {
static
App
*
g_app
=
nullptr
;
void
QuitMessageLoop
()
{
mt
l
::
MessageLoop
::
GetCurrent
()
->
QuitNow
();
fs
l
::
MessageLoop
::
GetCurrent
()
->
QuitNow
();
}
std
::
string
GetLabelFromURL
(
const
std
::
string
&
url
)
{
...
...
@@ -37,8 +37,8 @@ App::App() {
g_app
=
this
;
context_
=
app
::
ApplicationContext
::
CreateFromStartupInfo
();
gpu_thread_
=
std
::
make_unique
<
mt
l
::
Thread
>
();
io_thread_
=
std
::
make_unique
<
mt
l
::
Thread
>
();
gpu_thread_
=
std
::
make_unique
<
fs
l
::
Thread
>
();
io_thread_
=
std
::
make_unique
<
fs
l
::
Thread
>
();
auto
gpu_thread_success
=
gpu_thread_
->
Run
();
auto
io_thread_success
=
io_thread_
->
Run
();
...
...
@@ -46,7 +46,7 @@ App::App() {
FXL_CHECK
(
gpu_thread_success
)
<<
"Must be able to create the GPU thread"
;
FXL_CHECK
(
io_thread_success
)
<<
"Must be able to create the IO thread"
;
auto
ui_task_runner
=
mt
l
::
MessageLoop
::
GetCurrent
()
->
task_runner
();
auto
ui_task_runner
=
fs
l
::
MessageLoop
::
GetCurrent
()
->
task_runner
();
auto
gpu_task_runner
=
gpu_thread_
->
TaskRunner
();
auto
io_task_runner
=
io_thread_
->
TaskRunner
();
...
...
content_handler/app.h
浏览文件 @
31d03de0
...
...
@@ -13,7 +13,7 @@
#include "flutter/content_handler/application_controller_impl.h"
#include "lib/fxl/macros.h"
#include "lib/fxl/synchronization/waitable_event.h"
#include "lib/
mt
l/threading/thread.h"
#include "lib/
fs
l/threading/thread.h"
namespace
flutter_runner
{
...
...
@@ -48,8 +48,8 @@ class App : public app::ApplicationRunner {
void
UpdateProcessLabel
();
std
::
unique_ptr
<
app
::
ApplicationContext
>
context_
;
std
::
unique_ptr
<
mt
l
::
Thread
>
gpu_thread_
;
std
::
unique_ptr
<
mt
l
::
Thread
>
io_thread_
;
std
::
unique_ptr
<
fs
l
::
Thread
>
gpu_thread_
;
std
::
unique_ptr
<
fs
l
::
Thread
>
io_thread_
;
fidl
::
BindingSet
<
app
::
ApplicationRunner
>
runner_bindings_
;
std
::
unordered_map
<
ApplicationControllerImpl
*
,
std
::
unique_ptr
<
ApplicationControllerImpl
>>
...
...
content_handler/application_controller_impl.cc
浏览文件 @
31d03de0
...
...
@@ -13,7 +13,7 @@
#include "flutter/content_handler/app.h"
#include "flutter/content_handler/runtime_holder.h"
#include "lib/fxl/logging.h"
#include "lib/
mt
l/vmo/vector.h"
#include "lib/
fs
l/vmo/vector.h"
namespace
flutter_runner
{
...
...
@@ -32,7 +32,7 @@ ApplicationControllerImpl::ApplicationControllerImpl(
}
std
::
vector
<
char
>
bundle
;
if
(
!
mt
l
::
VectorFromVmo
(
std
::
move
(
application
->
data
),
&
bundle
))
{
if
(
!
fs
l
::
VectorFromVmo
(
std
::
move
(
application
->
data
),
&
bundle
))
{
FXL_LOG
(
ERROR
)
<<
"Failed to receive bundle."
;
return
;
}
...
...
content_handler/main.cc
浏览文件 @
31d03de0
...
...
@@ -5,10 +5,10 @@
#include <trace-provider/provider.h>
#include "flutter/content_handler/app.h"
#include "lib/
mt
l/tasks/message_loop.h"
#include "lib/
fs
l/tasks/message_loop.h"
int
main
(
int
argc
,
const
char
**
argv
)
{
mt
l
::
MessageLoop
loop
;
fs
l
::
MessageLoop
loop
;
trace
::
TraceProvider
provider
(
loop
.
async
());
flutter_runner
::
App
app
;
loop
.
Run
();
...
...
content_handler/runtime_holder.cc
浏览文件 @
31d03de0
...
...
@@ -25,7 +25,7 @@
#include "lib/fxl/functional/make_copyable.h"
#include "lib/fxl/logging.h"
#include "lib/fxl/time/time_delta.h"
#include "lib/
mt
l/vmo/vector.h"
#include "lib/
fs
l/vmo/vector.h"
#include "lib/zip/create_unzipper.h"
#include "third_party/rapidjson/rapidjson/document.h"
#include "third_party/rapidjson/rapidjson/stringbuffer.h"
...
...
@@ -127,7 +127,7 @@ void RuntimeHolder::Init(
}
mx
::
vmo
dylib_vmo
;
if
(
!
mt
l
::
VmoFromVector
(
dylib_blob
,
&
dylib_vmo
))
{
if
(
!
fs
l
::
VmoFromVector
(
dylib_blob
,
&
dylib_vmo
))
{
FXL_LOG
(
ERROR
)
<<
"Failed to load app dylib"
;
return
;
}
...
...
content_handler/vulkan_surface.cc
浏览文件 @
31d03de0
...
...
@@ -40,7 +40,7 @@ VulkanSurface::VulkanSurface(vulkan::VulkanProcTable& p_vk,
return
;
}
event_handler_key_
=
mt
l
::
MessageLoop
::
GetCurrent
()
->
AddHandler
(
event_handler_key_
=
fs
l
::
MessageLoop
::
GetCurrent
()
->
AddHandler
(
this
,
release_event_
.
get
(),
MX_EVENT_SIGNALED
);
// Probably not necessary as the events should be in the unsignalled state
...
...
@@ -53,7 +53,7 @@ VulkanSurface::VulkanSurface(vulkan::VulkanProcTable& p_vk,
VulkanSurface
::~
VulkanSurface
()
{
ASSERT_IS_GPU_THREAD
;
if
(
event_handler_key_
!=
0
)
{
mt
l
::
MessageLoop
::
GetCurrent
()
->
RemoveHandler
(
event_handler_key_
);
fs
l
::
MessageLoop
::
GetCurrent
()
->
RemoveHandler
(
event_handler_key_
);
event_handler_key_
=
0
;
}
}
...
...
content_handler/vulkan_surface.h
浏览文件 @
31d03de0
...
...
@@ -10,8 +10,8 @@
#include "flutter/vulkan/vulkan_handle.h"
#include "flutter/vulkan/vulkan_proc_table.h"
#include "lib/fxl/macros.h"
#include "lib/
mt
l/tasks/message_loop.h"
#include "lib/
mt
l/tasks/message_loop_handler.h"
#include "lib/
fs
l/tasks/message_loop.h"
#include "lib/
fs
l/tasks/message_loop_handler.h"
#include "mx/event.h"
#include "mx/vmo.h"
#include "third_party/skia/include/core/SkSurface.h"
...
...
@@ -20,7 +20,7 @@
namespace
flutter_runner
{
class
VulkanSurface
:
public
flow
::
SceneUpdateContext
::
SurfaceProducerSurface
,
public
mt
l
::
MessageLoopHandler
{
public
fs
l
::
MessageLoopHandler
{
public:
VulkanSurface
(
vulkan
::
VulkanProcTable
&
p_vk
,
sk_sp
<
GrContext
>
context
,
...
...
@@ -66,12 +66,12 @@ private:
mx
::
event
acquire_event_
;
vulkan
::
VulkanHandle
<
VkSemaphore
>
acquire_semaphore_
;
mx
::
event
release_event_
;
mt
l
::
MessageLoop
::
HandlerKey
event_handler_key_
=
0
;
fs
l
::
MessageLoop
::
HandlerKey
event_handler_key_
=
0
;
std
::
function
<
void
(
void
)
>
pending_on_writes_committed_
;
size_t
age_
=
0
;
bool
valid_
=
false
;
// |
mt
l::MessageLoopHandler|
// |
fs
l::MessageLoopHandler|
void
OnHandleReady
(
mx_handle_t
handle
,
mx_signals_t
pending
,
uint64_t
count
)
override
;
...
...
content_handler/vulkan_surface_producer.h
浏览文件 @
31d03de0
...
...
@@ -14,7 +14,7 @@
#include "flutter/vulkan/vulkan_device.h"
#include "flutter/vulkan/vulkan_proc_table.h"
#include "lib/fxl/macros.h"
#include "lib/
mt
l/tasks/message_loop.h"
#include "lib/
fs
l/tasks/message_loop.h"
#include "third_party/skia/include/gpu/vk/GrVkBackendContext.h"
namespace
flutter_runner
{
...
...
sky/engine/web/BUILD.gn
浏览文件 @
31d03de0
...
...
@@ -19,7 +19,7 @@ source_set("web") {
]
if (is_fuchsia) {
deps += [ "//garnet/public/lib/
mt
l" ]
deps += [ "//garnet/public/lib/
fs
l" ]
} else {
deps += [ "//flutter/fml" ]
}
...
...
sky/engine/web/Sky.cpp
浏览文件 @
31d03de0
...
...
@@ -43,7 +43,7 @@
#if defined(OS_FUCHSIA)
#include "lib/
mt
l/tasks/message_loop.h" // nogncheck
#include "lib/
fs
l/tasks/message_loop.h" // nogncheck
#else // defined(OS_FUCHSIA)
...
...
@@ -63,11 +63,11 @@ void didProcessTask() {
#if defined(OS_FUCHSIA)
void
addMessageLoopObservers
()
{
mt
l
::
MessageLoop
::
GetCurrent
()
->
SetAfterTaskCallback
(
didProcessTask
);
fs
l
::
MessageLoop
::
GetCurrent
()
->
SetAfterTaskCallback
(
didProcessTask
);
}
void
removeMessageLoopObservers
()
{
mt
l
::
MessageLoop
::
GetCurrent
()
->
ClearAfterTaskCallback
();
fs
l
::
MessageLoop
::
GetCurrent
()
->
ClearAfterTaskCallback
();
}
#else // defined(OS_FUCHSIA)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录