Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
5afc1e28
E
engine
项目概览
weixin_43355755
/
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
5afc1e28
编写于
11月 15, 2017
作者:
A
amirh
提交者:
GitHub
11月 15, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable WebP (#4359)
上级
d917c35e
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
926 addition
and
11 deletion
+926
-11
DEPS
DEPS
+5
-2
lib/ui/painting/codec.cc
lib/ui/painting/codec.cc
+3
-0
sky/packages/sky_engine/LICENSE
sky/packages/sky_engine/LICENSE
+385
-6
tools/gn
tools/gn
+0
-1
tools/licenses/lib/main.dart
tools/licenses/lib/main.dart
+14
-0
travis/licenses_golden/licenses_third_party
travis/licenses_golden/licenses_third_party
+519
-2
未找到文件。
DEPS
浏览文件 @
5afc1e28
...
...
@@ -21,8 +21,8 @@ vars = {
'chromium_git': 'https://chromium.googlesource.com',
'dart_git': 'https://dart.googlesource.com',
'fuchsia_git': 'https://fuchsia.googlesource.com',
'skia_git': 'https://skia.googlesource.com',
'github_git': 'https://github.com',
'skia_git': 'https://skia.googlesource.com',
'skia_revision': '09b8c91b696925c6c6a25c35173f2da27abf0fbe',
# When updating the Dart revision, ensure that all entries that are
...
...
@@ -114,7 +114,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
d65893e469b3cdff75e0a157a5a219096ca6193a
',
'src': 'https://github.com/flutter/buildroot.git' + '@' + '
b70195e5d3c8d075a4ab939ba27d167bd241122f
',
# Fuchsia compatibility
#
...
...
@@ -355,6 +355,9 @@ deps = {
'src/third_party/libjpeg-turbo':
Var('skia_git') + '/third_party/libjpeg-turbo.git' + '@' + 'debddedc75850bcdeb8a57258572f48b802a4bb3',
'src/third_party/libwebp':
Var('chromium_git') + '/webm/libwebp.git' + '@' + '0.6.0',
'src/third_party/gyp':
Var('chromium_git') + '/external/gyp.git' + '@' + '4801a5331ae62da9769a327f11c4213d32fb0dad',
...
...
lib/ui/painting/codec.cc
浏览文件 @
5afc1e28
...
...
@@ -69,11 +69,13 @@ fxl::RefPtr<Codec> InitCodec(sk_sp<SkData> buffer, size_t trace_id) {
TRACE_EVENT0
(
"blink"
,
"InitCodec"
);
if
(
buffer
==
nullptr
||
buffer
->
isEmpty
())
{
FXL_LOG
(
ERROR
)
<<
"InitCodec failed - buffer was empty "
;
return
nullptr
;
}
std
::
unique_ptr
<
SkCodec
>
skCodec
=
SkCodec
::
MakeFromData
(
buffer
);
if
(
!
skCodec
)
{
FXL_LOG
(
ERROR
)
<<
"SkCodec::MakeFromData failed"
;
return
nullptr
;
}
if
(
skCodec
->
getFrameCount
()
>
1
)
{
...
...
@@ -81,6 +83,7 @@ fxl::RefPtr<Codec> InitCodec(sk_sp<SkData> buffer, size_t trace_id) {
}
auto
skImage
=
DecodeImage
(
buffer
,
trace_id
);
if
(
!
skImage
)
{
FXL_LOG
(
ERROR
)
<<
"DecodeImage failed"
;
return
nullptr
;
}
auto
image
=
CanvasImage
::
Create
();
...
...
sky/packages/sky_engine/LICENSE
浏览文件 @
5afc1e28
此差异已折叠。
点击以展开。
tools/gn
浏览文件 @
5afc1e28
...
...
@@ -70,7 +70,6 @@ def to_gn_args(args):
gn_args
[
'skia_enable_flutter_defines'
]
=
True
# Enable Flutter API guards in Skia.
gn_args
[
'skia_use_dng_sdk'
]
=
False
# RAW image handling.
gn_args
[
'skia_use_sfntly'
]
=
False
# PDF handling.
gn_args
[
'skia_use_libwebp'
]
=
False
# Needs third_party/libwebp.
gn_args
[
'skia_use_fontconfig'
]
=
False
# Use the custom font manager instead.
gn_args
[
'is_official_build'
]
=
True
# Disable Skia test utilities.
...
...
tools/licenses/lib/main.dart
浏览文件 @
5afc1e28
...
...
@@ -1740,6 +1740,18 @@ class RepositoryLibPngDirectory extends RepositoryDirectory {
}
}
class
RepositoryLibWebpDirectory
extends
RepositoryDirectory
{
RepositoryLibWebpDirectory
(
RepositoryDirectory
parent
,
fs
.
Directory
io
)
:
super
(
parent
,
io
);
@override
bool
shouldRecurse
(
fs
.
IoNode
entry
)
{
return
entry
.
name
!=
'examples'
// contains nothing that ends up in the binary executable
&&
entry
.
name
!=
'swig'
// not included in our build
&&
entry
.
name
!=
'gradle'
// not included in our build
&&
super
.
shouldRecurse
(
entry
);
}
}
class
RepositoryPkgDirectory
extends
RepositoryDirectory
{
RepositoryPkgDirectory
(
RepositoryDirectory
parent
,
fs
.
Directory
io
)
:
super
(
parent
,
io
);
...
...
@@ -1903,6 +1915,8 @@ class RepositoryRootThirdPartyDirectory extends RepositoryGenericThirdPartyDirec
return
new
RepositoryLibJpegTurboDirectory
(
this
,
entry
);
if
(
entry
.
name
==
'libpng'
)
return
new
RepositoryLibPngDirectory
(
this
,
entry
);
if
(
entry
.
name
==
'libwebp'
)
return
new
RepositoryLibWebpDirectory
(
this
,
entry
);
if
(
entry
.
name
==
'okhttp'
)
return
new
RepositoryOkHttpDirectory
(
this
,
entry
);
if
(
entry
.
name
==
'pkg'
)
...
...
travis/licenses_golden/licenses_third_party
浏览文件 @
5afc1e28
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录