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 3429111ba1587f3fecedd591772d71a74c84f489..0eeb08e3994bc62a4eb039e03092b49172cb09d2 100644 |
--- a/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
+++ b/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc |
@@ -139,6 +139,7 @@ void SetRow(gfx::BufferFormat format, |
case gfx::BufferFormat::DXT1: |
case gfx::BufferFormat::DXT5: |
case gfx::BufferFormat::ETC1: |
+ case gfx::BufferFormat::R_16: |
case gfx::BufferFormat::RG_88: |
case gfx::BufferFormat::RGBX_8888: |
case gfx::BufferFormat::UYVY_422: |
@@ -155,6 +156,8 @@ GLenum InternalFormat(gfx::BufferFormat format) { |
switch (format) { |
case gfx::BufferFormat::R_8: |
return GL_RED; |
+ case gfx::BufferFormat::R_16: |
+ return GL_R16_EXT; |
case gfx::BufferFormat::RG_88: |
return GL_RG; |
case gfx::BufferFormat::BGR_565: |