Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
7c872277
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,体验更适合开发者的 AI 搜索 >>
提交
7c872277
编写于
7月 26, 2016
作者:
A
Adam Barth
提交者:
GitHub
7月 26, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Skia (#2825)
上级
a5c04b0a
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
6 addition
and
55 deletion
+6
-55
DEPS
DEPS
+1
-1
flutter/lib/ui/painting/picture_recorder.cc
flutter/lib/ui/painting/picture_recorder.cc
+1
-4
sky/engine/platform/fonts/skia/FontCacheSkia.cpp
sky/engine/platform/fonts/skia/FontCacheSkia.cpp
+1
-10
sky/engine/platform/graphics/GraphicsContext.cpp
sky/engine/platform/graphics/GraphicsContext.cpp
+0
-33
sky/engine/platform/graphics/GraphicsContext.h
sky/engine/platform/graphics/GraphicsContext.h
+0
-4
sky/engine/platform/graphics/Pattern.cpp
sky/engine/platform/graphics/Pattern.cpp
+1
-1
sky/engine/platform/graphics/skia/NativeImageSkia.cpp
sky/engine/platform/graphics/skia/NativeImageSkia.cpp
+1
-1
sky/shell/gpu/direct/ganesh_canvas.cc
sky/shell/gpu/direct/ganesh_canvas.cc
+1
-1
未找到文件。
DEPS
浏览文件 @
7c872277
...
...
@@ -21,7 +21,7 @@ vars = {
'chromium_git': 'https://chromium.googlesource.com',
'mojo_sdk_revision': 'b200aa62c93647a0421b9239804ef5ce1509ab20',
'base_revision': '672b04e54b937ec899429a6bd5409c5a6300d151',
'skia_revision': '
8cc209111876b7c78b5ec577c9221d8ed5e21024
',
'skia_revision': '
d1bdd1fcbd308afb9903f39d231742f5c951cf07
',
# Note: When updating the Dart revision, ensure that all entries that are
# dependencies of dart are also updated
...
...
flutter/lib/ui/painting/picture_recorder.cc
浏览文件 @
7c872277
...
...
@@ -47,10 +47,7 @@ bool PictureRecorder::isRecording() {
}
SkCanvas
*
PictureRecorder
::
BeginRecording
(
SkRect
bounds
)
{
return
picture_recorder_
.
beginRecording
(
bounds
,
&
rtree_factory_
,
SkPictureRecorder
::
kComputeSaveLayerInfo_RecordFlag
);
return
picture_recorder_
.
beginRecording
(
bounds
,
&
rtree_factory_
);
}
scoped_refptr
<
Picture
>
PictureRecorder
::
endRecording
()
{
...
...
sky/engine/platform/fonts/skia/FontCacheSkia.cpp
浏览文件 @
7c872277
...
...
@@ -219,16 +219,7 @@ sk_sp<SkTypeface> FontCache::createTypeface(const FontDescription& fontDescripti
if
(
typeface
)
return
typeface
;
int
legacyStyle
=
SkTypeface
::
kNormal
;
if
(
fontDescription
.
weight
()
>=
FontWeight600
)
legacyStyle
|=
SkTypeface
::
kBold
;
if
(
fontDescription
.
style
())
legacyStyle
|=
SkTypeface
::
kItalic
;
// FIXME: Use fm, SkFontStyle and matchFamilyStyle instead of this legacy
// API. To make this work, we need to understand the extra fallback behavior
// in CreateFromName.
return
SkTypeface
::
MakeFromName
(
name
.
data
(),
static_cast
<
SkTypeface
::
Style
>
(
legacyStyle
));
return
SkTypeface
::
MakeFromName
(
name
.
data
(),
style
);
}
#if !OS(WIN)
...
...
sky/engine/platform/graphics/GraphicsContext.cpp
浏览文件 @
7c872277
...
...
@@ -794,39 +794,6 @@ void GraphicsContext::drawTiledImage(Image* image, const IntRect& dest, const In
image
->
drawTiled
(
this
,
dest
,
srcRect
,
tileScaleFactor
,
hRule
,
vRule
,
op
);
}
void
GraphicsContext
::
writePixels
(
const
SkImageInfo
&
info
,
const
void
*
pixels
,
size_t
rowBytes
,
int
x
,
int
y
)
{
if
(
contextDisabled
())
return
;
m_canvas
->
writePixels
(
info
,
pixels
,
rowBytes
,
x
,
y
);
if
(
regionTrackingEnabled
())
{
SkRect
rect
=
SkRect
::
MakeXYWH
(
x
,
y
,
info
.
width
(),
info
.
height
());
SkPaint
paint
;
paint
.
setXfermodeMode
(
SkXfermode
::
kSrc_Mode
);
if
(
kOpaque_SkAlphaType
!=
info
.
alphaType
())
paint
.
setAlpha
(
0x80
);
// signal to m_trackedRegion that we are not fully opaque
m_trackedRegion
.
didDrawRect
(
this
,
rect
,
paint
,
0
);
// more efficient would be to call markRectAsOpaque or MarkRectAsNonOpaque directly,
// rather than cons-ing up a paint with an xfermode and alpha
}
}
void
GraphicsContext
::
writePixels
(
const
SkBitmap
&
bitmap
,
int
x
,
int
y
)
{
if
(
contextDisabled
())
return
;
if
(
!
bitmap
.
getTexture
())
{
SkAutoLockPixels
alp
(
bitmap
);
if
(
bitmap
.
getPixels
())
writePixels
(
bitmap
.
info
(),
bitmap
.
getPixels
(),
bitmap
.
rowBytes
(),
x
,
y
);
}
}
void
GraphicsContext
::
drawBitmap
(
const
SkBitmap
&
bitmap
,
SkScalar
left
,
SkScalar
top
,
const
SkPaint
*
paint
)
{
if
(
contextDisabled
())
...
...
sky/engine/platform/graphics/GraphicsContext.h
浏览文件 @
7c872277
...
...
@@ -267,10 +267,6 @@ public:
const
FloatSize
&
tileScaleFactor
,
Image
::
TileRule
hRule
=
Image
::
StretchTile
,
Image
::
TileRule
vRule
=
Image
::
StretchTile
,
CompositeOperator
=
CompositeSourceOver
);
// These methods write to the canvas and modify the opaque region, if tracked.
// Also drawLine(const IntPoint& point1, const IntPoint& point2) and fillRoundedRect
void
writePixels
(
const
SkImageInfo
&
,
const
void
*
pixels
,
size_t
rowBytes
,
int
x
,
int
y
);
void
writePixels
(
const
SkBitmap
&
,
int
x
,
int
y
);
void
drawBitmap
(
const
SkBitmap
&
,
SkScalar
,
SkScalar
,
const
SkPaint
*
=
0
);
void
drawBitmapRect
(
const
SkBitmap
&
,
const
SkRect
*
,
const
SkRect
&
,
const
SkPaint
*
=
0
);
void
drawOval
(
const
SkRect
&
,
const
SkPaint
&
);
...
...
sky/engine/platform/graphics/Pattern.cpp
浏览文件 @
7c872277
...
...
@@ -85,7 +85,7 @@ SkShader* Pattern::shader()
// we explicitly require non-opaquness, since we are going to add a transparent strip.
SkImageInfo
newInfo
=
SkImageInfo
::
Make
(
info
.
width
()
+
expandW
,
info
.
height
()
+
expandH
,
info
.
colorType
(),
kPremul_SkAlphaType
,
info
.
profileType
(
));
kPremul_SkAlphaType
,
sk_ref_sp
(
info
.
colorSpace
()
));
SkBitmap
bm2
;
bm2
.
allocPixels
(
newInfo
);
...
...
sky/engine/platform/graphics/skia/NativeImageSkia.cpp
浏览文件 @
7c872277
...
...
@@ -176,7 +176,7 @@ static SkBitmap createBitmapWithSpace(const SkBitmap& bitmap, int spaceWidth, in
SkImageInfo
info
=
bitmap
.
info
();
SkImageInfo
newInfo
=
SkImageInfo
::
Make
(
info
.
width
()
+
spaceWidth
,
info
.
height
()
+
spaceHeight
,
info
.
colorType
(),
kPremul_SkAlphaType
,
info
.
profileType
(
));
info
.
colorType
(),
kPremul_SkAlphaType
,
sk_ref_sp
(
info
.
colorSpace
()
));
SkBitmap
result
;
result
.
allocPixels
(
newInfo
);
...
...
sky/shell/gpu/direct/ganesh_canvas.cc
浏览文件 @
7c872277
...
...
@@ -75,7 +75,7 @@ SkCanvas* GaneshCanvas::GetCanvas(int32_t fbo, const SkISize& size) {
skia
::
RefPtr
<
GrRenderTarget
>
target
=
skia
::
AdoptRef
(
gr_context_
->
textureProvider
()
->
wrapBackendRenderTarget
(
desc
));
DCHECK
(
target
);
sk_surface_
=
SkSurface
::
MakeRenderTargetDirect
(
target
.
get
());
sk_surface_
=
SkSurface
::
MakeRenderTargetDirect
(
target
.
get
()
,
nullptr
);
DCHECK
(
sk_surface_
);
return
sk_surface_
->
getCanvas
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录