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

Unified Diff: components/mus/public/cpp/lib/command_buffer_client_impl.cc

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/mus/gles2/command_buffer_impl.cc ('k') | components/mus/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/command_buffer_client_impl.cc
diff --git a/components/mus/public/cpp/lib/command_buffer_client_impl.cc b/components/mus/public/cpp/lib/command_buffer_client_impl.cc
index 632d0a7d0c218fcfad3d146c4416c27c9be5ba49..5bde26d08971f8ed0850f13346ae713e5e3317ae 100644
--- a/components/mus/public/cpp/lib/command_buffer_client_impl.cc
+++ b/components/mus/public/cpp/lib/command_buffer_client_impl.cc
@@ -77,7 +77,8 @@ CommandBufferClientImpl::CommandBufferClientImpl(
next_fence_sync_release_(1),
flushed_fence_sync_release_(0) {
command_buffer_.set_connection_error_handler(
- [this]() { Destroyed(gpu::error::kUnknown, gpu::error::kLostContext); });
+ base::Bind(&CommandBufferClientImpl::Destroyed, base::Unretained(this),
+ gpu::error::kUnknown, gpu::error::kLostContext));
}
CommandBufferClientImpl::~CommandBufferClientImpl() {}
« no previous file with comments | « components/mus/gles2/command_buffer_impl.cc ('k') | components/mus/public/cpp/lib/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698