| 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 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::CopyTextureCHROMIUM( | 3113 void GLES2Implementation::CopyTextureCHROMIUM( |
| 3114 GLenum source_id, | 3114 GLenum source_id, |
| 3115 GLint source_level, | 3115 GLint source_level, |
| 3116 GLenum dest_target, |
| 3116 GLenum dest_id, | 3117 GLenum dest_id, |
| 3117 GLint dest_level, | 3118 GLint dest_level, |
| 3118 GLint internalformat, | 3119 GLint internalformat, |
| 3119 GLenum dest_type, | 3120 GLenum dest_type, |
| 3120 GLboolean unpack_flip_y, | 3121 GLboolean unpack_flip_y, |
| 3121 GLboolean unpack_premultiply_alpha, | 3122 GLboolean unpack_premultiply_alpha, |
| 3122 GLboolean unpack_unmultiply_alpha) { | 3123 GLboolean unpack_unmultiply_alpha) { |
| 3123 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3124 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3124 GPU_CLIENT_LOG( | 3125 GPU_CLIENT_LOG( |
| 3125 "[" << GetLogPrefix() << "] glCopyTextureCHROMIUM(" | 3126 "[" << GetLogPrefix() << "] glCopyTextureCHROMIUM(" |
| 3126 << GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", " | 3127 << GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", " |
| 3128 << GLES2Util::GetStringEnum(dest_target) << ", " |
| 3127 << GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", " | 3129 << GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", " |
| 3128 << internalformat << ", " << GLES2Util::GetStringPixelType(dest_type) | 3130 << internalformat << ", " << GLES2Util::GetStringPixelType(dest_type) |
| 3129 << ", " << GLES2Util::GetStringBool(unpack_flip_y) << ", " | 3131 << ", " << GLES2Util::GetStringBool(unpack_flip_y) << ", " |
| 3130 << GLES2Util::GetStringBool(unpack_premultiply_alpha) << ", " | 3132 << GLES2Util::GetStringBool(unpack_premultiply_alpha) << ", " |
| 3131 << GLES2Util::GetStringBool(unpack_unmultiply_alpha) << ")"); | 3133 << GLES2Util::GetStringBool(unpack_unmultiply_alpha) << ")"); |
| 3132 helper_->CopyTextureCHROMIUM( | 3134 helper_->CopyTextureCHROMIUM(source_id, source_level, dest_target, dest_id, |
| 3133 source_id, source_level, dest_id, dest_level, internalformat, dest_type, | 3135 dest_level, internalformat, dest_type, |
| 3134 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha); | 3136 unpack_flip_y, unpack_premultiply_alpha, |
| 3137 unpack_unmultiply_alpha); |
| 3135 CheckGLError(); | 3138 CheckGLError(); |
| 3136 } | 3139 } |
| 3137 | 3140 |
| 3138 void GLES2Implementation::CopySubTextureCHROMIUM( | 3141 void GLES2Implementation::CopySubTextureCHROMIUM( |
| 3139 GLenum source_id, | 3142 GLenum source_id, |
| 3140 GLint source_level, | 3143 GLint source_level, |
| 3144 GLenum dest_target, |
| 3141 GLenum dest_id, | 3145 GLenum dest_id, |
| 3142 GLint dest_level, | 3146 GLint dest_level, |
| 3143 GLint xoffset, | 3147 GLint xoffset, |
| 3144 GLint yoffset, | 3148 GLint yoffset, |
| 3145 GLint x, | 3149 GLint x, |
| 3146 GLint y, | 3150 GLint y, |
| 3147 GLsizei width, | 3151 GLsizei width, |
| 3148 GLsizei height, | 3152 GLsizei height, |
| 3149 GLboolean unpack_flip_y, | 3153 GLboolean unpack_flip_y, |
| 3150 GLboolean unpack_premultiply_alpha, | 3154 GLboolean unpack_premultiply_alpha, |
| 3151 GLboolean unpack_unmultiply_alpha) { | 3155 GLboolean unpack_unmultiply_alpha) { |
| 3152 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3156 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3153 GPU_CLIENT_LOG( | 3157 GPU_CLIENT_LOG( |
| 3154 "[" << GetLogPrefix() << "] glCopySubTextureCHROMIUM(" | 3158 "[" << GetLogPrefix() << "] glCopySubTextureCHROMIUM(" |
| 3155 << GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", " | 3159 << GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", " |
| 3160 << GLES2Util::GetStringEnum(dest_target) << ", " |
| 3156 << GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", " | 3161 << GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", " |
| 3157 << xoffset << ", " << yoffset << ", " << x << ", " << y << ", " | 3162 << xoffset << ", " << yoffset << ", " << x << ", " << y << ", " |
| 3158 << width << ", " << height << ", " | 3163 << width << ", " << height << ", " |
| 3159 << GLES2Util::GetStringBool(unpack_flip_y) << ", " | 3164 << GLES2Util::GetStringBool(unpack_flip_y) << ", " |
| 3160 << GLES2Util::GetStringBool(unpack_premultiply_alpha) << ", " | 3165 << GLES2Util::GetStringBool(unpack_premultiply_alpha) << ", " |
| 3161 << GLES2Util::GetStringBool(unpack_unmultiply_alpha) << ")"); | 3166 << GLES2Util::GetStringBool(unpack_unmultiply_alpha) << ")"); |
| 3162 if (width < 0) { | 3167 if (width < 0) { |
| 3163 SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "width < 0"); | 3168 SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "width < 0"); |
| 3164 return; | 3169 return; |
| 3165 } | 3170 } |
| 3166 if (height < 0) { | 3171 if (height < 0) { |
| 3167 SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "height < 0"); | 3172 SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "height < 0"); |
| 3168 return; | 3173 return; |
| 3169 } | 3174 } |
| 3170 helper_->CopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level, | 3175 helper_->CopySubTextureCHROMIUM( |
| 3171 xoffset, yoffset, x, y, width, height, | 3176 source_id, source_level, dest_target, dest_id, dest_level, xoffset, |
| 3172 unpack_flip_y, unpack_premultiply_alpha, | 3177 yoffset, x, y, width, height, unpack_flip_y, unpack_premultiply_alpha, |
| 3173 unpack_unmultiply_alpha); | 3178 unpack_unmultiply_alpha); |
| 3174 CheckGLError(); | 3179 CheckGLError(); |
| 3175 } | 3180 } |
| 3176 | 3181 |
| 3177 void GLES2Implementation::CompressedCopyTextureCHROMIUM(GLenum source_id, | 3182 void GLES2Implementation::CompressedCopyTextureCHROMIUM(GLenum source_id, |
| 3178 GLenum dest_id) { | 3183 GLenum dest_id) { |
| 3179 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 3184 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
| 3180 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCompressedCopyTextureCHROMIUM(" | 3185 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCompressedCopyTextureCHROMIUM(" |
| 3181 << GLES2Util::GetStringEnum(source_id) << ", " | 3186 << GLES2Util::GetStringEnum(source_id) << ", " |
| 3182 << GLES2Util::GetStringEnum(dest_id) << ")"); | 3187 << GLES2Util::GetStringEnum(dest_id) << ")"); |
| 3183 helper_->CompressedCopyTextureCHROMIUM(source_id, dest_id); | 3188 helper_->CompressedCopyTextureCHROMIUM(source_id, dest_id); |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3502 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glOverlayPromotionHintCHROMIUM(" | 3507 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glOverlayPromotionHintCHROMIUM(" |
| 3503 << texture << ", " | 3508 << texture << ", " |
| 3504 << GLES2Util::GetStringBool(promotion_hint) << ", " | 3509 << GLES2Util::GetStringBool(promotion_hint) << ", " |
| 3505 << display_x << ", " << display_y << ")"); | 3510 << display_x << ", " << display_y << ")"); |
| 3506 helper_->OverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, | 3511 helper_->OverlayPromotionHintCHROMIUM(texture, promotion_hint, display_x, |
| 3507 display_y); | 3512 display_y); |
| 3508 CheckGLError(); | 3513 CheckGLError(); |
| 3509 } | 3514 } |
| 3510 | 3515 |
| 3511 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 3516 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
| OLD | NEW |