Index: third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp |
index 0f00d8264d0650382d46068db614a2eb39c87e84..dba62405b3627360917391f5f67feb63d89bdad8 100644 |
--- a/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/gpu/Extensions3DUtil.cpp |
@@ -5,6 +5,8 @@ |
#include "platform/graphics/gpu/Extensions3DUtil.h" |
#include "gpu/command_buffer/client/gles2_interface.h" |
+#include "third_party/khronos/GLES2/gl2ext.h" |
+#include "third_party/khronos/GLES3/gl3.h" |
#include "wtf/PtrUtil.h" |
#include "wtf/text/CString.h" |
#include "wtf/text/StringHash.h" |
@@ -86,8 +88,7 @@ bool Extensions3DUtil::canUseCopyTextureCHROMIUM(GLenum destTarget, GLenum destF |
{ |
// TODO(zmo): restriction of (RGB || RGBA)/UNSIGNED_BYTE/(Level 0) should be lifted when |
// GLES2Interface::CopyTextureCHROMIUM(...) are fully functional. |
- if (destTarget == GL_TEXTURE_2D && (destFormat == GL_RGB || destFormat == GL_RGBA) |
- && destType == GL_UNSIGNED_BYTE |
+ if (destTarget == GL_TEXTURE_2D && (((destFormat == GL_RGB || destFormat == GL_RGBA || destFormat == GL_RG8_EXT) && destType == GL_UNSIGNED_BYTE) || (destFormat == GL_R32F && destType == GL_FLOAT && supportsExtension("GL_EXT_color_buffer_float"))) |
&& !level) |
return true; |
return false; |