summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <android-build-prod@system.gserviceaccount.com> 2017-03-17 20:06:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-03-17 20:06:02 +0000
commit9f7506c3c74e54be11c22bc42b95e53e5c855b57 (patch)
treeba4a1e0c04110182bd574dd7426fd1f75243972e
parente01b3d7bf3df85a73bb5f9a4676530e75f1a46c9 (diff)
parent86d064c9a5412d7a392e558e82ac18806b4b6bff (diff)
Merge "fix remote_method type conversion for channal handles"
-rw-r--r--libs/vr/libpdx/private/pdx/rpc/remote_method.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/vr/libpdx/private/pdx/rpc/remote_method.h b/libs/vr/libpdx/private/pdx/rpc/remote_method.h
index 49bee40be5..679503c43c 100644
--- a/libs/vr/libpdx/private/pdx/rpc/remote_method.h
+++ b/libs/vr/libpdx/private/pdx/rpc/remote_method.h
@@ -25,10 +25,9 @@ struct Void {};
// Evaluates to true if the method type is <any>(Void), false otherwise.
template <typename RemoteMethodType>
using IsVoidMethod = typename std::integral_constant<
- bool,
- RemoteMethodType::Traits::Arity == 1 &&
- std::is_same<typename RemoteMethodType::Traits::template Arg<0>,
- Void>::value>;
+ bool, RemoteMethodType::Traits::Arity == 1 &&
+ std::is_same<typename RemoteMethodType::Traits::template Arg<0>,
+ Void>::value>;
// Utility to determine if a method is of type <any>(Void).
template <typename RemoteMethodType>
@@ -274,7 +273,9 @@ template <typename RemoteMethodType, ChannelHandleMode Mode, typename Class,
void DispatchRemoteMethod(
Class& instance, ChannelHandle<Mode> (Class::*method)(Message&, Args...),
Message& message, std::size_t max_capacity = InitialBufferCapacity) {
- using Signature = typename RemoteMethodType::template RewriteArgs<Args...>;
+ using Signature =
+ typename RemoteMethodType::template RewriteSignature<ChannelHandle<Mode>,
+ Args...>;
rpc::ServicePayload<ReceiveBuffer> payload(message);
payload.Resize(max_capacity);