mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Rename ContrastProcessorPixelTest and make contexts final
PiperOrigin-RevId: 463450395 (cherry picked from commit 302a742c944b002379759ed05f121aaeab8af396)
This commit is contained in:
parent
b68412a1f7
commit
6cf0737e00
@ -45,7 +45,7 @@ import org.junit.runner.RunWith;
|
||||
* as recommended in {@link GlEffectsFrameProcessorPixelTest}.
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ContrastProcessorPixelTest {
|
||||
public class ContrastPixelTest {
|
||||
private static final String EXOPLAYER_LOGO_PNG_ASSET_PATH =
|
||||
"media/bitmap/exoplayer_logo/original.png";
|
||||
// TODO(b/239005261): Migrate png to an emulator generated picture.
|
@ -52,7 +52,8 @@ public final class CropPixelTest {
|
||||
public static final String CROP_LARGER_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/crop_larger.png";
|
||||
|
||||
private Context context = getApplicationContext();
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
private @MonotonicNonNull EGLDisplay eglDisplay;
|
||||
private @MonotonicNonNull EGLContext eglContext;
|
||||
private @MonotonicNonNull SingleFrameGlTextureProcessor cropTextureProcessor;
|
||||
|
@ -54,6 +54,7 @@ public final class MatrixTransformationProcessorPixelTest {
|
||||
"media/bitmap/sample_mp4_first_frame/rotate90.png";
|
||||
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
private @MonotonicNonNull EGLDisplay eglDisplay;
|
||||
private @MonotonicNonNull EGLContext eglContext;
|
||||
private @MonotonicNonNull SingleFrameGlTextureProcessor matrixTransformationFrameProcessor;
|
||||
|
@ -61,7 +61,8 @@ public final class PresentationPixelTest {
|
||||
public static final String ASPECT_RATIO_STRETCH_TO_FIT_WIDE_PNG_ASSET_PATH =
|
||||
"media/bitmap/sample_mp4_first_frame/aspect_ratio_stretch_to_fit_wide.png";
|
||||
|
||||
private Context context = getApplicationContext();
|
||||
private final Context context = getApplicationContext();
|
||||
|
||||
private @MonotonicNonNull EGLDisplay eglDisplay;
|
||||
private @MonotonicNonNull EGLContext eglContext;
|
||||
private @MonotonicNonNull SingleFrameGlTextureProcessor presentationTextureProcessor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user