Increase pixel difference threshold
PiperOrigin-RevId: 467610621
This commit is contained in:
parent
7a7e1eb23b
commit
73d606acf3
@ -55,13 +55,13 @@ public class BitmapTestUtil {
|
|||||||
* SingleFrameGlTextureProcessors} will cause the test to fail.
|
* SingleFrameGlTextureProcessors} will cause the test to fail.
|
||||||
*
|
*
|
||||||
* <p>To run pixel difference-based tests on physical devices, please use a value of 5f, rather
|
* <p>To run pixel difference-based tests on physical devices, please use a value of 5f, rather
|
||||||
* than 0.1f. This higher value will ignore some very small errors, but will allow for some
|
* than 0.5f. This higher value will ignore some very small errors, but will allow for some
|
||||||
* differences caused by graphics implementations to be ignored. When the difference is close to
|
* differences caused by graphics implementations to be ignored. When the difference is close to
|
||||||
* the threshold, manually inspect expected/actual bitmaps to confirm failure, as it's possible
|
* the threshold, manually inspect expected/actual bitmaps to confirm failure, as it's possible
|
||||||
* this is caused by a difference in the codec or graphics implementation as opposed to a {@link
|
* this is caused by a difference in the codec or graphics implementation as opposed to a {@link
|
||||||
* SingleFrameGlTextureProcessor} issue.
|
* SingleFrameGlTextureProcessor} issue.
|
||||||
*/
|
*/
|
||||||
public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.1f;
|
public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.5f;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads a bitmap from the specified asset location.
|
* Reads a bitmap from the specified asset location.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user