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