Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e3f35040
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看板
提交
e3f35040
编写于
7月 12, 2010
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
dfe29e36
36ad855c
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
54 addition
and
52 deletion
+54
-52
make/common/shared/Defs-windows.gmk
make/common/shared/Defs-windows.gmk
+2
-6
make/mkdemo/Makefile
make/mkdemo/Makefile
+2
-2
src/share/classes/sun/awt/PlatformFont.java
src/share/classes/sun/awt/PlatformFont.java
+4
-4
src/share/classes/sun/font/FontUtilities.java
src/share/classes/sun/font/FontUtilities.java
+23
-26
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
...share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
+1
-13
src/share/native/sun/awt/image/BufImgSurfaceData.c
src/share/native/sun/awt/image/BufImgSurfaceData.c
+4
-0
src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c
src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c
+5
-0
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
+4
-0
src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
+4
-0
src/windows/native/sun/java2d/windows/GDIWindowSurfaceData.cpp
...indows/native/sun/java2d/windows/GDIWindowSurfaceData.cpp
+4
-0
test/java/awt/FontClass/FontPrivilege.java
test/java/awt/FontClass/FontPrivilege.java
+1
-1
未找到文件。
make/common/shared/Defs-windows.gmk
浏览文件 @
e3f35040
...
...
@@ -230,7 +230,8 @@ endif
# Compilers, SDK, and Visual Studio (MSDEV) [32bit is different from 64bit]
ifeq ($(ARCH_DATA_MODEL), 32)
# Try looking in MSVCDIR or MSVCDir area first (set by vcvars32.bat)
# Try looking in MSVCDIR or MSVCDir area first
# (set by vcvars32.bat for VC .NET, not defined in the VC 2008/2010)
ifdef MSVCDIR
xMSVCDIR :="$(subst \,/,$(MSVCDIR))"
_msvc_dir :=$(call FullPath,$(xMSVCDIR))
...
...
@@ -238,11 +239,6 @@ ifeq ($(ARCH_DATA_MODEL), 32)
ifdef MSVCDir
xMSVCDIR :="$(subst \,/,$(MSVCDir))"
_msvc_dir :=$(call FullPath,$(xMSVCDIR))
else
ifneq ($(_program_files),)
xMSVCDIR :="$(_program_files)/Microsoft Visual Studio .NET 2003/Vc7"
_msvc_dir :=$(call FullPath,$(xMSVCDIR))
endif
endif
endif
# If we still don't have it, look for VSnnCOMNTOOLS (newest first),
...
...
make/mkdemo/Makefile
浏览文件 @
e3f35040
...
...
@@ -46,11 +46,11 @@ nbproject:
$(RM)
-r
$(DEMODIR)
/nbproject
$(MKDIR)
-p
$(DEMODIR)
(
$(CD)
$(SHARE_SRC)
/demo
&&
$(TAR)
-cf
-
\
`
find
nbproject
$(SCM_DIRS_prune)
-o
-type
f
-print
`
)
|
\
`
$(FIND)
nbproject
$(SCM_DIRS_prune)
-o
-type
f
-print
`
)
|
\
(
$(CD)
$(DEMODIR)
&&
$(TAR)
-xf
-
)
ifndef
OPENJDK
(
$(CD)
$(CLOSED_SHARE_SRC)
/demo
&&
$(TAR)
-cf
-
\
`
find
nbproject
$(SCM_DIRS_prune)
-o
-type
f
-print
`
)
|
\
`
$(FIND)
nbproject
$(SCM_DIRS_prune)
-o
-type
f
-print
`
)
|
\
(
$(CD)
$(DEMODIR)
&&
$(TAR)
-xf
-
)
endif
...
...
src/share/classes/sun/awt/PlatformFont.java
浏览文件 @
e3f35040
...
...
@@ -25,10 +25,10 @@
package
sun.awt
;
import
java.awt.GraphicsEnvironment
;
import
java.awt.peer.FontPeer
;
import
java.util.Locale
;
import
java.util.Vector
;
import
sun.font.SunFontManager
;
import
sun.java2d.FontSupport
;
import
java.nio.CharBuffer
;
import
java.nio.ByteBuffer
;
...
...
@@ -57,9 +57,9 @@ public abstract class PlatformFont implements FontPeer {
protected
static
String
osVersion
;
public
PlatformFont
(
String
name
,
int
style
){
GraphicsEnvironment
ge
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
();
if
(
ge
instanceof
FontSupport
)
{
fontConfig
=
((
FontSupport
)
ge
).
getFontConfiguration
();
SunFontManager
sfm
=
SunFontManager
.
getInstance
();
if
(
sfm
instanceof
FontSupport
)
{
fontConfig
=
((
FontSupport
)
sfm
).
getFontConfiguration
();
}
if
(
fontConfig
==
null
)
{
return
;
...
...
src/share/classes/sun/font/FontUtilities.java
浏览文件 @
e3f35040
...
...
@@ -60,6 +60,10 @@ public final class FontUtilities {
static
final
String
LUCIDA_FILE_NAME
=
"LucidaSansRegular.ttf"
;
private
static
boolean
debugFonts
=
false
;
private
static
PlatformLogger
logger
=
null
;
private
static
boolean
logging
;
// This static initializer block figures out the OS constants.
static
{
...
...
@@ -115,6 +119,25 @@ public final class FontUtilities {
File
lucidaFile
=
new
File
(
jreFontDirName
+
File
.
separator
+
LUCIDA_FILE_NAME
);
isOpenJDK
=
!
lucidaFile
.
exists
();
String
debugLevel
=
System
.
getProperty
(
"sun.java2d.debugfonts"
);
if
(
debugLevel
!=
null
&&
!
debugLevel
.
equals
(
"false"
))
{
debugFonts
=
true
;
logger
=
PlatformLogger
.
getLogger
(
"sun.java2d"
);
if
(
debugLevel
.
equals
(
"warning"
))
{
logger
.
setLevel
(
PlatformLogger
.
WARNING
);
}
else
if
(
debugLevel
.
equals
(
"severe"
))
{
logger
.
setLevel
(
PlatformLogger
.
SEVERE
);
}
}
if
(
debugFonts
)
{
logger
=
PlatformLogger
.
getLogger
(
"sun.java2d"
);
logging
=
logger
.
isEnabled
();
}
return
null
;
}
});
...
...
@@ -140,32 +163,6 @@ public final class FontUtilities {
*/
public
static
final
int
MAX_LAYOUT_CHARCODE
=
0x206F
;
private
static
boolean
debugFonts
=
false
;
private
static
PlatformLogger
logger
=
null
;
private
static
boolean
logging
;
static
{
String
debugLevel
=
System
.
getProperty
(
"sun.java2d.debugfonts"
);
if
(
debugLevel
!=
null
&&
!
debugLevel
.
equals
(
"false"
))
{
debugFonts
=
true
;
logger
=
PlatformLogger
.
getLogger
(
"sun.java2d"
);
if
(
debugLevel
.
equals
(
"warning"
))
{
logger
.
setLevel
(
PlatformLogger
.
WARNING
);
}
else
if
(
debugLevel
.
equals
(
"severe"
))
{
logger
.
setLevel
(
PlatformLogger
.
SEVERE
);
}
}
if
(
debugFonts
)
{
logger
=
PlatformLogger
.
getLogger
(
"sun.java2d"
);
logging
=
logger
.
isEnabled
();
}
}
/**
* Calls the private getFont2D() method in java.awt.Font objects.
*
...
...
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
浏览文件 @
e3f35040
...
...
@@ -59,17 +59,12 @@ import java.awt.Rectangle;
* Headless decorator implementation of a SunGraphicsEnvironment
*/
public
class
HeadlessGraphicsEnvironment
extends
GraphicsEnvironment
implements
FontSupport
{
public
class
HeadlessGraphicsEnvironment
extends
GraphicsEnvironment
{
private
GraphicsEnvironment
ge
;
private
FontSupport
fontSupport
;
public
HeadlessGraphicsEnvironment
(
GraphicsEnvironment
ge
)
{
this
.
ge
=
ge
;
if
(
ge
instanceof
FontSupport
)
{
fontSupport
=
(
FontSupport
)
ge
;
}
}
public
GraphicsDevice
[]
getScreenDevices
()
...
...
@@ -101,13 +96,6 @@ public class HeadlessGraphicsEnvironment extends GraphicsEnvironment
public
String
[]
getAvailableFontFamilyNames
(
Locale
l
)
{
return
ge
.
getAvailableFontFamilyNames
(
l
);
}
public
FontConfiguration
getFontConfiguration
()
{
if
(
fontSupport
!=
null
)
{
return
fontSupport
.
getFontConfiguration
();
}
return
null
;
}
/* Used by FontManager : internal API */
public
GraphicsEnvironment
getSunGraphicsEnvironment
()
{
return
ge
;
...
...
src/share/native/sun/awt/image/BufImgSurfaceData.c
浏览文件 @
e3f35040
...
...
@@ -111,6 +111,10 @@ Java_sun_awt_image_BufImgSurfaceData_initRaster(JNIEnv *env, jobject bisd,
{
BufImgSDOps
*
bisdo
=
(
BufImgSDOps
*
)
SurfaceData_InitOps
(
env
,
bisd
,
sizeof
(
BufImgSDOps
));
if
(
bisdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"Initialization of SurfaceData failed."
);
return
;
}
bisdo
->
sdOps
.
Lock
=
BufImg_Lock
;
bisdo
->
sdOps
.
GetRasInfo
=
BufImg_GetRasInfo
;
bisdo
->
sdOps
.
Release
=
BufImg_Release
;
...
...
src/solaris/native/sun/java2d/opengl/GLXSurfaceData.c
浏览文件 @
e3f35040
...
...
@@ -65,6 +65,11 @@ Java_sun_java2d_opengl_GLXSurfaceData_initOps(JNIEnv *env, jobject glxsd,
J2dTraceLn
(
J2D_TRACE_INFO
,
"GLXSurfaceData_initOps"
);
if
(
oglsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"Initialization of SurfaceData failed."
);
return
;
}
if
(
glxsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"creating native GLX ops"
);
return
;
...
...
src/solaris/native/sun/java2d/x11/X11SurfaceData.c
浏览文件 @
e3f35040
...
...
@@ -253,6 +253,10 @@ Java_sun_java2d_x11_XSurfaceData_initOps(JNIEnv *env, jobject xsd,
{
#ifndef HEADLESS
X11SDOps
*
xsdo
=
(
X11SDOps
*
)
SurfaceData_InitOps
(
env
,
xsd
,
sizeof
(
X11SDOps
));
if
(
xsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"Initialization of SurfaceData failed."
);
return
;
}
xsdo
->
sdOps
.
Lock
=
X11SD_Lock
;
xsdo
->
sdOps
.
GetRasInfo
=
X11SD_GetRasInfo
;
xsdo
->
sdOps
.
Unlock
=
X11SD_Unlock
;
...
...
src/windows/native/sun/java2d/opengl/WGLSurfaceData.c
浏览文件 @
e3f35040
...
...
@@ -66,6 +66,10 @@ Java_sun_java2d_opengl_WGLSurfaceData_initOps(JNIEnv *env, jobject wglsd,
J2dTraceLn
(
J2D_TRACE_INFO
,
"WGLSurfaceData_initOps"
);
if
(
oglsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"Initialization of SurfaceData failed."
);
return
;
}
if
(
wglsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"creating native wgl ops"
);
return
;
...
...
src/windows/native/sun/java2d/windows/GDIWindowSurfaceData.cpp
浏览文件 @
e3f35040
...
...
@@ -363,6 +363,10 @@ Java_sun_java2d_windows_GDIWindowSurfaceData_initOps(JNIEnv *env, jobject wsd,
{
J2dTraceLn
(
J2D_TRACE_INFO
,
"GDIWindowSurfaceData_initOps"
);
GDIWinSDOps
*
wsdo
=
(
GDIWinSDOps
*
)
SurfaceData_InitOps
(
env
,
wsd
,
sizeof
(
GDIWinSDOps
));
if
(
wsdo
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
"Initialization of SurfaceData failed."
);
return
;
}
wsdo
->
sdOps
.
Lock
=
GDIWinSD_Lock
;
wsdo
->
sdOps
.
GetRasInfo
=
GDIWinSD_GetRasInfo
;
wsdo
->
sdOps
.
Unlock
=
GDIWinSD_Unlock
;
...
...
test/java/awt/FontClass/FontPrivilege.java
浏览文件 @
e3f35040
...
...
@@ -23,7 +23,7 @@
/*
* @test
* @bug 5010310 6319835 6904882
* @bug 5010310 6319835 6904882
6968373
* @summary test fonts can be created in the presence of a security manager
* @run main/othervm/secure=java.lang.SecurityManager FontPrivilege
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录