OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // This file is included by gles2_implementation.h to declare the | 9 // This file is included by gles2_implementation.h to declare the |
10 // GL api functions. | 10 // GL api functions. |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 } | 664 } |
665 memcpy(source, str.c_str(), max_size); | 665 memcpy(source, str.c_str(), max_size); |
666 source[max_size] = '\0'; | 666 source[max_size] = '\0'; |
667 GPU_CLIENT_LOG("------\n" << source << "\n------"); | 667 GPU_CLIENT_LOG("------\n" << source << "\n------"); |
668 } | 668 } |
669 } | 669 } |
670 } | 670 } |
671 const GLubyte* GetString(GLenum name); | 671 const GLubyte* GetString(GLenum name); |
672 | 672 |
673 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { | 673 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) { |
674 GPU_CLIENT_LOG("[" << this << "] glGetTexParameterfv(" << GLES2Util::GetString
TextureTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) <<
", " << static_cast<const void*>(params) << ")"); // NOLINT | 674 GPU_CLIENT_LOG("[" << this << "] glGetTexParameterfv(" << GLES2Util::GetString
GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname)
<< ", " << static_cast<const void*>(params) << ")"); // NOLINT |
675 if (GetTexParameterfvHelper(target, pname, params)) { | 675 if (GetTexParameterfvHelper(target, pname, params)) { |
676 return; | 676 return; |
677 } | 677 } |
678 typedef GetTexParameterfv::Result Result; | 678 typedef GetTexParameterfv::Result Result; |
679 Result* result = GetResultAs<Result*>(); | 679 Result* result = GetResultAs<Result*>(); |
680 result->SetNumResults(0); | 680 result->SetNumResults(0); |
681 helper_->GetTexParameterfv(target, pname, | 681 helper_->GetTexParameterfv(target, pname, |
682 result_shm_id(), result_shm_offset()); | 682 result_shm_id(), result_shm_offset()); |
683 WaitForCmd(); | 683 WaitForCmd(); |
684 result->CopyResult(params); | 684 result->CopyResult(params); |
685 GPU_CLIENT_LOG_CODE_BLOCK({ | 685 GPU_CLIENT_LOG_CODE_BLOCK({ |
686 for (int32 i = 0; i < result->GetNumResults(); ++i) { | 686 for (int32 i = 0; i < result->GetNumResults(); ++i) { |
687 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); | 687 GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]); |
688 } | 688 } |
689 }); | 689 }); |
690 } | 690 } |
691 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) { | 691 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) { |
692 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); | 692 GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params); |
693 GPU_CLIENT_LOG("[" << this << "] glGetTexParameteriv(" << GLES2Util::GetString
TextureTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname) <<
", " << static_cast<const void*>(params) << ")"); // NOLINT | 693 GPU_CLIENT_LOG("[" << this << "] glGetTexParameteriv(" << GLES2Util::GetString
GetTexParamTarget(target) << ", " << GLES2Util::GetStringTextureParameter(pname)
<< ", " << static_cast<const void*>(params) << ")"); // NOLINT |
694 if (GetTexParameterivHelper(target, pname, params)) { | 694 if (GetTexParameterivHelper(target, pname, params)) { |
695 return; | 695 return; |
696 } | 696 } |
697 typedef GetTexParameteriv::Result Result; | 697 typedef GetTexParameteriv::Result Result; |
698 Result* result = GetResultAs<Result*>(); | 698 Result* result = GetResultAs<Result*>(); |
699 result->SetNumResults(0); | 699 result->SetNumResults(0); |
700 helper_->GetTexParameteriv(target, pname, | 700 helper_->GetTexParameteriv(target, pname, |
701 result_shm_id(), result_shm_offset()); | 701 result_shm_id(), result_shm_offset()); |
702 WaitForCmd(); | 702 WaitForCmd(); |
703 result->CopyResult(params); | 703 result->CopyResult(params); |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 } | 1280 } |
1281 | 1281 |
1282 void GetMultipleIntegervCHROMIUM( | 1282 void GetMultipleIntegervCHROMIUM( |
1283 const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); | 1283 const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); |
1284 | 1284 |
1285 void GetProgramInfoCHROMIUM( | 1285 void GetProgramInfoCHROMIUM( |
1286 GLuint program, GLsizei bufsize, GLsizei* size, void* info); | 1286 GLuint program, GLsizei bufsize, GLsizei* size, void* info); |
1287 | 1287 |
1288 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ | 1288 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_ |
1289 | 1289 |
OLD | NEW |