| 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 2764 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2775   GPU_CLIENT_SINGLE_THREAD_CHECK(); | 2775   GPU_CLIENT_SINGLE_THREAD_CHECK(); | 
| 2776   GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glVertexAttribI4uiv(" << indx | 2776   GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glVertexAttribI4uiv(" << indx | 
| 2777                      << ", " << static_cast<const void*>(values) << ")"); | 2777                      << ", " << static_cast<const void*>(values) << ")"); | 
| 2778   size_t count = 4; | 2778   size_t count = 4; | 
| 2779   for (size_t ii = 0; ii < count; ++ii) | 2779   for (size_t ii = 0; ii < count; ++ii) | 
| 2780     GPU_CLIENT_LOG("value[" << ii << "]: " << values[ii]); | 2780     GPU_CLIENT_LOG("value[" << ii << "]: " << values[ii]); | 
| 2781   helper_->VertexAttribI4uivImmediate(indx, values); | 2781   helper_->VertexAttribI4uivImmediate(indx, values); | 
| 2782   CheckGLError(); | 2782   CheckGLError(); | 
| 2783 } | 2783 } | 
| 2784 | 2784 | 
| 2785 void GLES2Implementation::Viewport(GLint x, |  | 
| 2786                                    GLint y, |  | 
| 2787                                    GLsizei width, |  | 
| 2788                                    GLsizei height) { |  | 
| 2789   GPU_CLIENT_SINGLE_THREAD_CHECK(); |  | 
| 2790   GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glViewport(" << x << ", " << y |  | 
| 2791                      << ", " << width << ", " << height << ")"); |  | 
| 2792   if (width < 0) { |  | 
| 2793     SetGLError(GL_INVALID_VALUE, "glViewport", "width < 0"); |  | 
| 2794     return; |  | 
| 2795   } |  | 
| 2796   if (height < 0) { |  | 
| 2797     SetGLError(GL_INVALID_VALUE, "glViewport", "height < 0"); |  | 
| 2798     return; |  | 
| 2799   } |  | 
| 2800   helper_->Viewport(x, y, width, height); |  | 
| 2801   CheckGLError(); |  | 
| 2802 } |  | 
| 2803 |  | 
| 2804 void GLES2Implementation::BlitFramebufferCHROMIUM(GLint srcX0, | 2785 void GLES2Implementation::BlitFramebufferCHROMIUM(GLint srcX0, | 
| 2805                                                   GLint srcY0, | 2786                                                   GLint srcY0, | 
| 2806                                                   GLint srcX1, | 2787                                                   GLint srcX1, | 
| 2807                                                   GLint srcY1, | 2788                                                   GLint srcY1, | 
| 2808                                                   GLint dstX0, | 2789                                                   GLint dstX0, | 
| 2809                                                   GLint dstY0, | 2790                                                   GLint dstY0, | 
| 2810                                                   GLint dstX1, | 2791                                                   GLint dstX1, | 
| 2811                                                   GLint dstY1, | 2792                                                   GLint dstY1, | 
| 2812                                                   GLbitfield mask, | 2793                                                   GLbitfield mask, | 
| 2813                                                   GLenum filter) { | 2794                                                   GLenum filter) { | 
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3501                      << ", " << static_cast<const void*>(transform) << ")"); | 3482                      << ", " << static_cast<const void*>(transform) << ")"); | 
| 3502   size_t count = 16; | 3483   size_t count = 16; | 
| 3503   for (size_t ii = 0; ii < count; ++ii) | 3484   for (size_t ii = 0; ii < count; ++ii) | 
| 3504     GPU_CLIENT_LOG("value[" << ii << "]: " << transform[ii]); | 3485     GPU_CLIENT_LOG("value[" << ii << "]: " << transform[ii]); | 
| 3505   helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate( | 3486   helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate( | 
| 3506       location, transpose, transform); | 3487       location, transpose, transform); | 
| 3507   CheckGLError(); | 3488   CheckGLError(); | 
| 3508 } | 3489 } | 
| 3509 | 3490 | 
| 3510 #endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 3491 #endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 
| OLD | NEW | 
|---|