Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
a715a5cc
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看板
提交
a715a5cc
编写于
5月 06, 2013
作者:
S
simonis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7191872: Xrender: No text displayed using 64 bit JDK on solaris11-sparc
Reviewed-by: prr, ceisserer
上级
ec336348
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
26 deletion
+34
-26
src/share/classes/sun/font/FileFontStrike.java
src/share/classes/sun/font/FileFontStrike.java
+3
-8
src/share/classes/sun/font/GlyphList.java
src/share/classes/sun/font/GlyphList.java
+3
-9
src/solaris/classes/sun/font/XRGlyphCacheEntry.java
src/solaris/classes/sun/font/XRGlyphCacheEntry.java
+22
-8
src/solaris/native/sun/java2d/x11/XRBackendNative.c
src/solaris/native/sun/java2d/x11/XRBackendNative.c
+6
-1
未找到文件。
src/share/classes/sun/font/FileFontStrike.java
浏览文件 @
a715a5cc
...
...
@@ -747,14 +747,9 @@ public class FileFontStrike extends PhysicalStrike {
return
origMinX
;
}
long
pixelData
;
if
(
StrikeCache
.
nativeAddressSize
==
4
)
{
pixelData
=
0xffffffff
&
StrikeCache
.
unsafe
.
getInt
(
ptr
+
StrikeCache
.
pixelDataOffset
);
}
else
{
pixelData
=
StrikeCache
.
unsafe
.
getLong
(
ptr
+
StrikeCache
.
pixelDataOffset
);
}
long
pixelData
=
StrikeCache
.
unsafe
.
getAddress
(
ptr
+
StrikeCache
.
pixelDataOffset
);
if
(
pixelData
==
0L
)
{
return
origMinX
;
}
...
...
src/share/classes/sun/font/GlyphList.java
浏览文件 @
a715a5cc
...
...
@@ -361,16 +361,10 @@ public final class GlyphList {
graybits
=
new
byte
[
len
];
}
}
long
pixelDataAddress
;
if
(
StrikeCache
.
nativeAddressSize
==
4
)
{
pixelDataAddress
=
0xffffffff
&
StrikeCache
.
unsafe
.
getInt
(
images
[
glyphindex
]
+
long
pixelDataAddress
=
StrikeCache
.
unsafe
.
getAddress
(
images
[
glyphindex
]
+
StrikeCache
.
pixelDataOffset
);
}
else
{
pixelDataAddress
=
StrikeCache
.
unsafe
.
getLong
(
images
[
glyphindex
]
+
StrikeCache
.
pixelDataOffset
);
}
if
(
pixelDataAddress
==
0L
)
{
return
graybits
;
}
...
...
src/solaris/classes/sun/font/XRGlyphCacheEntry.java
浏览文件 @
a715a5cc
...
...
@@ -69,11 +69,28 @@ public class XRGlyphCacheEntry {
}
public
static
int
getGlyphID
(
long
glyphInfoPtr
)
{
return
(
int
)
StrikeCache
.
unsafe
.
getInt
(
glyphInfoPtr
+
StrikeCache
.
cacheCellOffset
);
// We need to access the GlyphID with Unsafe.getAddress() because the
// corresponding field in the underlying C data-structure is of type
// 'void*' (see field 'cellInfo' of struct 'GlyphInfo'
// in src/share/native/sun/font/fontscalerdefs.h).
// On 64-bit Big-endian architectures it would be wrong to access this
// field with Unsafe.getInt().
return
(
int
)
StrikeCache
.
unsafe
.
getAddress
(
glyphInfoPtr
+
StrikeCache
.
cacheCellOffset
);
}
public
static
void
setGlyphID
(
long
glyphInfoPtr
,
int
id
)
{
StrikeCache
.
unsafe
.
putInt
(
glyphInfoPtr
+
StrikeCache
.
cacheCellOffset
,
id
);
// We need to access the GlyphID with Unsafe.putAddress() because the
// corresponding field in the underlying C data-structure is of type
// 'void*' (see field 'cellInfo' of struct 'GlyphInfo' in
// src/share/native/sun/font/fontscalerdefs.h).
// On 64-bit Big-endian architectures it would be wrong to write this
// field with Unsafe.putInt() because it is also accessed from native
// code as a 'long'.
// See Java_sun_java2d_xr_XRBackendNative_XRAddGlyphsNative()
// in src/solaris/native/sun/java2d/x11/XRBackendNative.c
StrikeCache
.
unsafe
.
putAddress
(
glyphInfoPtr
+
StrikeCache
.
cacheCellOffset
,
(
long
)
id
);
}
public
int
getGlyphID
()
{
...
...
@@ -105,12 +122,9 @@ public class XRGlyphCacheEntry {
}
public
void
writePixelData
(
ByteArrayOutputStream
os
,
boolean
uploadAsLCD
)
{
long
pixelDataAddress
;
if
(
StrikeCache
.
nativeAddressSize
==
4
)
{
pixelDataAddress
=
0xffffffff
&
StrikeCache
.
unsafe
.
getInt
(
glyphInfoPtr
+
StrikeCache
.
pixelDataOffset
);
}
else
{
pixelDataAddress
=
StrikeCache
.
unsafe
.
getLong
(
glyphInfoPtr
+
StrikeCache
.
pixelDataOffset
);
}
long
pixelDataAddress
=
StrikeCache
.
unsafe
.
getAddress
(
glyphInfoPtr
+
StrikeCache
.
pixelDataOffset
);
if
(
pixelDataAddress
==
0L
)
{
return
;
}
...
...
src/solaris/native/sun/java2d/x11/XRBackendNative.c
浏览文件 @
a715a5cc
...
...
@@ -742,7 +742,12 @@ Java_sun_java2d_xr_XRBackendNative_XRAddGlyphsNative
for
(
i
=
0
;
i
<
glyphCnt
;
i
++
)
{
GlyphInfo
*
jginfo
=
(
GlyphInfo
*
)
jlong_to_ptr
(
glyphInfoPtrs
[
i
]);
gid
[
i
]
=
(
Glyph
)
(
0x0ffffffffL
&
((
unsigned
long
)(
jginfo
->
cellInfo
)));
// 'jginfo->cellInfo' is of type 'void*'
// (see definition of 'GlyphInfo' in fontscalerdefs.h)
// 'Glyph' is typedefed to 'unsigned long'
// (see http://www.x.org/releases/X11R7.7/doc/libXrender/libXrender.txt)
// Maybe we should assert that (sizeof(void*) == sizeof(Glyph)) ?
gid
[
i
]
=
(
Glyph
)
(
jginfo
->
cellInfo
);
xginfo
[
i
].
x
=
(
-
jginfo
->
topLeftX
);
xginfo
[
i
].
y
=
(
-
jginfo
->
topLeftY
);
xginfo
[
i
].
width
=
jginfo
->
width
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录