提交 1a2ab3bf 编写于 作者: P prr

8180877: More deeply colored ICC spaces

Reviewed-by: serb, rhalade, mschoene
上级 d4d5afe6
...@@ -127,6 +127,18 @@ public class ICC_ColorSpace extends ColorSpace { ...@@ -127,6 +127,18 @@ public class ICC_ColorSpace extends ColorSpace {
setMinMax(); setMinMax();
} }
/**
* Validate ICC_ColorSpace read from an object input stream
*/
private void readObject(java.io.ObjectInputStream s)
throws ClassNotFoundException, java.io.IOException {
s.defaultReadObject();
if (thisProfile == null) {
thisProfile = ICC_Profile.getInstance(ColorSpace.CS_sRGB);
}
}
/** /**
* Returns the ICC_Profile for this ICC_ColorSpace. * Returns the ICC_Profile for this ICC_ColorSpace.
* @return the ICC_Profile for this ICC_ColorSpace. * @return the ICC_Profile for this ICC_ColorSpace.
......
...@@ -644,7 +644,12 @@ JNIEXPORT jobject JNICALL Java_sun_java2d_cmm_lcms_LCMS_getProfileID ...@@ -644,7 +644,12 @@ JNIEXPORT jobject JNICALL Java_sun_java2d_cmm_lcms_LCMS_getProfileID
{ {
jclass clsLcmsProfile; jclass clsLcmsProfile;
jobject cmmProfile; jobject cmmProfile;
jfieldID fid = (*env)->GetFieldID (env, jfieldID fid;
if (pf == NULL) {
return NULL;
}
fid = (*env)->GetFieldID (env,
(*env)->GetObjectClass(env, pf), (*env)->GetObjectClass(env, pf),
"cmmProfile", "Lsun/java2d/cmm/Profile;"); "cmmProfile", "Lsun/java2d/cmm/Profile;");
if (fid == NULL) { if (fid == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册