Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
d755b30f
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,发现更多精彩内容 >>
提交
d755b30f
编写于
9月 28, 2016
作者:
J
Jeff Brown
提交者:
GitHub
9月 28, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update skia to e038489a743d6c0ab1cb208862c305180815bc8e. (#3074)
上级
613c86f2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
27 addition
and
38 deletion
+27
-38
DEPS
DEPS
+1
-1
flow/layers/clip_rrect_layer.cc
flow/layers/clip_rrect_layer.cc
+1
-1
shell/common/diagnostic/diagnostic_server.cc
shell/common/diagnostic/diagnostic_server.cc
+1
-1
skia/BUILD.gn
skia/BUILD.gn
+12
-23
sky/engine/platform/graphics/GraphicsContext.cpp
sky/engine/platform/graphics/GraphicsContext.cpp
+7
-7
sky/engine/platform/graphics/GraphicsContext.h
sky/engine/platform/graphics/GraphicsContext.h
+5
-5
未找到文件。
DEPS
浏览文件 @
d755b30f
...
...
@@ -23,7 +23,7 @@ vars = {
'github_git': 'https://github.com',
'mojo_sdk_revision': '6b5fb1227c742f5ecc077486ebc029f2711c61fa',
'base_revision': '75e70c3387cf327702a0533e93bc480446da0806',
'skia_revision': '
5561e3ddbbf6c3e051075ada4a11ddc70760f03d
',
'skia_revision': '
e038489a743d6c0ab1cb208862c305180815bc8e
',
# Note: When updating the Dart revision, ensure that all entries that are
# dependencies of dart are also updated
...
...
flow/layers/clip_rrect_layer.cc
浏览文件 @
d755b30f
...
...
@@ -21,7 +21,7 @@ void ClipRRectLayer::Paint(PaintContext& context) {
TRACE_EVENT0
(
"flutter"
,
"ClipRRectLayer::Paint"
);
SkAutoCanvasRestore
save
(
&
context
.
canvas
,
false
);
context
.
canvas
.
saveLayer
(
&
paint_bounds
(),
nullptr
);
context
.
canvas
.
clipRRect
(
clip_rrect_
,
SkRegion
::
kIntersect_
Op
,
true
);
context
.
canvas
.
clipRRect
(
clip_rrect_
,
kIntersect_SkClip
Op
,
true
);
PaintChildren
(
context
);
}
...
...
shell/common/diagnostic/diagnostic_server.cc
浏览文件 @
d755b30f
...
...
@@ -135,7 +135,7 @@ void DiagnosticServer::SkiaPictureTask(Dart_Port port_id) {
SkDynamicMemoryWStream
stream
;
PngPixelSerializer
serializer
;
picture
->
serialize
(
&
stream
,
&
serializer
);
SkAutoTUnref
<
SkData
>
picture_data
(
stream
.
copyTo
Data
());
sk_sp
<
SkData
>
picture_data
(
stream
.
snapshotAs
Data
());
Dart_CObject
c_object
;
c_object
.
type
=
Dart_CObject_kTypedData
;
...
...
skia/BUILD.gn
浏览文件 @
d755b30f
...
...
@@ -7,7 +7,10 @@ if (is_fuchsia) {
group("skia") {
# TODO(abarth): Switch the non-Fuchsia build over to using Skia's BUILD.gn
# files as well.
public_deps = [ "//third_party/skia" ]
public_deps = [
"//third_party/skia",
"//third_party/skia:gpu",
]
}
} else {
...
...
@@ -22,18 +25,6 @@ if (current_cpu == "mipsel" || current_cpu == "mips64el") {
import("//build/config/mips.gni")
}
# The list of Skia defines that are to be set for chromium.
gypi_skia_defines =
exec_script("//build/gypi_to_gn.py",
[
rebase_path(
"//third_party/skia/gyp/skia_for_chromium_defines.gypi"),
"--replace=<(skia_include_path)=//third_party/skia/include",
"--replace=<(skia_src_path)=//third_party/skia/src",
],
"scope",
[ "//third_party/skia/gyp/skia_for_chromium_defines.gypi" ])
# The list of Skia core sources that are to be set for chromium.
gypi_skia_core =
exec_script("//build/gypi_to_gn.py",
...
...
@@ -67,16 +58,14 @@ gypi_skia_effects =
"scope",
[ "//third_party/skia/gyp/effects.gypi" ])
# The list of Skia utils that are to be set for chromium.
gypi_skia_utils =
gypi_skia_sources =
exec_script("//build/gypi_to_gn.py",
[
rebase_path("//third_party/skia/gyp/utils.gypi"),
"--replace=<(skia_include_path)=//third_party/skia/include",
"--replace=<(skia_src_path)=//third_party/skia/src",
rebase_path("//third_party/skia/gyp/skia_sources.gypi"),
"--replace=..=//third_party/skia",
],
"scope",
[ "//third_party/skia/gyp/
util
s.gypi" ])
[ "//third_party/skia/gyp/
skia_source
s.gypi" ])
gypi_skia_opts =
exec_script("//build/gypi_to_gn.py",
...
...
@@ -134,9 +123,7 @@ config("skia_library_config") {
include_dirs += [ "//third_party/skia/include/utils/ios" ]
}
defines = gypi_skia_defines.skia_for_chromium_defines
defines += [ "SK_SUPPORT_GPU=1" ]
defines = [ "SK_SUPPORT_GPU=1" ]
# Supported codecs.
defines += [
...
...
@@ -242,7 +229,7 @@ component("skia") {
# The skia gypi values are relative to the skia_dir, so we need to rebase.
sources += gypi_skia_core.sources
sources += gypi_skia_effects.sources
sources += gypi_skia_
utils.
sources
sources += gypi_skia_
sources.utils_
sources
sources += [
"//third_party/skia/src/codec/SkAndroidCodec.cpp",
...
...
@@ -269,6 +256,7 @@ component("skia") {
"//third_party/skia/src/fonts/SkFontMgr_indirect.cpp",
"//third_party/skia/src/fonts/SkRemotableFontMgr.cpp",
"//third_party/skia/src/ports/SkDiscardableMemory_none.cpp",
"//third_party/skia/src/ports/SkFontConfigInterface.cpp",
"//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp",
"//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
"//third_party/skia/src/ports/SkFontHost_FreeType_common.cpp",
...
...
@@ -422,6 +410,7 @@ component("skia") {
if (!is_linux) {
sources -= [
"//third_party/skia/src/ports/SkFontConfigInterface.cpp",
"//third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp",
"//third_party/skia/src/ports/SkFontConfigInterface_direct.cpp",
"//third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp",
...
...
sky/engine/platform/graphics/GraphicsContext.cpp
浏览文件 @
d755b30f
...
...
@@ -1076,13 +1076,13 @@ void GraphicsContext::strokeEllipse(const FloatRect& ellipse)
drawOval
(
ellipse
,
immutableState
()
->
strokePaint
());
}
void
GraphicsContext
::
clipRoundedRect
(
const
RoundedRect
&
rect
,
Sk
Region
::
Op
region
Op
)
void
GraphicsContext
::
clipRoundedRect
(
const
RoundedRect
&
rect
,
Sk
ClipOp
clip
Op
)
{
if
(
contextDisabled
())
return
;
if
(
!
rect
.
isRounded
())
{
clipRect
(
rect
.
rect
(),
NotAntiAliased
,
region
Op
);
clipRect
(
rect
.
rect
(),
NotAntiAliased
,
clip
Op
);
return
;
}
...
...
@@ -1093,7 +1093,7 @@ void GraphicsContext::clipRoundedRect(const RoundedRect& rect, SkRegion::Op regi
SkRRect
r
;
r
.
setRectRadii
(
rect
.
rect
(),
radii
);
clipRRect
(
r
,
AntiAliased
,
region
Op
);
clipRRect
(
r
,
AntiAliased
,
clip
Op
);
}
void
GraphicsContext
::
clipOut
(
const
Path
&
pathToClip
)
...
...
@@ -1142,7 +1142,7 @@ void GraphicsContext::clipOutRoundedRect(const RoundedRect& rect)
if
(
contextDisabled
())
return
;
clipRoundedRect
(
rect
,
SkRegion
::
kDifference_
Op
);
clipRoundedRect
(
rect
,
kDifference_SkClip
Op
);
}
void
GraphicsContext
::
canvasClip
(
const
Path
&
pathToClip
,
WindRule
clipRule
)
...
...
@@ -1161,7 +1161,7 @@ void GraphicsContext::canvasClip(const Path& pathToClip, WindRule clipRule)
path
.
setFillType
(
previousFillType
);
}
void
GraphicsContext
::
clipRect
(
const
SkRect
&
rect
,
AntiAliasingMode
aa
,
Sk
Region
::
Op
op
)
void
GraphicsContext
::
clipRect
(
const
SkRect
&
rect
,
AntiAliasingMode
aa
,
Sk
Clip
Op
op
)
{
if
(
contextDisabled
())
return
;
...
...
@@ -1171,7 +1171,7 @@ void GraphicsContext::clipRect(const SkRect& rect, AntiAliasingMode aa, SkRegion
m_canvas
->
clipRect
(
rect
,
op
,
aa
==
AntiAliased
);
}
void
GraphicsContext
::
clipPath
(
const
SkPath
&
path
,
AntiAliasingMode
aa
,
Sk
Region
::
Op
op
)
void
GraphicsContext
::
clipPath
(
const
SkPath
&
path
,
AntiAliasingMode
aa
,
Sk
Clip
Op
op
)
{
if
(
contextDisabled
())
return
;
...
...
@@ -1181,7 +1181,7 @@ void GraphicsContext::clipPath(const SkPath& path, AntiAliasingMode aa, SkRegion
m_canvas
->
clipPath
(
path
,
op
,
aa
==
AntiAliased
);
}
void
GraphicsContext
::
clipRRect
(
const
SkRRect
&
rect
,
AntiAliasingMode
aa
,
Sk
Region
::
Op
op
)
void
GraphicsContext
::
clipRRect
(
const
SkRRect
&
rect
,
AntiAliasingMode
aa
,
Sk
Clip
Op
op
)
{
if
(
contextDisabled
())
return
;
...
...
sky/engine/platform/graphics/GraphicsContext.h
浏览文件 @
d755b30f
...
...
@@ -283,12 +283,12 @@ public:
void
clip
(
const
IntRect
&
rect
)
{
clipRect
(
rect
);
}
void
clip
(
const
FloatRect
&
rect
)
{
clipRect
(
rect
);
}
void
clipRoundedRect
(
const
RoundedRect
&
,
Sk
Region
::
Op
=
SkRegion
::
kIntersect_
Op
);
void
clipOut
(
const
IntRect
&
rect
)
{
clipRect
(
rect
,
NotAntiAliased
,
SkRegion
::
kDifference_
Op
);
}
void
clipRoundedRect
(
const
RoundedRect
&
,
Sk
ClipOp
=
kIntersect_SkClip
Op
);
void
clipOut
(
const
IntRect
&
rect
)
{
clipRect
(
rect
,
NotAntiAliased
,
kDifference_SkClip
Op
);
}
void
clipOutRoundedRect
(
const
RoundedRect
&
);
void
clipPath
(
const
Path
&
,
WindRule
=
RULE_EVENODD
);
void
clipConvexPolygon
(
size_t
numPoints
,
const
FloatPoint
*
,
bool
antialias
=
true
);
void
clipRect
(
const
SkRect
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
Region
::
Op
=
SkRegion
::
kIntersect_
Op
);
void
clipRect
(
const
SkRect
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
ClipOp
=
kIntersect_SkClip
Op
);
void
drawText
(
const
Font
&
,
const
TextRunPaintInfo
&
,
const
FloatPoint
&
);
void
drawEmphasisMarks
(
const
Font
&
,
const
TextRunPaintInfo
&
,
const
AtomicString
&
mark
,
const
FloatPoint
&
);
...
...
@@ -395,8 +395,8 @@ private:
// SkCanvas wrappers.
void
clipPath
(
const
SkPath
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
Region
::
Op
=
SkRegion
::
kIntersect_
Op
);
void
clipRRect
(
const
SkRRect
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
Region
::
Op
=
SkRegion
::
kIntersect_
Op
);
void
clipPath
(
const
SkPath
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
ClipOp
=
kIntersect_SkClip
Op
);
void
clipRRect
(
const
SkRRect
&
,
AntiAliasingMode
=
NotAntiAliased
,
Sk
ClipOp
=
kIntersect_SkClip
Op
);
void
concat
(
const
SkMatrix
&
);
void
drawRRect
(
const
SkRRect
&
,
const
SkPaint
&
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录