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

Unified Diff: gpu/command_buffer/client/share_group.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/share_group.h
diff --git a/gpu/command_buffer/client/share_group.h b/gpu/command_buffer/client/share_group.h
index 091b69f2385034d354e2f5946dcecabc67d4d2a2..015e455f9bd141e174fbf765a05a4570190d958f 100644
--- a/gpu/command_buffer/client/share_group.h
+++ b/gpu/command_buffer/client/share_group.h
@@ -47,7 +47,7 @@ class ShareGroupContextData {
}
private:
- IdHandlerData id_handler_data_[id_namespaces::kNumIdNamespaces];
+ IdHandlerData id_handler_data_[id_namespaces::kNumSharedIdNamespaces];
};
// Base class for IdHandlers
@@ -137,7 +137,7 @@ class GLES2_IMPL_EXPORT ShareGroup
}
void FreeContext(GLES2Implementation* gl_impl) {
- for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) {
+ for (int i = 0; i < id_namespaces::kNumSharedIdNamespaces; ++i) {
id_handlers_[i]->FreeContext(gl_impl);
}
for (auto& range_id_handler : range_id_handlers_) {
@@ -163,7 +163,7 @@ class GLES2_IMPL_EXPORT ShareGroup
void SetProgramInfoManagerForTesting(ProgramInfoManager* manager);
std::unique_ptr<IdHandlerInterface>
- id_handlers_[id_namespaces::kNumIdNamespaces];
+ id_handlers_[id_namespaces::kNumSharedIdNamespaces];
std::unique_ptr<RangeIdHandlerInterface>
range_id_handlers_[id_namespaces::kNumRangeIdNamespaces];
std::unique_ptr<ProgramInfoManager> program_info_manager_;

Powered by Google App Engine
This is Rietveld 408576698