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

Unified Diff: mojo/public/cpp/bindings/strong_binding.h

Issue 739493002: Introduce command buffer control thread (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 6 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
Index: mojo/public/cpp/bindings/strong_binding.h
diff --git a/mojo/public/cpp/bindings/strong_binding.h b/mojo/public/cpp/bindings/strong_binding.h
index 986c072219f1ec6425cb050a8a58b49f418605b4..32715e4d0018e206c1c88e0f0ad1ee6e69916b07 100644
--- a/mojo/public/cpp/bindings/strong_binding.h
+++ b/mojo/public/cpp/bindings/strong_binding.h
@@ -67,6 +67,24 @@ class StrongBinding : public ErrorHandler {
~StrongBinding() override {}
+ void Bind(
+ ScopedMessagePipeHandle handle,
+ const MojoAsyncWaiter* waiter = Environment::GetDefaultAsyncWaiter()) {
+ binding_.Bind(handle.Pass(), waiter);
jamesr 2014/11/19 20:57:17 add an assert() that we aren't already bound since
+ }
+
+ void Bind(
+ InterfacePtr<Interface>* ptr,
+ const MojoAsyncWaiter* waiter = Environment::GetDefaultAsyncWaiter()) {
+ binding_.Bind(ptr, waiter);
+ }
+
+ void Bind(
+ InterfaceRequest<Interface> request,
+ const MojoAsyncWaiter* waiter = Environment::GetDefaultAsyncWaiter()) {
+ binding_.Bind(request.Pass(), waiter);
+ }
+
bool WaitForIncomingMethodCall() {
return binding_.WaitForIncomingMethodCall();
}
« no previous file with comments | « no previous file | mojo/services/gles2/command_buffer_driver.h » ('j') | mojo/services/gles2/command_buffer_driver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698