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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #include <sstream> 8 #include <sstream>
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 uint32_t GLES2Util::GetChannelsForFormat(int format) { 1095 uint32_t GLES2Util::GetChannelsForFormat(int format) {
1096 switch (format) { 1096 switch (format) {
1097 case GL_ALPHA: 1097 case GL_ALPHA:
1098 case GL_ALPHA16F_EXT: 1098 case GL_ALPHA16F_EXT:
1099 case GL_ALPHA32F_EXT: 1099 case GL_ALPHA32F_EXT:
1100 return kAlpha; 1100 return kAlpha;
1101 case GL_LUMINANCE: 1101 case GL_LUMINANCE:
1102 return kRGB; 1102 return kRGB;
1103 case GL_LUMINANCE_ALPHA: 1103 case GL_LUMINANCE_ALPHA:
1104 return kRGBA; 1104 return kRGBA;
1105 case GL_BGR_EXT:
1105 case GL_RGB: 1106 case GL_RGB:
1106 case GL_RGB8_OES: 1107 case GL_RGB8_OES:
1107 case GL_RGB565: 1108 case GL_RGB565:
1108 case GL_RGB16F_EXT: 1109 case GL_RGB16F_EXT:
1109 case GL_RGB32F_EXT: 1110 case GL_RGB32F_EXT:
1110 case GL_SRGB_EXT: 1111 case GL_SRGB_EXT:
1111 case GL_SRGB8: 1112 case GL_SRGB8:
1112 case GL_RGB8_SNORM: 1113 case GL_RGB8_SNORM:
1113 case GL_R11F_G11F_B10F: 1114 case GL_R11F_G11F_B10F:
1114 case GL_RGB9_E5: 1115 case GL_RGB9_E5:
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 } 1543 }
1543 1544
1544 return true; 1545 return true;
1545 } 1546 }
1546 1547
1547 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1548 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1548 1549
1549 } // namespace gles2 1550 } // namespace gles2
1550 } // namespace gpu 1551 } // namespace gpu
1551 1552
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/service/framebuffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698