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

Unified Diff: gpu/command_buffer/client/share_group.cc

Issue 2826043002: Do not share FBOs/VAOs/Transform feedback objects across contexts (Closed)
Patch Set: added DeleteFramebuffers() expectation Created 3 years, 7 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/share_group.cc
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index d1041c06e3ae5b987da47d2f3c4fdf5c11a9a0f7..126332cc865611ded8a5664d8c9931eff1191795 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -352,16 +352,20 @@ ShareGroup::ShareGroup(bool bind_generates_resource, uint64_t tracing_guid)
: bind_generates_resource_(bind_generates_resource),
tracing_guid_(tracing_guid) {
if (bind_generates_resource) {
- for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
- if (i == id_namespaces::kProgramsAndShaders) {
+ for (int i = 0;
+ i < static_cast<int>(SharedIdNamespaces::kNumSharedIdNamespaces);
+ ++i) {
+ if (i == static_cast<int>(SharedIdNamespaces::kProgramsAndShaders)) {
id_handlers_[i].reset(new NonReusedIdHandler());
} else {
id_handlers_[i].reset(new IdHandler());
}
}
} else {
- for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
- if (i == id_namespaces::kProgramsAndShaders) {
+ for (int i = 0;
+ i < static_cast<int>(SharedIdNamespaces::kNumSharedIdNamespaces);
+ ++i) {
+ if (i == static_cast<int>(SharedIdNamespaces::kProgramsAndShaders)) {
id_handlers_[i].reset(new NonReusedIdHandler());
} else {
id_handlers_[i].reset(new StrictIdHandler(i));

Powered by Google App Engine
This is Rietveld 408576698