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

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

Issue 8586048: base::Bind() conversion for remaining GPU files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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/fenced_allocator_test.cc ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/mapped_memory_unittest.cc
diff --git a/gpu/command_buffer/client/mapped_memory_unittest.cc b/gpu/command_buffer/client/mapped_memory_unittest.cc
index b5cb183cb6a5fd5d406c8f90790c9981b51dc8a2..81b665529aa8272ed3b2a13e766e9545216bc6bb 100644
--- a/gpu/command_buffer/client/mapped_memory_unittest.cc
+++ b/gpu/command_buffer/client/mapped_memory_unittest.cc
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "gpu/command_buffer/client/mapped_memory.h"
-#include "base/callback.h"
+#include "base/bind.h"
#include "base/message_loop.h"
#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/client/cmd_buffer_helper.h"
@@ -54,8 +54,8 @@ class MappedMemoryTestBase : public testing::Test {
gpu_scheduler_.reset(new GpuScheduler(
command_buffer_.get(), NULL, parser_));
- command_buffer_->SetPutOffsetChangeCallback(NewCallback(
- gpu_scheduler_.get(), &GpuScheduler::PutChanged));
+ command_buffer_->SetPutOffsetChangeCallback(base::Bind(
+ &GpuScheduler::PutChanged, base::Unretained(gpu_scheduler_.get())));
api_mock_->set_engine(gpu_scheduler_.get());
@@ -304,5 +304,3 @@ TEST_F(MappedMemoryManagerTest, ChunkSizeMultiple) {
}
} // namespace gpu
-
-
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator_test.cc ('k') | gpu/command_buffer/client/ring_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698