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

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

Issue 1319453010: Fix GetFramebufferAttachmentParameteriv command handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gpu_unittests and gl_tests Created 5 years, 3 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 255 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:
256 return 1; 256 return 1;
257 // -- glGetFramebufferAttachmentParameteriv with 257 // -- glGetFramebufferAttachmentParameteriv with
258 // GL_EXT_multisampled_render_to_texture 258 // GL_EXT_multisampled_render_to_texture
259 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT: 259 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT:
260 return 1; 260 return 1;
261 // -- glGetFramebufferAttachmentParameteriv with 261 // -- glGetFramebufferAttachmentParameteriv with
262 // GL_EXT_sRGB 262 // GL_EXT_sRGB
263 case GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 263 case GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:
264 return 1; 264 return 1;
265 // ES3
266 case GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE:
267 return 1;
268 case GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:
269 return 1;
270 case GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:
271 return 1;
272 case GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:
273 return 1;
274 case GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:
275 return 1;
276 case GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:
277 return 1;
278 case GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:
279 return 1;
280 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:
281 return 1;
265 282
266 // -- glGetProgramiv 283 // -- glGetProgramiv
267 case GL_DELETE_STATUS: 284 case GL_DELETE_STATUS:
268 return 1; 285 return 1;
269 case GL_LINK_STATUS: 286 case GL_LINK_STATUS:
270 return 1; 287 return 1;
271 case GL_VALIDATE_STATUS: 288 case GL_VALIDATE_STATUS:
272 return 1; 289 return 1;
273 case GL_INFO_LOG_LENGTH: 290 case GL_INFO_LOG_LENGTH:
274 return 1; 291 return 1;
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 } 1365 }
1349 1366
1350 return true; 1367 return true;
1351 } 1368 }
1352 1369
1353 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" 1370 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h"
1354 1371
1355 } // namespace gles2 1372 } // namespace gles2
1356 } // namespace gpu 1373 } // namespace gpu
1357 1374
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698