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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 5923 matching lines...) Expand 10 before | Expand all | Expand 10 after
5934 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: 5934 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
5935 return capabilities.texture_format_dxt5; 5935 return capabilities.texture_format_dxt5;
5936 case GL_ETC1_RGB8_OES: 5936 case GL_ETC1_RGB8_OES:
5937 return capabilities.texture_format_etc1; 5937 return capabilities.texture_format_etc1;
5938 case GL_RED: 5938 case GL_RED:
5939 case GL_RGB: 5939 case GL_RGB:
5940 case GL_RGBA: 5940 case GL_RGBA:
5941 case GL_RGB_YCBCR_422_CHROMIUM: 5941 case GL_RGB_YCBCR_422_CHROMIUM:
5942 case GL_RGB_YCBCR_420V_CHROMIUM: 5942 case GL_RGB_YCBCR_420V_CHROMIUM:
5943 case GL_BGRA_EXT: 5943 case GL_BGRA_EXT:
5944 case GL_BGR_EXT:
5944 return true; 5945 return true;
5945 default: 5946 default:
5946 return false; 5947 return false;
5947 } 5948 }
5948 } 5949 }
5949 5950
5950 bool ValidImageUsage(GLenum usage) { 5951 bool ValidImageUsage(GLenum usage) {
5951 return usage == GL_READ_WRITE_CHROMIUM; 5952 return usage == GL_READ_WRITE_CHROMIUM;
5952 } 5953 }
5953 5954
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
6823 cached_extensions_.clear(); 6824 cached_extensions_.clear();
6824 } 6825 }
6825 6826
6826 // Include the auto-generated part of this file. We split this because it means 6827 // Include the auto-generated part of this file. We split this because it means
6827 // we can easily edit the non-auto generated parts right here in this file 6828 // we can easily edit the non-auto generated parts right here in this file
6828 // instead of having to edit some template or the code generator. 6829 // instead of having to edit some template or the code generator.
6829 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6830 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6830 6831
6831 } // namespace gles2 6832 } // namespace gles2
6832 } // namespace gpu 6833 } // namespace gpu
OLDNEW
« no previous file with comments | « content/common/gpu/stream_texture_android.cc ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698