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

Unified Diff: services/gles2/command_buffer_impl.cc

Issue 1348283004: Use MailboxManagerSync on android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add todo comment Created 5 years, 3 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
« no previous file with comments | « services/gles2/command_buffer_driver.cc ('k') | services/gles2/gpu_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_impl.cc
diff --git a/services/gles2/command_buffer_impl.cc b/services/gles2/command_buffer_impl.cc
index 72a27d075c22e0b42aa1cee19b014c050d4003a1..f999c8e1bedb0e27d0cb8bc2e6c9b7394b2614d7 100644
--- a/services/gles2/command_buffer_impl.cc
+++ b/services/gles2/command_buffer_impl.cc
@@ -124,15 +124,15 @@ void CommandBufferImpl::InsertSyncPoint(bool retire) {
sync_point_client_->DidInsertSyncPoint(sync_point);
if (retire) {
driver_task_runner_->PostTask(
- FROM_HERE, base::Bind(&gpu::SyncPointManager::RetireSyncPoint,
- sync_point_manager_, sync_point));
+ FROM_HERE, base::Bind(&CommandBufferDriver::RetireSyncPointOnGpuThread,
+ base::Unretained(driver_.get()), sync_point));
}
}
void CommandBufferImpl::RetireSyncPoint(uint32_t sync_point) {
driver_task_runner_->PostTask(
- FROM_HERE, base::Bind(&gpu::SyncPointManager::RetireSyncPoint,
- sync_point_manager_, sync_point));
+ FROM_HERE, base::Bind(&CommandBufferDriver::RetireSyncPointOnGpuThread,
+ base::Unretained(driver_.get()), sync_point));
}
void CommandBufferImpl::Echo(const mojo::Callback<void()>& callback) {
« no previous file with comments | « services/gles2/command_buffer_driver.cc ('k') | services/gles2/gpu_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698