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

Unified Diff: gpu/command_buffer/common/id_allocator.cc

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/common/id_allocator.cc
===================================================================
--- gpu/command_buffer/common/id_allocator.cc (revision 95161)
+++ gpu/command_buffer/common/id_allocator.cc (working copy)
@@ -9,6 +9,9 @@
namespace gpu {
+IdAllocatorInterface::~IdAllocatorInterface() {
+}
+
IdAllocator::IdAllocator() {}
IdAllocator::~IdAllocator() {}
@@ -85,4 +88,34 @@
return id;
}
+NonReusedIdAllocator::NonReusedIdAllocator() : last_id_(0) {
+}
+
+NonReusedIdAllocator::~NonReusedIdAllocator() {
+}
+
+ResourceId NonReusedIdAllocator::AllocateID() {
+ return ++last_id_;
+}
+
+ResourceId NonReusedIdAllocator::AllocateIDAtOrAbove(ResourceId desired_id) {
+ if (desired_id > last_id_)
+ last_id_ = desired_id;
+
+ return ++last_id_;
+}
+
+bool NonReusedIdAllocator::MarkAsUsed(ResourceId id) {
+ GPU_NOTREACHED();
+ return false;
+}
+
+void NonReusedIdAllocator::FreeID(ResourceId id) {
+}
+
+bool NonReusedIdAllocator::InUse(ResourceId id) const {
+ GPU_NOTREACHED();
+ return false;
+}
+
} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698