When using EGL, com.sun.prism.es2.ES2SwapChain calculates the context origin coordinates (contextX, contentY), based on the screen coordinates, mixing up values with different scales: for instance screenHeight is in logical pixels while ouputHeight is in physical pixels.
While this works for regular embedded devices with no HiDPI (scale is 1.0), that is not the case on Android, which has HiDPI support and output scale is greater than 1.0.
Since the context coordinates are in physical pixels, all magnitudes should be scaled accordingly.
While this works for regular embedded devices with no HiDPI (scale is 1.0), that is not the case on Android, which has HiDPI support and output scale is greater than 1.0.
Since the context coordinates are in physical pixels, all magnitudes should be scaled accordingly.