mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-16 08:29:34 +00:00
8373065: Test sun/awt/image/bug8038000.java failed: Pixels differ
Reviewed-by: jdv, azvegint
This commit is contained in:
parent
4fc26e3e82
commit
969b3fdc9c
@ -116,6 +116,7 @@
|
||||
* mlib_ImageSetFormat() sets new value for the image format
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "mlib_image.h"
|
||||
#include "mlib_ImageRowTable.h"
|
||||
@ -313,10 +314,12 @@ mlib_image* mlib_ImageCreate(mlib_type type,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
data = mlib_malloc(wb * height);
|
||||
if (data == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
memset(data, 0, wb * height);
|
||||
|
||||
image = (mlib_image *)mlib_malloc(sizeof(mlib_image));
|
||||
if (image == NULL) {
|
||||
|
||||
@ -1133,12 +1133,14 @@ fprintf(stderr,"Flags : %d\n",dst->flags);
|
||||
{
|
||||
unsigned char *cP = (unsigned char *)mlib_ImageGetData(dst);
|
||||
|
||||
memset(cP, 0, mlib_ImageGetWidth(dst)*mlib_ImageGetHeight(dst));
|
||||
if (ddata == NULL) { // zero medialib allocated memory
|
||||
memset(cP, 0, mlib_ImageGetWidth(dst) * mlib_ImageGetHeight(dst) * mlib_ImageGetChannels(dst));
|
||||
}
|
||||
}
|
||||
|
||||
/* Perform the transformation */
|
||||
if ((status = (*sMlibFns[MLIB_AFFINE].fptr)(dst, src, mtx, filter,
|
||||
MLIB_EDGE_SRC_EXTEND) != MLIB_SUCCESS))
|
||||
status = (*sMlibFns[MLIB_AFFINE].fptr)(dst, src, mtx, filter, MLIB_EDGE_SRC_EXTEND);
|
||||
if (status != MLIB_SUCCESS)
|
||||
{
|
||||
printMedialibError(status);
|
||||
/* REMIND: Free the regions */
|
||||
|
||||
@ -377,7 +377,6 @@ java/awt/GraphicsDevice/DisplayModes/UnknownRefrshRateTest.java 8286436 macosx-a
|
||||
java/awt/image/multiresolution/MultiresolutionIconTest.java 8291979 linux-x64,windows-all
|
||||
java/awt/event/SequencedEvent/MultipleContextsFunctionalTest.java 8305061 macosx-x64
|
||||
sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java 8301177 linux-x64
|
||||
sun/awt/image/bug8038000.java 8373065 generic-all
|
||||
|
||||
# Several tests which fail on some hidpi systems/macosx12-aarch64 system
|
||||
java/awt/Window/8159168/SetShapeTest.java 8274106 macosx-aarch64
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2026, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 8038000 8047066
|
||||
* @bug 8038000 8047066 8373065
|
||||
*
|
||||
* @summary Verifies that we could create different type of Rasters with height 1
|
||||
* and strideline which exceeds raster width.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user