Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 371363002: Query objects should not be shared between contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverted DCHECK -> DCHECK_NE change to avoid error Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698