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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 638143003: Enabled EXT_sRGB WebGL extension support in the command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added suggested comment Created 6 years, 2 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 10071 matching lines...) Expand 10 before | Expand all | Expand 10 after
10082 case GL_RGB16F_EXT: 10082 case GL_RGB16F_EXT:
10083 return GL_RGB; 10083 return GL_RGB;
10084 case GL_ALPHA16F_EXT: 10084 case GL_ALPHA16F_EXT:
10085 return GL_ALPHA; 10085 return GL_ALPHA;
10086 case GL_LUMINANCE16F_EXT: 10086 case GL_LUMINANCE16F_EXT:
10087 return GL_LUMINANCE; 10087 return GL_LUMINANCE;
10088 case GL_LUMINANCE_ALPHA16F_EXT: 10088 case GL_LUMINANCE_ALPHA16F_EXT:
10089 return GL_LUMINANCE_ALPHA; 10089 return GL_LUMINANCE_ALPHA;
10090 case GL_BGRA8_EXT: 10090 case GL_BGRA8_EXT:
10091 return GL_BGRA_EXT; 10091 return GL_BGRA_EXT;
10092 case GL_SRGB8_ALPHA8_EXT:
10093 return GL_SRGB_ALPHA_EXT;
10092 default: 10094 default:
10093 return GL_NONE; 10095 return GL_NONE;
10094 } 10096 }
10095 } 10097 }
10096 10098
10097 void GLES2DecoderImpl::DoCopyTextureCHROMIUM( 10099 void GLES2DecoderImpl::DoCopyTextureCHROMIUM(
10098 GLenum target, GLuint source_id, GLuint dest_id, GLint level, 10100 GLenum target, GLuint source_id, GLuint dest_id, GLint level,
10099 GLenum internal_format, GLenum dest_type) { 10101 GLenum internal_format, GLenum dest_type) {
10100 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCopyTextureCHROMIUM"); 10102 TRACE_EVENT0("gpu", "GLES2DecoderImpl::DoCopyTextureCHROMIUM");
10101 10103
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
11149 } 11151 }
11150 } 11152 }
11151 11153
11152 // Include the auto-generated part of this file. We split this because it means 11154 // Include the auto-generated part of this file. We split this because it means
11153 // we can easily edit the non-auto generated parts right here in this file 11155 // we can easily edit the non-auto generated parts right here in this file
11154 // instead of having to edit some template or the code generator. 11156 // instead of having to edit some template or the code generator.
11155 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11157 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11156 11158
11157 } // namespace gles2 11159 } // namespace gles2
11158 } // namespace gpu 11160 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | gpu/command_buffer/service/texture_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698