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

Unified Diff: mojo/public/cpp/bindings/lib/bindings_internal.h

Issue 2088603002: Implement RenderPass StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary change 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
Index: mojo/public/cpp/bindings/lib/bindings_internal.h
diff --git a/mojo/public/cpp/bindings/lib/bindings_internal.h b/mojo/public/cpp/bindings/lib/bindings_internal.h
index f38c7645eb99c3e040fb8dc92c1e45e2f9d22bc1..139172fa1a01b406fa9da927fe96e0d6d033b6fb 100644
--- a/mojo/public/cpp/bindings/lib/bindings_internal.h
+++ b/mojo/public/cpp/bindings/lib/bindings_internal.h
@@ -159,6 +159,11 @@ struct GetDataTypeAsArrayElement<S, true> {
typename S::Data_*>::type;
};
+template <typename A>
+struct GetDataTypeAsArrayElement<std::unique_ptr<A>, true> {
+ using Data = A;
+};
+
template <>
struct GetDataTypeAsArrayElement<String, false> {
using Data = String_Data*;
« mojo/BUILD.gn ('K') | « mojo/BUILD.gn ('k') | testing/buildbot/chromium.android.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698