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 e57ec607f7c0fdf0d449139306fdaec7e88aa689..39d9b85f512a7052b3e25f981e1ce317716bb9c4 100644 |
--- a/gpu/command_buffer/client/share_group.cc |
+++ b/gpu/command_buffer/client/share_group.cc |
@@ -223,6 +223,11 @@ ShareGroup::ShareGroup(bool share_resources, bool bind_generates_resource) |
program_info_manager_.reset(ProgramInfoManager::Create(false)); |
} |
+void ShareGroup::SetGLES2ImplementationForDestruction( |
+ GLES2Implementation* gl_impl) { |
+ gles2_ = gl_impl; |
+} |
+ |
ShareGroup::~ShareGroup() { |
for (int i = 0; i < id_namespaces::kNumIdNamespaces; ++i) { |
id_handlers_[i]->Destroy(gles2_); |
@@ -230,11 +235,5 @@ ShareGroup::~ShareGroup() { |
} |
} |
-void ShareGroup::SetGLES2ImplementationForDestruction( |
- GLES2Implementation* gl_impl) { |
- gles2_ = gl_impl; |
-} |
- |
- |
} // namespace gles2 |
} // namespace gpu |