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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 18246005: Add EXT_color_buffer_half_float extension support in GPU commandbuffer service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 <stdio.h> 8 #include <stdio.h>
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // -- glGetFramebufferAttachmentParameteriv 222 // -- glGetFramebufferAttachmentParameteriv
223 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 223 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:
224 return 1; 224 return 1;
225 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 225 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:
226 return 1; 226 return 1;
227 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 227 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:
228 return 1; 228 return 1;
229 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 229 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:
230 return 1; 230 return 1;
231 case GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:
232 return 1;
231 233
232 // -- glGetFramebufferAttachmentParameteriv 234 // -- glGetFramebufferAttachmentParameteriv
233 case GL_DELETE_STATUS: 235 case GL_DELETE_STATUS:
234 return 1; 236 return 1;
235 case GL_LINK_STATUS: 237 case GL_LINK_STATUS:
236 return 1; 238 return 1;
237 case GL_VALIDATE_STATUS: 239 case GL_VALIDATE_STATUS:
238 return 1; 240 return 1;
239 case GL_INFO_LOG_LENGTH: 241 case GL_INFO_LOG_LENGTH:
240 return 1; 242 return 1;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 case GL_RGB5_A1: 456 case GL_RGB5_A1:
455 case GL_DEPTH_COMPONENT16: 457 case GL_DEPTH_COMPONENT16:
456 return 2; 458 return 2;
457 case GL_RGB: 459 case GL_RGB:
458 case GL_RGBA: 460 case GL_RGBA:
459 case GL_DEPTH24_STENCIL8_OES: 461 case GL_DEPTH24_STENCIL8_OES:
460 case GL_RGB8_OES: 462 case GL_RGB8_OES:
461 case GL_RGBA8_OES: 463 case GL_RGBA8_OES:
462 case GL_DEPTH_COMPONENT24_OES: 464 case GL_DEPTH_COMPONENT24_OES:
463 return 4; 465 return 4;
466 case GL_RGB16F_EXT:
467 return 6;
468 case GL_RGBA16F_EXT:
469 return 8;
464 default: 470 default:
465 return 0; 471 return 0;
466 } 472 }
467 } 473 }
468 474
469 uint32 GLES2Util::GetGLDataTypeSizeForUniforms(int type) { 475 uint32 GLES2Util::GetGLDataTypeSizeForUniforms(int type) {
470 switch (type) { 476 switch (type) {
471 case GL_FLOAT: 477 case GL_FLOAT:
472 return sizeof(GLfloat); // NOLINT 478 return sizeof(GLfloat); // NOLINT
473 case GL_FLOAT_VEC2: 479 case GL_FLOAT_VEC2:
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 } 802 }
797 803
798 return true; 804 return true;
799 } 805 }
800 806
801 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 807 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
802 808
803 } // namespace gles2 809 } // namespace gles2
804 } // namespace gpu 810 } // namespace gpu
805 811
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | gpu/command_buffer/service/feature_info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698