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

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

Issue 10534077: Revert 141302 - hook up new MacVideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 case GL_BOOL_VEC4: 490 case GL_BOOL_VEC4:
491 return sizeof(GLint) * 4; // NOLINT 491 return sizeof(GLint) * 4; // NOLINT
492 case GL_FLOAT_MAT2: 492 case GL_FLOAT_MAT2:
493 return sizeof(GLfloat) * 2 * 2; // NOLINT 493 return sizeof(GLfloat) * 2 * 2; // NOLINT
494 case GL_FLOAT_MAT3: 494 case GL_FLOAT_MAT3:
495 return sizeof(GLfloat) * 3 * 3; // NOLINT 495 return sizeof(GLfloat) * 3 * 3; // NOLINT
496 case GL_FLOAT_MAT4: 496 case GL_FLOAT_MAT4:
497 return sizeof(GLfloat) * 4 * 4; // NOLINT 497 return sizeof(GLfloat) * 4 * 4; // NOLINT
498 case GL_SAMPLER_2D: 498 case GL_SAMPLER_2D:
499 return sizeof(GLint); // NOLINT 499 return sizeof(GLint); // NOLINT
500 case GL_SAMPLER_2D_RECT_ARB:
501 return sizeof(GLint); // NOLINT
502 case GL_SAMPLER_CUBE: 500 case GL_SAMPLER_CUBE:
503 return sizeof(GLint); // NOLINT 501 return sizeof(GLint); // NOLINT
504 case GL_SAMPLER_EXTERNAL_OES: 502 case GL_SAMPLER_EXTERNAL_OES:
505 return sizeof(GLint); // NOLINT 503 return sizeof(GLint); // NOLINT
506 default: 504 default:
507 return 0; 505 return 0;
508 } 506 }
509 } 507 }
510 508
511 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) { 509 size_t GLES2Util::GetGLTypeSizeForTexturesAndBuffers(uint32 type) {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 } 754 }
757 755
758 return true; 756 return true;
759 } 757 }
760 758
761 #include "../common/gles2_cmd_utils_implementation_autogen.h" 759 #include "../common/gles2_cmd_utils_implementation_autogen.h"
762 760
763 } // namespace gles2 761 } // namespace gles2
764 } // namespace gpu 762 } // namespace gpu
765 763
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698