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

Unified Diff: components/view_manager/gles2/command_buffer_impl.cc

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 | « components/view_manager/gles2/command_buffer_impl.h ('k') | components/view_manager/gles2/gpu_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/gles2/command_buffer_impl.cc
diff --git a/components/view_manager/gles2/command_buffer_impl.cc b/components/view_manager/gles2/command_buffer_impl.cc
index 9a2a97b803d3fde10e24e7e00deb0eb0770bc64d..c46b4574a21ed63eaaf60492d5073c70bc97283b 100644
--- a/components/view_manager/gles2/command_buffer_impl.cc
+++ b/components/view_manager/gles2/command_buffer_impl.cc
@@ -108,15 +108,16 @@ 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(&gpu::SyncPointManager::RetireSyncPoint,
+ base::Unretained(sync_point_manager_), sync_point));
msw 2015/07/21 00:46:03 What guarantees that |sync_point_manager_| exists
boliu 2015/07/21 00:57:19 Hmm, I'm not sure actually. It outlives the "cont
}
}
void CommandBufferImpl::RetireSyncPoint(uint32_t sync_point) {
driver_task_runner_->PostTask(
FROM_HERE, base::Bind(&gpu::SyncPointManager::RetireSyncPoint,
- sync_point_manager_, sync_point));
+ base::Unretained(sync_point_manager_), sync_point));
}
void CommandBufferImpl::Echo(const mojo::Callback<void()>& callback) {
« no previous file with comments | « components/view_manager/gles2/command_buffer_impl.h ('k') | components/view_manager/gles2/gpu_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698