| Index: ui/gl/gl_image_io_surface.mm
|
| diff --git a/ui/gl/gl_image_io_surface.mm b/ui/gl/gl_image_io_surface.mm
|
| index 536ce6c92b30d1331d012bebb380783a4940c0a6..3059333cc8896feb96c15f2b4147e3e927a3f417 100644
|
| --- a/ui/gl/gl_image_io_surface.mm
|
| +++ b/ui/gl/gl_image_io_surface.mm
|
| @@ -16,7 +16,6 @@
|
| #include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_context.h"
|
| #include "ui/gl/gl_helper.h"
|
| -#include "ui/gl/gl_version_info.h"
|
| #include "ui/gl/scoped_binders.h"
|
|
|
| // Note that this must be included after gl_bindings.h to avoid conflicts.
|
| @@ -69,7 +68,7 @@
|
|
|
| bool ValidInternalFormat(unsigned internalformat) {
|
| switch (internalformat) {
|
| - case GL_R8:
|
| + case GL_RED:
|
| case GL_BGRA_EXT:
|
| case GL_RGB:
|
| case GL_RGB_YCBCR_420V_CHROMIUM:
|
| @@ -108,9 +107,7 @@
|
| GLenum TextureFormat(BufferFormat format) {
|
| switch (format) {
|
| case BufferFormat::R_8:
|
| - return gfx::GLContext::GetCurrent()->GetVersionInfo()->IsES3Capable()
|
| - ? GL_R8
|
| - : GL_RED;
|
| + return GL_RED;
|
| case BufferFormat::BGRA_8888:
|
| case BufferFormat::RGBA_8888:
|
| return GL_RGBA;
|
|
|