Index: gpu/command_buffer/client/query_tracker_unittest.cc |
diff --git a/gpu/command_buffer/client/query_tracker_unittest.cc b/gpu/command_buffer/client/query_tracker_unittest.cc |
index 800c479ec852083ef70dc9e26afc20f0eeba6061..228df17300770cfa6f1c9560a3fedc235967ea66 100644 |
--- a/gpu/command_buffer/client/query_tracker_unittest.cc |
+++ b/gpu/command_buffer/client/query_tracker_unittest.cc |
@@ -18,6 +18,11 @@ |
namespace gpu { |
namespace gles2 { |
+namespace { |
+void EmptyPoll() { |
+} |
+} |
+ |
class QuerySyncManagerTest : public testing::Test { |
protected: |
static const int32 kNumCommandEntries = 400; |
@@ -29,7 +34,7 @@ class QuerySyncManagerTest : public testing::Test { |
helper_.reset(new GLES2CmdHelper(command_buffer_.get())); |
helper_->Initialize(kCommandBufferSizeBytes); |
mapped_memory_.reset(new MappedMemoryManager( |
- helper_.get(), MappedMemoryManager::kNoLimit)); |
+ helper_.get(), base::Bind(&EmptyPoll), MappedMemoryManager::kNoLimit)); |
sync_manager_.reset(new QuerySyncManager(mapped_memory_.get())); |
} |
@@ -83,7 +88,7 @@ class QueryTrackerTest : public testing::Test { |
helper_.reset(new GLES2CmdHelper(command_buffer_.get())); |
helper_->Initialize(kCommandBufferSizeBytes); |
mapped_memory_.reset(new MappedMemoryManager( |
- helper_.get(), MappedMemoryManager::kNoLimit)); |
+ helper_.get(), base::Bind(&EmptyPoll), MappedMemoryManager::kNoLimit)); |
query_tracker_.reset(new QueryTracker(mapped_memory_.get())); |
} |