Skip to content

Commit

Permalink
Increase pixel difference threshold
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 467610621
  • Loading branch information
andrewlewis authored and marcbaechinger committed Oct 19, 2022
1 parent 80f9ad9 commit ec7936f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ec7936f

Please sign in to comment.