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

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

Issue 2920793005: gpu: support R16 GPUMemoryBuffer (Closed)
Patch Set: mac fix Created 3 years, 6 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 6212 matching lines...) Expand 10 before | Expand all | Expand 10 after
6223 case GL_ATC_RGB_AMD: 6223 case GL_ATC_RGB_AMD:
6224 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: 6224 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
6225 return capabilities.texture_format_atc; 6225 return capabilities.texture_format_atc;
6226 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: 6226 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
6227 return capabilities.texture_format_dxt1; 6227 return capabilities.texture_format_dxt1;
6228 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: 6228 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
6229 return capabilities.texture_format_dxt5; 6229 return capabilities.texture_format_dxt5;
6230 case GL_ETC1_RGB8_OES: 6230 case GL_ETC1_RGB8_OES:
6231 return capabilities.texture_format_etc1; 6231 return capabilities.texture_format_etc1;
6232 case GL_RED: 6232 case GL_RED:
6233 case GL_R16_EXT:
aleksandar.stojiljkovic 2017/06/08 10:25:03 As it is not available always, maybe: return cap
riju_ 2017/06/09 08:20:10 Done.
6233 case GL_RG_EXT: 6234 case GL_RG_EXT:
6234 case GL_RGB: 6235 case GL_RGB:
6235 case GL_RGBA: 6236 case GL_RGBA:
6236 case GL_RGB_YCBCR_422_CHROMIUM: 6237 case GL_RGB_YCBCR_422_CHROMIUM:
6237 case GL_RGB_YCBCR_420V_CHROMIUM: 6238 case GL_RGB_YCBCR_420V_CHROMIUM:
6238 case GL_RGB_YCRCB_420_CHROMIUM: 6239 case GL_RGB_YCRCB_420_CHROMIUM:
6239 case GL_BGRA_EXT: 6240 case GL_BGRA_EXT:
6240 return true; 6241 return true;
6241 default: 6242 default:
6242 return false; 6243 return false;
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
7109 CheckGLError(); 7110 CheckGLError();
7110 } 7111 }
7111 7112
7112 // Include the auto-generated part of this file. We split this because it means 7113 // Include the auto-generated part of this file. We split this because it means
7113 // we can easily edit the non-auto generated parts right here in this file 7114 // we can easily edit the non-auto generated parts right here in this file
7114 // instead of having to edit some template or the code generator. 7115 // instead of having to edit some template or the code generator.
7115 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 7116 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
7116 7117
7117 } // namespace gles2 7118 } // namespace gles2
7118 } // namespace gpu 7119 } // namespace gpu
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | gpu/command_buffer/common/gpu_memory_buffer_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698