Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_34031325
engine
提交
52b4d62e
E
engine
项目概览
qq_34031325
/
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,发现更多精彩内容 >>
提交
52b4d62e
编写于
8月 05, 2016
作者:
A
Adam Barth
提交者:
GitHub
8月 05, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove mojo_converter.h (#2879)
We can use the one from //lib/tonic instead.
上级
1c9c7aa8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
46 deletion
+1
-46
flutter/lib/ui/painting/image_decoding.cc
flutter/lib/ui/painting/image_decoding.cc
+1
-1
flutter/tonic/BUILD.gn
flutter/tonic/BUILD.gn
+0
-1
flutter/tonic/mojo_converter.h
flutter/tonic/mojo_converter.h
+0
-44
未找到文件。
flutter/lib/ui/painting/image_decoding.cc
浏览文件 @
52b4d62e
...
...
@@ -6,11 +6,11 @@
#include "flow/texture_image.h"
#include "flutter/lib/ui/painting/image.h"
#include "flutter/tonic/mojo_converter.h"
#include "glue/movable_wrapper.h"
#include "glue/trace_event.h"
#include "lib/tonic/dart_persistent_value.h"
#include "lib/tonic/logging/dart_invoke.h"
#include "lib/tonic/mojo_converter.h"
#include "lib/tonic/typed_data/uint8_list.h"
#include "sky/engine/platform/mojo/data_pipe.h"
#include "sky/engine/platform/SharedBuffer.h"
...
...
flutter/tonic/BUILD.gn
浏览文件 @
52b4d62e
...
...
@@ -18,7 +18,6 @@ source_set("tonic") {
"dart_snapshot_loader.h",
"dart_state.cc",
"dart_state.h",
"mojo_converter.h",
]
deps = [
...
...
flutter/tonic/mojo_converter.h
已删除
100644 → 0
浏览文件 @
1c9c7aa8
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_TONIC_MOJO_CONVERTER_H_
#define FLUTTER_TONIC_MOJO_CONVERTER_H_
#include "lib/tonic/converter/dart_converter.h"
#include "mojo/public/cpp/system/handle.h"
namespace
tonic
{
template
<
typename
HandleType
>
struct
DartConverter
<
mojo
::
ScopedHandleBase
<
HandleType
>>
{
static
mojo
::
ScopedHandleBase
<
HandleType
>
FromDart
(
Dart_Handle
handle
)
{
uint64_t
raw_handle
=
0
;
Dart_Handle
result
=
Dart_IntegerToUint64
(
handle
,
&
raw_handle
);
if
(
Dart_IsError
(
result
)
||
!
raw_handle
)
return
mojo
::
ScopedHandleBase
<
HandleType
>
();
HandleType
mojo_handle
(
static_cast
<
MojoHandle
>
(
raw_handle
));
return
mojo
::
MakeScopedHandle
(
mojo_handle
);
}
static
Dart_Handle
ToDart
(
mojo
::
ScopedHandleBase
<
HandleType
>
mojo_handle
)
{
return
Dart_NewInteger
(
static_cast
<
int64_t
>
(
mojo_handle
.
release
().
value
()));
}
static
mojo
::
ScopedHandleBase
<
HandleType
>
FromArguments
(
Dart_NativeArguments
args
,
int
index
,
Dart_Handle
&
exception
)
{
int64_t
raw_handle
=
0
;
Dart_Handle
result
=
Dart_GetNativeIntegerArgument
(
args
,
index
,
&
raw_handle
);
if
(
Dart_IsError
(
result
)
||
!
raw_handle
)
return
mojo
::
ScopedHandleBase
<
HandleType
>
();
HandleType
mojo_handle
(
static_cast
<
MojoHandle
>
(
raw_handle
));
return
mojo
::
MakeScopedHandle
(
mojo_handle
);
}
};
}
// namespace tonic
#endif // FLUTTER_TONIC_MOJO_CONVERTER_H_
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录