Commit ec7936f6 by andrewlewis Committed by Marc Baechinger

Increase pixel difference threshold

PiperOrigin-RevId: 467610621
parent 80f9ad9b
......@@ -55,13 +55,13 @@ public class BitmapTestUtil {
* SingleFrameGlTextureProcessors} will cause the test to fail.
*
* <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
* 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
* 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment