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

Unified Diff: gpu/command_buffer/client/share_group.cc

Issue 59383006: Delete gpu/command_buffer/client/atomicops.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/client/query_tracker.cc ('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/client/share_group.cc
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index e61083d89ead15c96b2e51fb3396d13cfecb5f68..cb9f9bca5c6819e8769fdf11e738046eddafa364 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -5,7 +5,7 @@
#include "gpu/command_buffer/client/share_group.h"
#include "base/logging.h"
-#include "gpu/command_buffer/client/atomicops.h"
+#include "base/synchronization/lock.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/program_info_manager.h"
#include "gpu/command_buffer/common/id_allocator.h"
@@ -157,7 +157,7 @@ class ThreadSafeIdHandlerWrapper : public IdHandlerInterface {
GLuint id_offset,
GLsizei n,
GLuint* ids) OVERRIDE {
- AutoLock auto_lock(lock_);
+ base::AutoLock auto_lock(lock_);
id_handler_->MakeIds(gl_impl, id_offset, n, ids);
}
@@ -166,19 +166,19 @@ class ThreadSafeIdHandlerWrapper : public IdHandlerInterface {
GLsizei n,
const GLuint* ids,
DeleteFn delete_fn) OVERRIDE {
- AutoLock auto_lock(lock_);
+ base::AutoLock auto_lock(lock_);
return id_handler_->FreeIds(gl_impl, n, ids, delete_fn);
}
// Overridden from IdHandlerInterface.
virtual bool MarkAsUsedForBind(GLuint id) OVERRIDE {
- AutoLock auto_lock(lock_);
+ base::AutoLock auto_lock(lock_);
return id_handler_->MarkAsUsedForBind(id);
}
private:
scoped_ptr<IdHandlerInterface> id_handler_;
- Lock lock_;
+ base::Lock lock_;
};
ShareGroup::ShareGroup(bool bind_generates_resource)
« no previous file with comments | « gpu/command_buffer/client/query_tracker.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698