Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
d4aed30b
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看板
提交
d4aed30b
编写于
3月 01, 2011
作者:
C
ceisserer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6974985: Jave2Demo threw exceptions when xrender enabled in OEL5.5
Reviewed-by: prr
上级
81c723ed
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
44 addition
and
0 deletion
+44
-0
make/sun/awt/mapfile-mawt-vers
make/sun/awt/mapfile-mawt-vers
+1
-0
make/sun/xawt/mapfile-vers
make/sun/xawt/mapfile-vers
+1
-0
src/solaris/classes/sun/java2d/xr/XRSurfaceData.java
src/solaris/classes/sun/java2d/xr/XRSurfaceData.java
+13
-0
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
+6
-0
src/solaris/native/sun/java2d/x11/XRSurfaceData.c
src/solaris/native/sun/java2d/x11/XRSurfaceData.c
+23
-0
未找到文件。
make/sun/awt/mapfile-mawt-vers
浏览文件 @
d4aed30b
...
...
@@ -424,6 +424,7 @@ SUNWprivate_1.1 {
Java_sun_java2d_xr_XRSurfaceData_initXRPicture;
Java_sun_java2d_xr_XRSurfaceData_initIDs;
Java_sun_java2d_xr_XRSurfaceData_XRInitSurface;
Java_sun_java2d_xr_XRSurfaceData_freeXSDOPicture;
Java_sun_java2d_xr_XRBackendNative_initIDs;
Java_sun_java2d_xr_XIDGenerator_bufferXIDs;
Java_sun_java2d_xr_XRBackendNative_freeGC;
...
...
make/sun/xawt/mapfile-vers
浏览文件 @
d4aed30b
...
...
@@ -374,6 +374,7 @@ SUNWprivate_1.1 {
Java_sun_java2d_xr_XRSurfaceData_initXRPicture;
Java_sun_java2d_xr_XRSurfaceData_initIDs;
Java_sun_java2d_xr_XRSurfaceData_XRInitSurface;
Java_sun_java2d_xr_XRSurfaceData_freeXSDOPicture;
Java_sun_java2d_xr_XRBackendNative_initIDs;
Java_sun_java2d_xr_XRBackendNative_freeGC;
Java_sun_java2d_xr_XRBackendNative_createGC;
...
...
src/solaris/classes/sun/java2d/xr/XRSurfaceData.java
浏览文件 @
d4aed30b
...
...
@@ -55,6 +55,8 @@ public abstract class XRSurfaceData extends XSurfaceData {
native
void
initXRPicture
(
long
xsdo
,
int
pictForm
);
native
void
freeXSDOPicture
(
long
xsdo
);
public
static
final
String
DESC_BYTE_A8_X11
=
"Byte A8 Pixmap"
;
public
static
final
String
DESC_INT_RGB_X11
=
"Integer RGB Pixmap"
;
public
static
final
String
DESC_INT_ARGB_X11
=
"Integer ARGB-Pre Pixmap"
;
...
...
@@ -531,6 +533,17 @@ public abstract class XRSurfaceData extends XSurfaceData {
public
Object
getDestination
()
{
return
peer
.
getTarget
();
}
public
void
invalidate
()
{
try
{
SunToolkit
.
awtLock
();
freeXSDOPicture
(
getNativeOps
());
}
finally
{
SunToolkit
.
awtUnlock
();
}
super
.
invalidate
();
}
}
public
static
class
XRInternalSurfaceData
extends
XRSurfaceData
{
...
...
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
浏览文件 @
d4aed30b
...
...
@@ -375,6 +375,12 @@ X11SD_Dispose(JNIEnv *env, SurfaceDataOps *ops)
AWT_LOCK
();
xsdo
->
invalid
=
JNI_TRUE
;
if
(
xsdo
->
xrPic
!=
None
)
{
XRenderFreePicture
(
awt_display
,
xsdo
->
xrPic
);
xsdo
->
xrPic
=
None
;
}
if
(
xsdo
->
isPixmap
==
JNI_TRUE
&&
xsdo
->
drawable
!=
0
)
{
#ifdef MITSHM
if
(
xsdo
->
shmPMData
.
shmSegInfo
!=
NULL
)
{
...
...
src/solaris/native/sun/java2d/x11/XRSurfaceData.c
浏览文件 @
d4aed30b
...
...
@@ -114,3 +114,26 @@ Java_sun_java2d_xr_XRSurfaceData_XRInitSurface(JNIEnv *env, jclass xsd,
XShared_initSurface
(
env
,
xsdo
,
depth
,
width
,
height
,
drawable
);
#endif
/* !HEADLESS */
}
JNIEXPORT
void
JNICALL
Java_sun_java2d_xr_XRSurfaceData_freeXSDOPicture
(
JNIEnv
*
env
,
jobject
xsd
,
jlong
pXSData
)
{
#ifndef HEADLESS
X11SDOps
*
xsdo
;
J2dTraceLn
(
J2D_TRACE_INFO
,
"in XRSurfaceData_freeXSDOPicture"
);
xsdo
=
X11SurfaceData_GetOps
(
env
,
xsd
);
if
(
xsdo
==
NULL
)
{
return
;
}
if
(
xsdo
->
xrPic
!=
None
)
{
XRenderFreePicture
(
awt_display
,
xsdo
->
xrPic
);
xsdo
->
xrPic
=
None
;
}
#endif
/* !HEADLESS */
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录