Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
9cb9fc47
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9cb9fc47
编写于
5月 31, 2019
作者:
A
alitvinov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8218877: Help transform transformers
Reviewed-by: serb, prr, mschoene, bpb, ssahoo
上级
cf79f02c
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
13 addition
and
9 deletion
+13
-9
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
+2
-0
src/share/native/sun/java2d/loops/LoopMacros.h
src/share/native/sun/java2d/loops/LoopMacros.h
+4
-4
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
+4
-4
src/windows/native/sun/java2d/d3d/D3DContext.cpp
src/windows/native/sun/java2d/d3d/D3DContext.cpp
+3
-1
未找到文件。
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
浏览文件 @
9cb9fc47
...
@@ -489,6 +489,8 @@ extern struct _CompositeTypes {
...
@@ -489,6 +489,8 @@ extern struct _CompositeTypes {
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, \
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, \
((ptrdiff_t)(y))*(yinc) + \
((ptrdiff_t)(y))*(yinc) + \
((ptrdiff_t)(x))*(xinc))
((ptrdiff_t)(x))*(xinc))
#define PtrPixelsRow(p, y, scanStride) PtrAddBytes(p, \
((intptr_t) (y)) * (scanStride))
/*
/*
* The function to call with an array of NativePrimitive structures
* The function to call with an array of NativePrimitive structures
...
...
src/share/native/sun/java2d/loops/LoopMacros.h
浏览文件 @
9cb9fc47
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
do { \
do { \
juint w = WIDTH; \
juint w = WIDTH; \
jint tmpsxloc = SXLOC; \
jint tmpsxloc = SXLOC; \
SRCPTR = Ptr
AddBytes(SRCBASE, ((SYLOC >> SHIFT) * srcScan)
); \
SRCPTR = Ptr
PixelsRow(SRCBASE, (SYLOC >> SHIFT), srcScan
); \
Init ## DSTTYPE ## StoreVarsX(DSTPREFIX, DSTINFO); \
Init ## DSTTYPE ## StoreVarsX(DSTPREFIX, DSTINFO); \
do { \
do { \
jint XVAR = (tmpsxloc >> SHIFT); \
jint XVAR = (tmpsxloc >> SHIFT); \
...
@@ -2015,7 +2015,7 @@ void NAME_TRANSFORMHELPER_NN(SRC)(SurfaceDataRasInfo *pSrcInfo, \
...
@@ -2015,7 +2015,7 @@ void NAME_TRANSFORMHELPER_NN(SRC)(SurfaceDataRasInfo *pSrcInfo, \
\
\
Init ## SRC ## LoadVars(SrcRead, pSrcInfo); \
Init ## SRC ## LoadVars(SrcRead, pSrcInfo); \
while (pRGB < pEnd) { \
while (pRGB < pEnd) { \
SRC ## DataType *pRow = Ptr
AddBytes(pBase, WholeOfLong(ylong) *
scan); \
SRC ## DataType *pRow = Ptr
PixelsRow(pBase, WholeOfLong(ylong),
scan); \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, \
SrcRead, pRow, WholeOfLong(xlong)); \
SrcRead, pRow, WholeOfLong(xlong)); \
pRGB++; \
pRGB++; \
...
@@ -2063,7 +2063,7 @@ void NAME_TRANSFORMHELPER_BL(SRC)(SurfaceDataRasInfo *pSrcInfo, \
...
@@ -2063,7 +2063,7 @@ void NAME_TRANSFORMHELPER_BL(SRC)(SurfaceDataRasInfo *pSrcInfo, \
ydelta &= scan; \
ydelta &= scan; \
\
\
xwhole += cx; \
xwhole += cx; \
pRow = Ptr
AddBytes(pSrcInfo->rasBase, (ywhole + cy) *
scan); \
pRow = Ptr
PixelsRow(pSrcInfo->rasBase, (ywhole + cy),
scan); \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, SrcRead, pRow, xwhole); \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, SrcRead, pRow, xwhole); \
Copy ## SRC ## ToIntArgbPre(pRGB, 1, SrcRead, pRow, xwhole+xdelta); \
Copy ## SRC ## ToIntArgbPre(pRGB, 1, SrcRead, pRow, xwhole+xdelta); \
pRow = PtrAddBytes(pRow, ydelta); \
pRow = PtrAddBytes(pRow, ydelta); \
...
@@ -2121,7 +2121,7 @@ void NAME_TRANSFORMHELPER_BC(SRC)(SurfaceDataRasInfo *pSrcInfo, \
...
@@ -2121,7 +2121,7 @@ void NAME_TRANSFORMHELPER_BC(SRC)(SurfaceDataRasInfo *pSrcInfo, \
ydelta1 += (isneg & -scan); \
ydelta1 += (isneg & -scan); \
\
\
xwhole += cx; \
xwhole += cx; \
pRow = Ptr
AddBytes(pSrcInfo->rasBase, (ywhole + cy) *
scan); \
pRow = Ptr
PixelsRow(pSrcInfo->rasBase, (ywhole + cy),
scan); \
pRow = PtrAddBytes(pRow, ydelta0); \
pRow = PtrAddBytes(pRow, ydelta0); \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, SrcRead, pRow, xwhole+xdelta0); \
Copy ## SRC ## ToIntArgbPre(pRGB, 0, SrcRead, pRow, xwhole+xdelta0); \
Copy ## SRC ## ToIntArgbPre(pRGB, 1, SrcRead, pRow, xwhole ); \
Copy ## SRC ## ToIntArgbPre(pRGB, 1, SrcRead, pRow, xwhole ); \
...
...
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
浏览文件 @
9cb9fc47
...
@@ -717,8 +717,8 @@ void flip(void *pDst, juint w, juint h, jint scanStride, jboolean convert) {
...
@@ -717,8 +717,8 @@ void flip(void *pDst, juint w, juint h, jint scanStride, jboolean convert) {
juint
step
=
0
;
juint
step
=
0
;
// vertical flip and convert argbpre to argb if necessary
// vertical flip and convert argbpre to argb if necessary
for
(;
i
<
h
/
2
;
++
i
)
{
for
(;
i
<
h
/
2
;
++
i
)
{
juint
*
r1
=
Ptr
AddBytes
(
pDst
,
(
i
*
scanStride
)
);
juint
*
r1
=
Ptr
PixelsRow
(
pDst
,
i
,
scanStride
);
juint
*
r2
=
Ptr
AddBytes
(
pDst
,
(
h
-
i
-
1
)
*
scanStride
);
juint
*
r2
=
Ptr
PixelsRow
(
pDst
,
h
-
i
-
1
,
scanStride
);
if
(
tempRow
)
{
if
(
tempRow
)
{
// fast path
// fast path
memcpy
(
tempRow
,
r1
,
clippedStride
);
memcpy
(
tempRow
,
r1
,
clippedStride
);
...
@@ -740,7 +740,7 @@ void flip(void *pDst, juint w, juint h, jint scanStride, jboolean convert) {
...
@@ -740,7 +740,7 @@ void flip(void *pDst, juint w, juint h, jint scanStride, jboolean convert) {
}
}
// convert the middle line if necessary
// convert the middle line if necessary
if
(
convert
&&
h
%
2
)
{
if
(
convert
&&
h
%
2
)
{
juint
*
r1
=
Ptr
AddBytes
(
pDst
,
(
i
*
scanStride
)
);
juint
*
r1
=
Ptr
PixelsRow
(
pDst
,
i
,
scanStride
);
for
(
step
=
0
;
step
<
w
;
++
step
)
{
for
(
step
=
0
;
step
<
w
;
++
step
)
{
LoadIntArgbPreTo1IntArgb
(
r1
,
0
,
step
,
r1
[
step
]);
LoadIntArgbPreTo1IntArgb
(
r1
,
0
,
step
,
r1
[
step
]);
}
}
...
@@ -813,7 +813,7 @@ OGLBlitLoops_SurfaceToSwBlit(JNIEnv *env, OGLContext *oglc,
...
@@ -813,7 +813,7 @@ OGLBlitLoops_SurfaceToSwBlit(JNIEnv *env, OGLContext *oglc,
height
=
srcInfo
.
bounds
.
y2
-
srcInfo
.
bounds
.
y1
;
height
=
srcInfo
.
bounds
.
y2
-
srcInfo
.
bounds
.
y1
;
pDst
=
PtrAddBytes
(
pDst
,
dstx
*
dstInfo
.
pixelStride
);
pDst
=
PtrAddBytes
(
pDst
,
dstx
*
dstInfo
.
pixelStride
);
pDst
=
Ptr
AddBytes
(
pDst
,
dsty
*
dstInfo
.
scanStride
);
pDst
=
Ptr
PixelsRow
(
pDst
,
dsty
,
dstInfo
.
scanStride
);
j2d_glPixelStorei
(
GL_PACK_ROW_LENGTH
,
j2d_glPixelStorei
(
GL_PACK_ROW_LENGTH
,
dstInfo
.
scanStride
/
dstInfo
.
pixelStride
);
dstInfo
.
scanStride
/
dstInfo
.
pixelStride
);
...
...
src/windows/native/sun/java2d/d3d/D3DContext.cpp
浏览文件 @
9cb9fc47
...
@@ -1156,7 +1156,9 @@ D3DContext::UploadTileToTexture(D3DResource *pTextureRes, void *pixels,
...
@@ -1156,7 +1156,9 @@ D3DContext::UploadTileToTexture(D3DResource *pTextureRes, void *pixels,
{
{
#ifndef PtrAddBytes
#ifndef PtrAddBytes
#define PtrAddBytes(p, b) ((void *) (((intptr_t) (p)) + (b)))
#define PtrAddBytes(p, b) ((void *) (((intptr_t) (p)) + (b)))
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, (y)*(yinc) + (x)*(xinc))
#define PtrCoord(p, x, xinc, y, yinc) PtrAddBytes(p, \
((ptrdiff_t)(y))*(yinc) + \
((ptrdiff_t)(x))*(xinc))
#endif // PtrAddBytes
#endif // PtrAddBytes
HRESULT
res
=
S_OK
;
HRESULT
res
=
S_OK
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录