Index: ui/gl/gl_image_ozone_native_pixmap_unittest.cc |
diff --git a/ui/gl/gl_image_ozone_native_pixmap_unittest.cc b/ui/gl/gl_image_ozone_native_pixmap_unittest.cc |
index d0877ae799f446db206601810e2a711c10deb866..d1360644ca9dbf58b56b9fcfffa9774c1d23f91a 100644 |
--- a/ui/gl/gl_image_ozone_native_pixmap_unittest.cc |
+++ b/ui/gl/gl_image_ozone_native_pixmap_unittest.cc |
@@ -44,8 +44,8 @@ class GLImageOzoneNativePixmapTestDelegate { |
client_pixmap->Unmap(); |
} |
- scoped_refptr<GLImageOzoneNativePixmap> image( |
- new GLImageOzoneNativePixmap(size, GL_RGBA)); |
+ scoped_refptr<GLImageOzoneNativePixmap> image(new GLImageOzoneNativePixmap( |
+ size, GLImageOzoneNativePixmap::GetInternalFormatForTesting(format))); |
EXPECT_TRUE(image->Initialize(pixmap.get(), pixmap->GetBufferFormat())); |
return image; |
} |