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

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

Issue 7554015: Implemented support for GL constext share groups in the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/service/context_group.h
===================================================================
--- gpu/command_buffer/service/context_group.h (revision 95161)
+++ gpu/command_buffer/service/context_group.h (working copy)
@@ -11,12 +11,13 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/service/gles2_cmd_validation.h"
#include "gpu/command_buffer/service/feature_info.h"
namespace gpu {
-class IdAllocator;
+class IdAllocatorInterface;
namespace gles2 {
@@ -103,7 +104,7 @@
return shader_manager_.get();
}
- IdAllocator* GetIdAllocator(unsigned namepsace_id);
+ IdAllocatorInterface* GetIdAllocator(unsigned namespace_id);
private:
// Destroys all the resources.
@@ -133,8 +134,8 @@
scoped_ptr<ShaderManager> shader_manager_;
- typedef base::hash_map<uint32, linked_ptr<IdAllocator> > IdAllocatorMap;
- IdAllocatorMap id_namespaces_;
+ linked_ptr<IdAllocatorInterface>
+ id_namespaces_[id_namespaces::kNumIdNamespaces];
FeatureInfo feature_info_;

Powered by Google App Engine
This is Rietveld 408576698