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 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1835 } | 1835 } |
1836 | 1836 |
1837 void GLES2Implementation::GenQueriesEXT(GLsizei n, GLuint* queries) { | 1837 void GLES2Implementation::GenQueriesEXT(GLsizei n, GLuint* queries) { |
1838 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGenQueriesEXT(" << n << ", " | 1838 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGenQueriesEXT(" << n << ", " |
1839 << static_cast<const void*>(queries) << ")"); | 1839 << static_cast<const void*>(queries) << ")"); |
1840 if (n < 0) { | 1840 if (n < 0) { |
1841 SetGLError(GL_INVALID_VALUE, "glGenQueriesEXT", "n < 0"); | 1841 SetGLError(GL_INVALID_VALUE, "glGenQueriesEXT", "n < 0"); |
1842 return; | 1842 return; |
1843 } | 1843 } |
1844 GPU_CLIENT_SINGLE_THREAD_CHECK(); | 1844 GPU_CLIENT_SINGLE_THREAD_CHECK(); |
1845 GetIdHandler(id_namespaces::kQueries)->MakeIds(this, 0, n, queries); | 1845 IdAllocatorInterface* id_allocator = GetIdAllocator(id_namespaces::kQueries); |
| 1846 for (GLsizei ii = 0; ii < n; ++ii) |
| 1847 queries[ii] = id_allocator->AllocateID(); |
1846 GenQueriesEXTHelper(n, queries); | 1848 GenQueriesEXTHelper(n, queries); |
1847 helper_->GenQueriesEXTImmediate(n, queries); | 1849 helper_->GenQueriesEXTImmediate(n, queries); |
1848 if (share_group_->bind_generates_resource()) | 1850 if (share_group_->bind_generates_resource()) |
1849 helper_->CommandBufferHelper::Flush(); | 1851 helper_->CommandBufferHelper::Flush(); |
1850 GPU_CLIENT_LOG_CODE_BLOCK({ | 1852 GPU_CLIENT_LOG_CODE_BLOCK({ |
1851 for (GLsizei i = 0; i < n; ++i) { | 1853 for (GLsizei i = 0; i < n; ++i) { |
1852 GPU_CLIENT_LOG(" " << i << ": " << queries[i]); | 1854 GPU_CLIENT_LOG(" " << i << ": " << queries[i]); |
1853 } | 1855 } |
1854 }); | 1856 }); |
1855 CheckGLError(); | 1857 CheckGLError(); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2130 bounds_width, | 2132 bounds_width, |
2131 bounds_height, | 2133 bounds_height, |
2132 uv_x, | 2134 uv_x, |
2133 uv_y, | 2135 uv_y, |
2134 uv_width, | 2136 uv_width, |
2135 uv_height); | 2137 uv_height); |
2136 CheckGLError(); | 2138 CheckGLError(); |
2137 } | 2139 } |
2138 | 2140 |
2139 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 2141 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |