| Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| index ffb9370bca76f071a1a3619a96e9a858007bafda..51226137895e2c0c2619722371f87727158521f2 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
|
| @@ -260,8 +260,9 @@ CopyTextureCHROMIUMResourceManager::CopyTextureCHROMIUMResourceManager()
|
| framebuffer_(0u) {}
|
|
|
| CopyTextureCHROMIUMResourceManager::~CopyTextureCHROMIUMResourceManager() {
|
| - DCHECK(!buffer_id_);
|
| - DCHECK(!framebuffer_);
|
| + // |buffer_id_| and |framebuffer_| can be not-null because when GPU context is
|
| + // lost, this class can be deleted without releasing resources like
|
| + // GLES2DecoderImpl.
|
| }
|
|
|
| void CopyTextureCHROMIUMResourceManager::Initialize(
|
| @@ -330,7 +331,8 @@ void CopyTextureCHROMIUMResourceManager::DoCopyTexture(
|
| // format of internalformat.
|
| // https://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml
|
| bool source_format_contain_superset_of_dest_format =
|
| - source_internal_format == dest_internal_format ||
|
| + (source_internal_format == dest_internal_format &&
|
| + source_internal_format != GL_BGRA_EXT) ||
|
| (source_internal_format == GL_RGBA && dest_internal_format == GL_RGB);
|
| // GL_TEXTURE_RECTANGLE_ARB on FBO is supported by OpenGL, not GLES2,
|
| // so restrict this to GL_TEXTURE_2D.
|
|
|