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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: FBOs/VAOs should not be shared between contexts Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
index db5d667d6069f29efdd5c93291e0ec8ccebd05d4..d6d07c6639fd07ef66ff39db84d4c309f211826b 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -778,7 +778,9 @@ void GLES2Implementation::GenFramebuffers(GLsizei n, GLuint* framebuffers) {
return;
}
GPU_CLIENT_SINGLE_THREAD_CHECK();
- GetIdHandler(id_namespaces::kFramebuffers)->MakeIds(this, 0, n, framebuffers);
+ IdAllocator* id_allocator = GetIdAllocator(id_namespaces::kFramebuffers);
+ for (GLsizei ii = 0; ii < n; ++ii)
+ framebuffers[ii] = id_allocator->AllocateID();
GenFramebuffersHelper(n, framebuffers);
helper_->GenFramebuffersImmediate(n, framebuffers);
if (share_group_->bind_generates_resource())
@@ -2989,7 +2991,9 @@ void GLES2Implementation::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
return;
}
GPU_CLIENT_SINGLE_THREAD_CHECK();
- GetIdHandler(id_namespaces::kVertexArrays)->MakeIds(this, 0, n, arrays);
+ IdAllocator* id_allocator = GetIdAllocator(id_namespaces::kVertexArrays);
+ for (GLsizei ii = 0; ii < n; ++ii)
+ arrays[ii] = id_allocator->AllocateID();
GenVertexArraysOESHelper(n, arrays);
helper_->GenVertexArraysOESImmediate(n, arrays);
if (share_group_->bind_generates_resource())

Powered by Google App Engine
This is Rietveld 408576698