OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 3092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3103 memcpy(source, str.c_str(), max_size); | 3103 memcpy(source, str.c_str(), max_size); |
3104 source[max_size] = '\0'; | 3104 source[max_size] = '\0'; |
3105 GPU_CLIENT_LOG("------\n" << source << "\n------"); | 3105 GPU_CLIENT_LOG("------\n" << source << "\n------"); |
3106 } | 3106 } |
3107 } | 3107 } |
3108 if (length != NULL) { | 3108 if (length != NULL) { |
3109 *length = max_size; | 3109 *length = max_size; |
3110 } | 3110 } |
3111 CheckGLError(); | 3111 CheckGLError(); |
3112 } | 3112 } |
3113 void GLES2Implementation::TexImageIOSurface2DCHROMIUM(GLenum target, | |
3114 GLsizei width, | |
3115 GLsizei height, | |
3116 GLuint ioSurfaceId, | |
3117 GLuint plane) { | |
3118 GPU_CLIENT_SINGLE_THREAD_CHECK(); | |
3119 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glTexImageIOSurface2DCHROMIUM(" | |
3120 << GLES2Util::GetStringTextureBindTarget(target) << ", " | |
3121 << width << ", " << height << ", " << ioSurfaceId << ", " | |
3122 << plane << ")"); | |
3123 if (width < 0) { | |
3124 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM", "width < 0"); | |
3125 return; | |
3126 } | |
3127 if (height < 0) { | |
3128 SetGLError(GL_INVALID_VALUE, "glTexImageIOSurface2DCHROMIUM", "height < 0"); | |
3129 return; | |
3130 } | |
3131 helper_->TexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, | |
3132 plane); | |
3133 CheckGLError(); | |
3134 } | |
3135 | |
3136 void GLES2Implementation::CopyTextureCHROMIUM( | 3113 void GLES2Implementation::CopyTextureCHROMIUM( |
3137 GLenum source_id, | 3114 GLenum source_id, |
3138 GLenum dest_id, | 3115 GLenum dest_id, |
3139 GLint internalformat, | 3116 GLint internalformat, |
3140 GLenum dest_type, | 3117 GLenum dest_type, |
3141 GLboolean unpack_flip_y, | 3118 GLboolean unpack_flip_y, |
3142 GLboolean unpack_premultiply_alpha, | 3119 GLboolean unpack_premultiply_alpha, |
3143 GLboolean unpack_unmultiply_alpha) { | 3120 GLboolean unpack_unmultiply_alpha) { |
3144 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3121 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
3145 GPU_CLIENT_LOG( | 3122 GPU_CLIENT_LOG( |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3483 << ", " << static_cast<const void*>(default_value) << ")"); | 3460 << ", " << static_cast<const void*>(default_value) << ")"); |
3484 size_t count = 16; | 3461 size_t count = 16; |
3485 for (size_t ii = 0; ii < count; ++ii) | 3462 for (size_t ii = 0; ii < count; ++ii) |
3486 GPU_CLIENT_LOG("value[" << ii << "]: " << default_value[ii]); | 3463 GPU_CLIENT_LOG("value[" << ii << "]: " << default_value[ii]); |
3487 helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate( | 3464 helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate( |
3488 location, transpose, default_value); | 3465 location, transpose, default_value); |
3489 CheckGLError(); | 3466 CheckGLError(); |
3490 } | 3467 } |
3491 | 3468 |
3492 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 3469 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |