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

Unified Diff: gpu/command_buffer/service/context_group.cc

Issue 621673002: command_buffer: Remove unused shared id code (GenSharedIdsCHROMIUM, ...) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 5225896cfa9939cb563795f4b7b6a66870e83410..fe692beb8fe623240292670980b4bbe4bf6c92c4 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -10,7 +10,6 @@
#include "base/command_line.h"
#include "base/strings/string_util.h"
#include "base/sys_info.h"
-#include "gpu/command_buffer/common/id_allocator.h"
#include "gpu/command_buffer/service/buffer_manager.h"
#include "gpu/command_buffer/service/framebuffer_manager.h"
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
@@ -60,15 +59,6 @@ ContextGroup::ContextGroup(
transfer_buffer_manager_.reset(manager);
manager->Initialize();
}
-
- id_namespaces_[id_namespaces::kBuffers].reset(new IdAllocator);
- id_namespaces_[id_namespaces::kFramebuffers].reset(new IdAllocator);
- id_namespaces_[id_namespaces::kProgramsAndShaders].reset(
- new NonReusedIdAllocator);
- id_namespaces_[id_namespaces::kRenderbuffers].reset(new IdAllocator);
- id_namespaces_[id_namespaces::kTextures].reset(new IdAllocator);
- id_namespaces_[id_namespaces::kQueries].reset(new IdAllocator);
- id_namespaces_[id_namespaces::kVertexArrays].reset(new IdAllocator);
}
static void GetIntegerv(GLenum pname, uint32* var) {
@@ -328,13 +318,6 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
memory_tracker_ = NULL;
}
-IdAllocatorInterface* ContextGroup::GetIdAllocator(unsigned namespace_id) {
- if (namespace_id >= arraysize(id_namespaces_))
- return NULL;
-
- return id_namespaces_[namespace_id].get();
-}
-
uint32 ContextGroup::GetMemRepresented() const {
uint32 total = 0;
if (buffer_manager_.get())
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698