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

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

Issue 18492005: Add GL_EXT_multisampled_render_to_texture support to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved ahead to TOT 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 // -- glGetFramebufferAttachmentParameteriv with
232 // GL_EXT_multisampled_render_to_texture
233 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:
234 return 1;
231 235
232 // -- glGetFramebufferAttachmentParameteriv 236 // -- glGetProgramiv
233 case GL_DELETE_STATUS: 237 case GL_DELETE_STATUS:
234 return 1; 238 return 1;
235 case GL_LINK_STATUS: 239 case GL_LINK_STATUS:
236 return 1; 240 return 1;
237 case GL_VALIDATE_STATUS: 241 case GL_VALIDATE_STATUS:
238 return 1; 242 return 1;
239 case GL_INFO_LOG_LENGTH: 243 case GL_INFO_LOG_LENGTH:
240 return 1; 244 return 1;
241 case GL_ATTACHED_SHADERS: 245 case GL_ATTACHED_SHADERS:
242 return 1; 246 return 1;
(...skipping 19 matching lines...) Expand all
262 case GL_RENDERBUFFER_GREEN_SIZE: 266 case GL_RENDERBUFFER_GREEN_SIZE:
263 return 1; 267 return 1;
264 case GL_RENDERBUFFER_BLUE_SIZE: 268 case GL_RENDERBUFFER_BLUE_SIZE:
265 return 1; 269 return 1;
266 case GL_RENDERBUFFER_ALPHA_SIZE: 270 case GL_RENDERBUFFER_ALPHA_SIZE:
267 return 1; 271 return 1;
268 case GL_RENDERBUFFER_DEPTH_SIZE: 272 case GL_RENDERBUFFER_DEPTH_SIZE:
269 return 1; 273 return 1;
270 case GL_RENDERBUFFER_STENCIL_SIZE: 274 case GL_RENDERBUFFER_STENCIL_SIZE:
271 return 1; 275 return 1;
276 // -- glGetRenderbufferAttachmentParameteriv with
277 // GL_EXT_multisampled_render_to_texture
278 case GL_RENDERBUFFER_SAMPLES_EXT:
279 return 1;
272 280
273 // -- glGetShaderiv 281 // -- glGetShaderiv
274 case GL_SHADER_TYPE: 282 case GL_SHADER_TYPE:
275 return 1; 283 return 1;
276 // Already defined under glGetFramebufferAttachemntParameteriv. 284 // Already defined under glGetFramebufferAttachemntParameteriv.
277 // case GL_DELETE_STATUS: 285 // case GL_DELETE_STATUS:
278 // return 1; 286 // return 1;
279 case GL_COMPILE_STATUS: 287 case GL_COMPILE_STATUS:
280 return 1; 288 return 1;
281 // Already defined under glGetFramebufferAttachemntParameteriv. 289 // Already defined under glGetFramebufferAttachemntParameteriv.
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 } 804 }
797 805
798 return true; 806 return true;
799 } 807 }
800 808
801 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 809 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
802 810
803 } // namespace gles2 811 } // namespace gles2
804 } // namespace gpu 812 } // namespace gpu
805 813
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698