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

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

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/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_scheduler.h
diff --git a/gpu/command_buffer/service/gpu_scheduler.h b/gpu/command_buffer/service/gpu_scheduler.h
index a8a2d7f878f363186fb75d5a021148674caf2871..5256e4979e3626715b1fb98c3a42fab85f868f7d 100644
--- a/gpu/command_buffer/service/gpu_scheduler.h
+++ b/gpu/command_buffer/service/gpu_scheduler.h
@@ -46,7 +46,7 @@ class GpuScheduler
// Sets a callback that is invoked just before scheduler is rescheduled.
// Takes ownership of callback object.
- void SetScheduledCallback(Callback0::Type* scheduled_callback);
+ void SetScheduledCallback(const base::Closure& scheduled_callback);
// Implementation of CommandBufferEngine.
virtual Buffer GetSharedMemoryBuffer(int32 shm_id) OVERRIDE;
@@ -54,7 +54,7 @@ class GpuScheduler
virtual bool SetGetOffset(int32 offset) OVERRIDE;
virtual int32 GetGetOffset() OVERRIDE;
- void SetCommandProcessedCallback(Callback0::Type* callback);
+ void SetCommandProcessedCallback(const base::Closure& callback);
void DeferToFence(base::Closure task);
@@ -89,8 +89,8 @@ class GpuScheduler
};
std::queue<UnscheduleFence> unschedule_fences_;
- scoped_ptr<Callback0::Type> scheduled_callback_;
- scoped_ptr<Callback0::Type> command_processed_callback_;
+ base::Closure scheduled_callback_;
+ base::Closure command_processed_callback_;
};
} // namespace gpu
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/gpu_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698