Index: gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
diff --git a/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc b/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
index 7691e33251c5c47c9e12f8d299aea6c43021fe04..4804d5d122b7a72cbc8ad3998f58645db938c0a1 100644 |
--- a/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
+++ b/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
@@ -122,6 +122,7 @@ void SetRow(gfx::BufferFormat format, |
case gfx::BufferFormat::DXT1: |
case gfx::BufferFormat::DXT5: |
case gfx::BufferFormat::ETC1: |
+ case gfx::BufferFormat::RG_88: |
case gfx::BufferFormat::RGBX_8888: |
case gfx::BufferFormat::UYVY_422: |
case gfx::BufferFormat::YVU_420: |
@@ -137,6 +138,8 @@ GLenum InternalFormat(gfx::BufferFormat format) { |
switch (format) { |
case gfx::BufferFormat::R_8: |
return GL_RED; |
+ case gfx::BufferFormat::RG_88: |
+ return GL_RG; |
case gfx::BufferFormat::BGR_565: |
return GL_RGB; |
case gfx::BufferFormat::RGBA_4444: |