Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(869)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2738163002: Enable CopyTextureCHROMIUM in Blink for Tex{Sub}Image2D with more cases (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index a3da846049bfe5db49feaba7ced2aecc5124e88d..7101f3c3d2f350f54b75502f75f50db998427cdd 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -637,11 +637,13 @@ bool WebGL2RenderingContextBase::canUseTexImageByGPU(
GLint internalformat,
GLenum type) {
switch (internalformat) {
- case GL_RGB565:
- case GL_RGBA4:
+#if OS(MACOSX)
+ // RGB5_A1 is not color-renderable on NVIDIA Mac, see crbug.com/676209.
case GL_RGB5_A1:
Zhenyao Mo 2017/03/10 00:10:23 I am wondering if we can push this to the command
qiankun 2017/03/10 02:48:04 We can add a readback path for such formats, for e
- // FIXME: ES3 limitation that CopyTexImage with sized internalformat,
- // component sizes have to match the source color format.
+#endif
+ // TODO(qiankun.miao@intel.com): in ES3, component sizes have to match the
+ // source color format for CopyTexImage with sized internalformat.
+ case GL_RGB9_E5:
Zhenyao Mo 2017/03/10 00:10:23 I am not sure about this. Again, I thought such co
qiankun 2017/03/10 02:48:04 RGB9_5 can also run the readback path. I think col
return false;
default:
break;

Powered by Google App Engine
This is Rietveld 408576698