OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library command_buffer_mojom; | 5 library command_buffer_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:mojo_services/mojo/gpu_capabilities.mojom.dart' as gpu_capabilit
ies_mojom; | 13 import 'package:mojo_services/mojo/gpu_capabilities.mojom.dart' as gpu_capabilit
ies_mojom; |
12 | 14 |
13 | 15 |
14 | 16 |
15 class CommandBufferState extends bindings.Struct { | 17 class CommandBufferState extends bindings.Struct { |
16 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
17 const bindings.StructDataHeader(40, 0) | 19 const bindings.StructDataHeader(40, 0) |
18 ]; | 20 ]; |
19 int numEntries = 0; | 21 int numEntries = 0; |
20 int getOffset = 0; | 22 int getOffset = 0; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 map["putOffset"] = putOffset; | 128 map["putOffset"] = putOffset; |
127 map["token"] = token; | 129 map["token"] = token; |
128 map["error"] = error; | 130 map["error"] = error; |
129 map["contextLostReason"] = contextLostReason; | 131 map["contextLostReason"] = contextLostReason; |
130 map["generation"] = generation; | 132 map["generation"] = generation; |
131 return map; | 133 return map; |
132 } | 134 } |
133 } | 135 } |
134 | 136 |
135 | 137 |
| 138 |
| 139 |
136 class _CommandBufferSyncClientDidInitializeParams extends bindings.Struct { | 140 class _CommandBufferSyncClientDidInitializeParams extends bindings.Struct { |
137 static const List<bindings.StructDataHeader> kVersions = const [ | 141 static const List<bindings.StructDataHeader> kVersions = const [ |
138 const bindings.StructDataHeader(24, 0) | 142 const bindings.StructDataHeader(24, 0) |
139 ]; | 143 ]; |
140 bool success = false; | 144 bool success = false; |
141 gpu_capabilities_mojom.GpuCapabilities capabilities = null; | 145 gpu_capabilities_mojom.GpuCapabilities capabilities = null; |
142 | 146 |
143 _CommandBufferSyncClientDidInitializeParams() : super(kVersions.last.size); | 147 _CommandBufferSyncClientDidInitializeParams() : super(kVersions.last.size); |
144 | 148 |
145 static _CommandBufferSyncClientDidInitializeParams deserialize(bindings.Messag
e message) { | 149 static _CommandBufferSyncClientDidInitializeParams deserialize(bindings.Messag
e message) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 207 |
204 Map toJson() { | 208 Map toJson() { |
205 Map map = new Map(); | 209 Map map = new Map(); |
206 map["success"] = success; | 210 map["success"] = success; |
207 map["capabilities"] = capabilities; | 211 map["capabilities"] = capabilities; |
208 return map; | 212 return map; |
209 } | 213 } |
210 } | 214 } |
211 | 215 |
212 | 216 |
| 217 |
| 218 |
213 class _CommandBufferSyncClientDidMakeProgressParams extends bindings.Struct { | 219 class _CommandBufferSyncClientDidMakeProgressParams extends bindings.Struct { |
214 static const List<bindings.StructDataHeader> kVersions = const [ | 220 static const List<bindings.StructDataHeader> kVersions = const [ |
215 const bindings.StructDataHeader(16, 0) | 221 const bindings.StructDataHeader(16, 0) |
216 ]; | 222 ]; |
217 CommandBufferState state = null; | 223 CommandBufferState state = null; |
218 | 224 |
219 _CommandBufferSyncClientDidMakeProgressParams() : super(kVersions.last.size); | 225 _CommandBufferSyncClientDidMakeProgressParams() : super(kVersions.last.size); |
220 | 226 |
221 static _CommandBufferSyncClientDidMakeProgressParams deserialize(bindings.Mess
age message) { | 227 static _CommandBufferSyncClientDidMakeProgressParams deserialize(bindings.Mess
age message) { |
222 var decoder = new bindings.Decoder(message); | 228 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 277 } |
272 | 278 |
273 Map toJson() { | 279 Map toJson() { |
274 Map map = new Map(); | 280 Map map = new Map(); |
275 map["state"] = state; | 281 map["state"] = state; |
276 return map; | 282 return map; |
277 } | 283 } |
278 } | 284 } |
279 | 285 |
280 | 286 |
| 287 |
| 288 |
281 class _CommandBufferSyncPointClientDidInsertSyncPointParams extends bindings.Str
uct { | 289 class _CommandBufferSyncPointClientDidInsertSyncPointParams extends bindings.Str
uct { |
282 static const List<bindings.StructDataHeader> kVersions = const [ | 290 static const List<bindings.StructDataHeader> kVersions = const [ |
283 const bindings.StructDataHeader(16, 0) | 291 const bindings.StructDataHeader(16, 0) |
284 ]; | 292 ]; |
285 int syncPoint = 0; | 293 int syncPoint = 0; |
286 | 294 |
287 _CommandBufferSyncPointClientDidInsertSyncPointParams() : super(kVersions.last
.size); | 295 _CommandBufferSyncPointClientDidInsertSyncPointParams() : super(kVersions.last
.size); |
288 | 296 |
289 static _CommandBufferSyncPointClientDidInsertSyncPointParams deserialize(bindi
ngs.Message message) { | 297 static _CommandBufferSyncPointClientDidInsertSyncPointParams deserialize(bindi
ngs.Message message) { |
290 var decoder = new bindings.Decoder(message); | 298 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 346 } |
339 | 347 |
340 Map toJson() { | 348 Map toJson() { |
341 Map map = new Map(); | 349 Map map = new Map(); |
342 map["syncPoint"] = syncPoint; | 350 map["syncPoint"] = syncPoint; |
343 return map; | 351 return map; |
344 } | 352 } |
345 } | 353 } |
346 | 354 |
347 | 355 |
| 356 |
| 357 |
348 class _CommandBufferLostContextObserverDidLoseContextParams extends bindings.Str
uct { | 358 class _CommandBufferLostContextObserverDidLoseContextParams extends bindings.Str
uct { |
349 static const List<bindings.StructDataHeader> kVersions = const [ | 359 static const List<bindings.StructDataHeader> kVersions = const [ |
350 const bindings.StructDataHeader(16, 0) | 360 const bindings.StructDataHeader(16, 0) |
351 ]; | 361 ]; |
352 int contextLostReason = 0; | 362 int contextLostReason = 0; |
353 | 363 |
354 _CommandBufferLostContextObserverDidLoseContextParams() : super(kVersions.last
.size); | 364 _CommandBufferLostContextObserverDidLoseContextParams() : super(kVersions.last
.size); |
355 | 365 |
356 static _CommandBufferLostContextObserverDidLoseContextParams deserialize(bindi
ngs.Message message) { | 366 static _CommandBufferLostContextObserverDidLoseContextParams deserialize(bindi
ngs.Message message) { |
357 var decoder = new bindings.Decoder(message); | 367 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 415 } |
406 | 416 |
407 Map toJson() { | 417 Map toJson() { |
408 Map map = new Map(); | 418 Map map = new Map(); |
409 map["contextLostReason"] = contextLostReason; | 419 map["contextLostReason"] = contextLostReason; |
410 return map; | 420 return map; |
411 } | 421 } |
412 } | 422 } |
413 | 423 |
414 | 424 |
| 425 |
| 426 |
415 class _CommandBufferInitializeParams extends bindings.Struct { | 427 class _CommandBufferInitializeParams extends bindings.Struct { |
416 static const List<bindings.StructDataHeader> kVersions = const [ | 428 static const List<bindings.StructDataHeader> kVersions = const [ |
417 const bindings.StructDataHeader(40, 0) | 429 const bindings.StructDataHeader(40, 0) |
418 ]; | 430 ]; |
419 Object syncClient = null; | 431 Object syncClient = null; |
420 Object syncPointClient = null; | 432 Object syncPointClient = null; |
421 Object lostObserver = null; | 433 Object lostObserver = null; |
422 core.MojoSharedBuffer sharedState = null; | 434 core.MojoSharedBuffer sharedState = null; |
423 | 435 |
424 _CommandBufferInitializeParams() : super(kVersions.last.size); | 436 _CommandBufferInitializeParams() : super(kVersions.last.size); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 "sharedState: $sharedState" ")"; | 507 "sharedState: $sharedState" ")"; |
496 } | 508 } |
497 | 509 |
498 Map toJson() { | 510 Map toJson() { |
499 throw new bindings.MojoCodecError( | 511 throw new bindings.MojoCodecError( |
500 'Object containing handles cannot be encoded to JSON.'); | 512 'Object containing handles cannot be encoded to JSON.'); |
501 } | 513 } |
502 } | 514 } |
503 | 515 |
504 | 516 |
| 517 |
| 518 |
505 class _CommandBufferSetGetBufferParams extends bindings.Struct { | 519 class _CommandBufferSetGetBufferParams extends bindings.Struct { |
506 static const List<bindings.StructDataHeader> kVersions = const [ | 520 static const List<bindings.StructDataHeader> kVersions = const [ |
507 const bindings.StructDataHeader(16, 0) | 521 const bindings.StructDataHeader(16, 0) |
508 ]; | 522 ]; |
509 int buffer = 0; | 523 int buffer = 0; |
510 | 524 |
511 _CommandBufferSetGetBufferParams() : super(kVersions.last.size); | 525 _CommandBufferSetGetBufferParams() : super(kVersions.last.size); |
512 | 526 |
513 static _CommandBufferSetGetBufferParams deserialize(bindings.Message message)
{ | 527 static _CommandBufferSetGetBufferParams deserialize(bindings.Message message)
{ |
514 var decoder = new bindings.Decoder(message); | 528 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } | 576 } |
563 | 577 |
564 Map toJson() { | 578 Map toJson() { |
565 Map map = new Map(); | 579 Map map = new Map(); |
566 map["buffer"] = buffer; | 580 map["buffer"] = buffer; |
567 return map; | 581 return map; |
568 } | 582 } |
569 } | 583 } |
570 | 584 |
571 | 585 |
| 586 |
| 587 |
572 class _CommandBufferFlushParams extends bindings.Struct { | 588 class _CommandBufferFlushParams extends bindings.Struct { |
573 static const List<bindings.StructDataHeader> kVersions = const [ | 589 static const List<bindings.StructDataHeader> kVersions = const [ |
574 const bindings.StructDataHeader(16, 0) | 590 const bindings.StructDataHeader(16, 0) |
575 ]; | 591 ]; |
576 int putOffset = 0; | 592 int putOffset = 0; |
577 | 593 |
578 _CommandBufferFlushParams() : super(kVersions.last.size); | 594 _CommandBufferFlushParams() : super(kVersions.last.size); |
579 | 595 |
580 static _CommandBufferFlushParams deserialize(bindings.Message message) { | 596 static _CommandBufferFlushParams deserialize(bindings.Message message) { |
581 var decoder = new bindings.Decoder(message); | 597 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 } | 645 } |
630 | 646 |
631 Map toJson() { | 647 Map toJson() { |
632 Map map = new Map(); | 648 Map map = new Map(); |
633 map["putOffset"] = putOffset; | 649 map["putOffset"] = putOffset; |
634 return map; | 650 return map; |
635 } | 651 } |
636 } | 652 } |
637 | 653 |
638 | 654 |
| 655 |
| 656 |
639 class _CommandBufferMakeProgressParams extends bindings.Struct { | 657 class _CommandBufferMakeProgressParams extends bindings.Struct { |
640 static const List<bindings.StructDataHeader> kVersions = const [ | 658 static const List<bindings.StructDataHeader> kVersions = const [ |
641 const bindings.StructDataHeader(16, 0) | 659 const bindings.StructDataHeader(16, 0) |
642 ]; | 660 ]; |
643 int lastGetOffset = 0; | 661 int lastGetOffset = 0; |
644 | 662 |
645 _CommandBufferMakeProgressParams() : super(kVersions.last.size); | 663 _CommandBufferMakeProgressParams() : super(kVersions.last.size); |
646 | 664 |
647 static _CommandBufferMakeProgressParams deserialize(bindings.Message message)
{ | 665 static _CommandBufferMakeProgressParams deserialize(bindings.Message message)
{ |
648 var decoder = new bindings.Decoder(message); | 666 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 } | 714 } |
697 | 715 |
698 Map toJson() { | 716 Map toJson() { |
699 Map map = new Map(); | 717 Map map = new Map(); |
700 map["lastGetOffset"] = lastGetOffset; | 718 map["lastGetOffset"] = lastGetOffset; |
701 return map; | 719 return map; |
702 } | 720 } |
703 } | 721 } |
704 | 722 |
705 | 723 |
| 724 |
| 725 |
706 class _CommandBufferRegisterTransferBufferParams extends bindings.Struct { | 726 class _CommandBufferRegisterTransferBufferParams extends bindings.Struct { |
707 static const List<bindings.StructDataHeader> kVersions = const [ | 727 static const List<bindings.StructDataHeader> kVersions = const [ |
708 const bindings.StructDataHeader(24, 0) | 728 const bindings.StructDataHeader(24, 0) |
709 ]; | 729 ]; |
710 int id = 0; | 730 int id = 0; |
711 core.MojoSharedBuffer transferBuffer = null; | 731 core.MojoSharedBuffer transferBuffer = null; |
712 int size = 0; | 732 int size = 0; |
713 | 733 |
714 _CommandBufferRegisterTransferBufferParams() : super(kVersions.last.size); | 734 _CommandBufferRegisterTransferBufferParams() : super(kVersions.last.size); |
715 | 735 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 "size: $size" ")"; | 798 "size: $size" ")"; |
779 } | 799 } |
780 | 800 |
781 Map toJson() { | 801 Map toJson() { |
782 throw new bindings.MojoCodecError( | 802 throw new bindings.MojoCodecError( |
783 'Object containing handles cannot be encoded to JSON.'); | 803 'Object containing handles cannot be encoded to JSON.'); |
784 } | 804 } |
785 } | 805 } |
786 | 806 |
787 | 807 |
| 808 |
| 809 |
788 class _CommandBufferDestroyTransferBufferParams extends bindings.Struct { | 810 class _CommandBufferDestroyTransferBufferParams extends bindings.Struct { |
789 static const List<bindings.StructDataHeader> kVersions = const [ | 811 static const List<bindings.StructDataHeader> kVersions = const [ |
790 const bindings.StructDataHeader(16, 0) | 812 const bindings.StructDataHeader(16, 0) |
791 ]; | 813 ]; |
792 int id = 0; | 814 int id = 0; |
793 | 815 |
794 _CommandBufferDestroyTransferBufferParams() : super(kVersions.last.size); | 816 _CommandBufferDestroyTransferBufferParams() : super(kVersions.last.size); |
795 | 817 |
796 static _CommandBufferDestroyTransferBufferParams deserialize(bindings.Message
message) { | 818 static _CommandBufferDestroyTransferBufferParams deserialize(bindings.Message
message) { |
797 var decoder = new bindings.Decoder(message); | 819 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 } | 867 } |
846 | 868 |
847 Map toJson() { | 869 Map toJson() { |
848 Map map = new Map(); | 870 Map map = new Map(); |
849 map["id"] = id; | 871 map["id"] = id; |
850 return map; | 872 return map; |
851 } | 873 } |
852 } | 874 } |
853 | 875 |
854 | 876 |
| 877 |
| 878 |
855 class _CommandBufferInsertSyncPointParams extends bindings.Struct { | 879 class _CommandBufferInsertSyncPointParams extends bindings.Struct { |
856 static const List<bindings.StructDataHeader> kVersions = const [ | 880 static const List<bindings.StructDataHeader> kVersions = const [ |
857 const bindings.StructDataHeader(16, 0) | 881 const bindings.StructDataHeader(16, 0) |
858 ]; | 882 ]; |
859 bool retire = false; | 883 bool retire = false; |
860 | 884 |
861 _CommandBufferInsertSyncPointParams() : super(kVersions.last.size); | 885 _CommandBufferInsertSyncPointParams() : super(kVersions.last.size); |
862 | 886 |
863 static _CommandBufferInsertSyncPointParams deserialize(bindings.Message messag
e) { | 887 static _CommandBufferInsertSyncPointParams deserialize(bindings.Message messag
e) { |
864 var decoder = new bindings.Decoder(message); | 888 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 } | 936 } |
913 | 937 |
914 Map toJson() { | 938 Map toJson() { |
915 Map map = new Map(); | 939 Map map = new Map(); |
916 map["retire"] = retire; | 940 map["retire"] = retire; |
917 return map; | 941 return map; |
918 } | 942 } |
919 } | 943 } |
920 | 944 |
921 | 945 |
| 946 |
| 947 |
922 class _CommandBufferRetireSyncPointParams extends bindings.Struct { | 948 class _CommandBufferRetireSyncPointParams extends bindings.Struct { |
923 static const List<bindings.StructDataHeader> kVersions = const [ | 949 static const List<bindings.StructDataHeader> kVersions = const [ |
924 const bindings.StructDataHeader(16, 0) | 950 const bindings.StructDataHeader(16, 0) |
925 ]; | 951 ]; |
926 int syncPoint = 0; | 952 int syncPoint = 0; |
927 | 953 |
928 _CommandBufferRetireSyncPointParams() : super(kVersions.last.size); | 954 _CommandBufferRetireSyncPointParams() : super(kVersions.last.size); |
929 | 955 |
930 static _CommandBufferRetireSyncPointParams deserialize(bindings.Message messag
e) { | 956 static _CommandBufferRetireSyncPointParams deserialize(bindings.Message messag
e) { |
931 var decoder = new bindings.Decoder(message); | 957 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 } | 1005 } |
980 | 1006 |
981 Map toJson() { | 1007 Map toJson() { |
982 Map map = new Map(); | 1008 Map map = new Map(); |
983 map["syncPoint"] = syncPoint; | 1009 map["syncPoint"] = syncPoint; |
984 return map; | 1010 return map; |
985 } | 1011 } |
986 } | 1012 } |
987 | 1013 |
988 | 1014 |
| 1015 |
| 1016 |
989 class _CommandBufferEchoParams extends bindings.Struct { | 1017 class _CommandBufferEchoParams extends bindings.Struct { |
990 static const List<bindings.StructDataHeader> kVersions = const [ | 1018 static const List<bindings.StructDataHeader> kVersions = const [ |
991 const bindings.StructDataHeader(8, 0) | 1019 const bindings.StructDataHeader(8, 0) |
992 ]; | 1020 ]; |
993 | 1021 |
994 _CommandBufferEchoParams() : super(kVersions.last.size); | 1022 _CommandBufferEchoParams() : super(kVersions.last.size); |
995 | 1023 |
996 static _CommandBufferEchoParams deserialize(bindings.Message message) { | 1024 static _CommandBufferEchoParams deserialize(bindings.Message message) { |
997 var decoder = new bindings.Decoder(message); | 1025 var decoder = new bindings.Decoder(message); |
998 var result = decode(decoder); | 1026 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 return "_CommandBufferEchoParams("")"; | 1065 return "_CommandBufferEchoParams("")"; |
1038 } | 1066 } |
1039 | 1067 |
1040 Map toJson() { | 1068 Map toJson() { |
1041 Map map = new Map(); | 1069 Map map = new Map(); |
1042 return map; | 1070 return map; |
1043 } | 1071 } |
1044 } | 1072 } |
1045 | 1073 |
1046 | 1074 |
| 1075 |
| 1076 |
1047 class CommandBufferEchoResponseParams extends bindings.Struct { | 1077 class CommandBufferEchoResponseParams extends bindings.Struct { |
1048 static const List<bindings.StructDataHeader> kVersions = const [ | 1078 static const List<bindings.StructDataHeader> kVersions = const [ |
1049 const bindings.StructDataHeader(8, 0) | 1079 const bindings.StructDataHeader(8, 0) |
1050 ]; | 1080 ]; |
1051 | 1081 |
1052 CommandBufferEchoResponseParams() : super(kVersions.last.size); | 1082 CommandBufferEchoResponseParams() : super(kVersions.last.size); |
1053 | 1083 |
1054 static CommandBufferEchoResponseParams deserialize(bindings.Message message) { | 1084 static CommandBufferEchoResponseParams deserialize(bindings.Message message) { |
1055 var decoder = new bindings.Decoder(message); | 1085 var decoder = new bindings.Decoder(message); |
1056 var result = decode(decoder); | 1086 var result = decode(decoder); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 String toString() { | 1124 String toString() { |
1095 return "CommandBufferEchoResponseParams("")"; | 1125 return "CommandBufferEchoResponseParams("")"; |
1096 } | 1126 } |
1097 | 1127 |
1098 Map toJson() { | 1128 Map toJson() { |
1099 Map map = new Map(); | 1129 Map map = new Map(); |
1100 return map; | 1130 return map; |
1101 } | 1131 } |
1102 } | 1132 } |
1103 | 1133 |
| 1134 |
| 1135 |
| 1136 |
1104 const int _CommandBufferSyncClient_didInitializeName = 0; | 1137 const int _CommandBufferSyncClient_didInitializeName = 0; |
1105 const int _CommandBufferSyncClient_didMakeProgressName = 1; | 1138 const int _CommandBufferSyncClient_didMakeProgressName = 1; |
1106 | 1139 |
| 1140 |
| 1141 |
| 1142 class _CommandBufferSyncClientServiceDescription implements service_describer.Se
rviceDescription { |
| 1143 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1144 |
| 1145 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1146 |
| 1147 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1148 } |
| 1149 |
1107 abstract class CommandBufferSyncClient { | 1150 abstract class CommandBufferSyncClient { |
1108 static const String serviceName = null; | 1151 static const String serviceName = null; |
1109 void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabi
lities); | 1152 void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabi
lities); |
1110 void didMakeProgress(CommandBufferState state); | 1153 void didMakeProgress(CommandBufferState state); |
1111 } | 1154 } |
1112 | 1155 |
1113 | 1156 |
1114 class _CommandBufferSyncClientProxyImpl extends bindings.Proxy { | 1157 class _CommandBufferSyncClientProxyImpl extends bindings.Proxy { |
1115 _CommandBufferSyncClientProxyImpl.fromEndpoint( | 1158 _CommandBufferSyncClientProxyImpl.fromEndpoint( |
1116 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1159 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1117 | 1160 |
1118 _CommandBufferSyncClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1161 _CommandBufferSyncClientProxyImpl.fromHandle(core.MojoHandle handle) : |
1119 super.fromHandle(handle); | 1162 super.fromHandle(handle); |
1120 | 1163 |
1121 _CommandBufferSyncClientProxyImpl.unbound() : super.unbound(); | 1164 _CommandBufferSyncClientProxyImpl.unbound() : super.unbound(); |
1122 | 1165 |
1123 static _CommandBufferSyncClientProxyImpl newFromEndpoint( | 1166 static _CommandBufferSyncClientProxyImpl newFromEndpoint( |
1124 core.MojoMessagePipeEndpoint endpoint) { | 1167 core.MojoMessagePipeEndpoint endpoint) { |
1125 assert(endpoint.setDescription("For _CommandBufferSyncClientProxyImpl")); | 1168 assert(endpoint.setDescription("For _CommandBufferSyncClientProxyImpl")); |
1126 return new _CommandBufferSyncClientProxyImpl.fromEndpoint(endpoint); | 1169 return new _CommandBufferSyncClientProxyImpl.fromEndpoint(endpoint); |
1127 } | 1170 } |
1128 | 1171 |
| 1172 service_describer.ServiceDescription get serviceDescription => |
| 1173 new _CommandBufferSyncClientServiceDescription(); |
| 1174 |
1129 void handleResponse(bindings.ServiceMessage message) { | 1175 void handleResponse(bindings.ServiceMessage message) { |
1130 switch (message.header.type) { | 1176 switch (message.header.type) { |
1131 default: | 1177 default: |
1132 proxyError("Unexpected message type: ${message.header.type}"); | 1178 proxyError("Unexpected message type: ${message.header.type}"); |
1133 close(immediate: true); | 1179 close(immediate: true); |
1134 break; | 1180 break; |
1135 } | 1181 } |
1136 } | 1182 } |
1137 | 1183 |
1138 String toString() { | 1184 String toString() { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 assert(_impl == null); | 1323 assert(_impl == null); |
1278 _impl = d; | 1324 _impl = d; |
1279 } | 1325 } |
1280 | 1326 |
1281 String toString() { | 1327 String toString() { |
1282 var superString = super.toString(); | 1328 var superString = super.toString(); |
1283 return "CommandBufferSyncClientStub($superString)"; | 1329 return "CommandBufferSyncClientStub($superString)"; |
1284 } | 1330 } |
1285 | 1331 |
1286 int get version => 0; | 1332 int get version => 0; |
| 1333 |
| 1334 service_describer.ServiceDescription get serviceDescription => |
| 1335 new _CommandBufferSyncClientServiceDescription(); |
1287 } | 1336 } |
1288 | 1337 |
1289 const int _CommandBufferSyncPointClient_didInsertSyncPointName = 0; | 1338 const int _CommandBufferSyncPointClient_didInsertSyncPointName = 0; |
1290 | 1339 |
| 1340 |
| 1341 |
| 1342 class _CommandBufferSyncPointClientServiceDescription implements service_describ
er.ServiceDescription { |
| 1343 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1344 |
| 1345 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1346 |
| 1347 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1348 } |
| 1349 |
1291 abstract class CommandBufferSyncPointClient { | 1350 abstract class CommandBufferSyncPointClient { |
1292 static const String serviceName = null; | 1351 static const String serviceName = null; |
1293 void didInsertSyncPoint(int syncPoint); | 1352 void didInsertSyncPoint(int syncPoint); |
1294 } | 1353 } |
1295 | 1354 |
1296 | 1355 |
1297 class _CommandBufferSyncPointClientProxyImpl extends bindings.Proxy { | 1356 class _CommandBufferSyncPointClientProxyImpl extends bindings.Proxy { |
1298 _CommandBufferSyncPointClientProxyImpl.fromEndpoint( | 1357 _CommandBufferSyncPointClientProxyImpl.fromEndpoint( |
1299 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1358 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1300 | 1359 |
1301 _CommandBufferSyncPointClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1360 _CommandBufferSyncPointClientProxyImpl.fromHandle(core.MojoHandle handle) : |
1302 super.fromHandle(handle); | 1361 super.fromHandle(handle); |
1303 | 1362 |
1304 _CommandBufferSyncPointClientProxyImpl.unbound() : super.unbound(); | 1363 _CommandBufferSyncPointClientProxyImpl.unbound() : super.unbound(); |
1305 | 1364 |
1306 static _CommandBufferSyncPointClientProxyImpl newFromEndpoint( | 1365 static _CommandBufferSyncPointClientProxyImpl newFromEndpoint( |
1307 core.MojoMessagePipeEndpoint endpoint) { | 1366 core.MojoMessagePipeEndpoint endpoint) { |
1308 assert(endpoint.setDescription("For _CommandBufferSyncPointClientProxyImpl")
); | 1367 assert(endpoint.setDescription("For _CommandBufferSyncPointClientProxyImpl")
); |
1309 return new _CommandBufferSyncPointClientProxyImpl.fromEndpoint(endpoint); | 1368 return new _CommandBufferSyncPointClientProxyImpl.fromEndpoint(endpoint); |
1310 } | 1369 } |
1311 | 1370 |
| 1371 service_describer.ServiceDescription get serviceDescription => |
| 1372 new _CommandBufferSyncPointClientServiceDescription(); |
| 1373 |
1312 void handleResponse(bindings.ServiceMessage message) { | 1374 void handleResponse(bindings.ServiceMessage message) { |
1313 switch (message.header.type) { | 1375 switch (message.header.type) { |
1314 default: | 1376 default: |
1315 proxyError("Unexpected message type: ${message.header.type}"); | 1377 proxyError("Unexpected message type: ${message.header.type}"); |
1316 close(immediate: true); | 1378 close(immediate: true); |
1317 break; | 1379 break; |
1318 } | 1380 } |
1319 } | 1381 } |
1320 | 1382 |
1321 String toString() { | 1383 String toString() { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 assert(_impl == null); | 1507 assert(_impl == null); |
1446 _impl = d; | 1508 _impl = d; |
1447 } | 1509 } |
1448 | 1510 |
1449 String toString() { | 1511 String toString() { |
1450 var superString = super.toString(); | 1512 var superString = super.toString(); |
1451 return "CommandBufferSyncPointClientStub($superString)"; | 1513 return "CommandBufferSyncPointClientStub($superString)"; |
1452 } | 1514 } |
1453 | 1515 |
1454 int get version => 0; | 1516 int get version => 0; |
| 1517 |
| 1518 service_describer.ServiceDescription get serviceDescription => |
| 1519 new _CommandBufferSyncPointClientServiceDescription(); |
1455 } | 1520 } |
1456 | 1521 |
1457 const int _CommandBufferLostContextObserver_didLoseContextName = 0; | 1522 const int _CommandBufferLostContextObserver_didLoseContextName = 0; |
1458 | 1523 |
| 1524 |
| 1525 |
| 1526 class _CommandBufferLostContextObserverServiceDescription implements service_des
criber.ServiceDescription { |
| 1527 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1528 |
| 1529 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1530 |
| 1531 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1532 } |
| 1533 |
1459 abstract class CommandBufferLostContextObserver { | 1534 abstract class CommandBufferLostContextObserver { |
1460 static const String serviceName = null; | 1535 static const String serviceName = null; |
1461 void didLoseContext(int contextLostReason); | 1536 void didLoseContext(int contextLostReason); |
1462 } | 1537 } |
1463 | 1538 |
1464 | 1539 |
1465 class _CommandBufferLostContextObserverProxyImpl extends bindings.Proxy { | 1540 class _CommandBufferLostContextObserverProxyImpl extends bindings.Proxy { |
1466 _CommandBufferLostContextObserverProxyImpl.fromEndpoint( | 1541 _CommandBufferLostContextObserverProxyImpl.fromEndpoint( |
1467 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1542 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1468 | 1543 |
1469 _CommandBufferLostContextObserverProxyImpl.fromHandle(core.MojoHandle handle)
: | 1544 _CommandBufferLostContextObserverProxyImpl.fromHandle(core.MojoHandle handle)
: |
1470 super.fromHandle(handle); | 1545 super.fromHandle(handle); |
1471 | 1546 |
1472 _CommandBufferLostContextObserverProxyImpl.unbound() : super.unbound(); | 1547 _CommandBufferLostContextObserverProxyImpl.unbound() : super.unbound(); |
1473 | 1548 |
1474 static _CommandBufferLostContextObserverProxyImpl newFromEndpoint( | 1549 static _CommandBufferLostContextObserverProxyImpl newFromEndpoint( |
1475 core.MojoMessagePipeEndpoint endpoint) { | 1550 core.MojoMessagePipeEndpoint endpoint) { |
1476 assert(endpoint.setDescription("For _CommandBufferLostContextObserverProxyIm
pl")); | 1551 assert(endpoint.setDescription("For _CommandBufferLostContextObserverProxyIm
pl")); |
1477 return new _CommandBufferLostContextObserverProxyImpl.fromEndpoint(endpoint)
; | 1552 return new _CommandBufferLostContextObserverProxyImpl.fromEndpoint(endpoint)
; |
1478 } | 1553 } |
1479 | 1554 |
| 1555 service_describer.ServiceDescription get serviceDescription => |
| 1556 new _CommandBufferLostContextObserverServiceDescription(); |
| 1557 |
1480 void handleResponse(bindings.ServiceMessage message) { | 1558 void handleResponse(bindings.ServiceMessage message) { |
1481 switch (message.header.type) { | 1559 switch (message.header.type) { |
1482 default: | 1560 default: |
1483 proxyError("Unexpected message type: ${message.header.type}"); | 1561 proxyError("Unexpected message type: ${message.header.type}"); |
1484 close(immediate: true); | 1562 close(immediate: true); |
1485 break; | 1563 break; |
1486 } | 1564 } |
1487 } | 1565 } |
1488 | 1566 |
1489 String toString() { | 1567 String toString() { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 assert(_impl == null); | 1691 assert(_impl == null); |
1614 _impl = d; | 1692 _impl = d; |
1615 } | 1693 } |
1616 | 1694 |
1617 String toString() { | 1695 String toString() { |
1618 var superString = super.toString(); | 1696 var superString = super.toString(); |
1619 return "CommandBufferLostContextObserverStub($superString)"; | 1697 return "CommandBufferLostContextObserverStub($superString)"; |
1620 } | 1698 } |
1621 | 1699 |
1622 int get version => 0; | 1700 int get version => 0; |
| 1701 |
| 1702 service_describer.ServiceDescription get serviceDescription => |
| 1703 new _CommandBufferLostContextObserverServiceDescription(); |
1623 } | 1704 } |
1624 | 1705 |
1625 const int _CommandBuffer_initializeName = 0; | 1706 const int _CommandBuffer_initializeName = 0; |
1626 const int _CommandBuffer_setGetBufferName = 1; | 1707 const int _CommandBuffer_setGetBufferName = 1; |
1627 const int _CommandBuffer_flushName = 2; | 1708 const int _CommandBuffer_flushName = 2; |
1628 const int _CommandBuffer_makeProgressName = 3; | 1709 const int _CommandBuffer_makeProgressName = 3; |
1629 const int _CommandBuffer_registerTransferBufferName = 4; | 1710 const int _CommandBuffer_registerTransferBufferName = 4; |
1630 const int _CommandBuffer_destroyTransferBufferName = 5; | 1711 const int _CommandBuffer_destroyTransferBufferName = 5; |
1631 const int _CommandBuffer_insertSyncPointName = 6; | 1712 const int _CommandBuffer_insertSyncPointName = 6; |
1632 const int _CommandBuffer_retireSyncPointName = 7; | 1713 const int _CommandBuffer_retireSyncPointName = 7; |
1633 const int _CommandBuffer_echoName = 8; | 1714 const int _CommandBuffer_echoName = 8; |
1634 | 1715 |
| 1716 |
| 1717 |
| 1718 class _CommandBufferServiceDescription implements service_describer.ServiceDescr
iption { |
| 1719 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1720 |
| 1721 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1722 |
| 1723 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1724 } |
| 1725 |
1635 abstract class CommandBuffer { | 1726 abstract class CommandBuffer { |
1636 static const String serviceName = null; | 1727 static const String serviceName = null; |
1637 void initialize(Object syncClient, Object syncPointClient, Object lostObserver
, core.MojoSharedBuffer sharedState); | 1728 void initialize(Object syncClient, Object syncPointClient, Object lostObserver
, core.MojoSharedBuffer sharedState); |
1638 void setGetBuffer(int buffer); | 1729 void setGetBuffer(int buffer); |
1639 void flush(int putOffset); | 1730 void flush(int putOffset); |
1640 void makeProgress(int lastGetOffset); | 1731 void makeProgress(int lastGetOffset); |
1641 void registerTransferBuffer(int id, core.MojoSharedBuffer transferBuffer, int
size); | 1732 void registerTransferBuffer(int id, core.MojoSharedBuffer transferBuffer, int
size); |
1642 void destroyTransferBuffer(int id); | 1733 void destroyTransferBuffer(int id); |
1643 void insertSyncPoint(bool retire); | 1734 void insertSyncPoint(bool retire); |
1644 void retireSyncPoint(int syncPoint); | 1735 void retireSyncPoint(int syncPoint); |
1645 dynamic echo([Function responseFactory = null]); | 1736 dynamic echo([Function responseFactory = null]); |
1646 } | 1737 } |
1647 | 1738 |
1648 | 1739 |
1649 class _CommandBufferProxyImpl extends bindings.Proxy { | 1740 class _CommandBufferProxyImpl extends bindings.Proxy { |
1650 _CommandBufferProxyImpl.fromEndpoint( | 1741 _CommandBufferProxyImpl.fromEndpoint( |
1651 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1742 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1652 | 1743 |
1653 _CommandBufferProxyImpl.fromHandle(core.MojoHandle handle) : | 1744 _CommandBufferProxyImpl.fromHandle(core.MojoHandle handle) : |
1654 super.fromHandle(handle); | 1745 super.fromHandle(handle); |
1655 | 1746 |
1656 _CommandBufferProxyImpl.unbound() : super.unbound(); | 1747 _CommandBufferProxyImpl.unbound() : super.unbound(); |
1657 | 1748 |
1658 static _CommandBufferProxyImpl newFromEndpoint( | 1749 static _CommandBufferProxyImpl newFromEndpoint( |
1659 core.MojoMessagePipeEndpoint endpoint) { | 1750 core.MojoMessagePipeEndpoint endpoint) { |
1660 assert(endpoint.setDescription("For _CommandBufferProxyImpl")); | 1751 assert(endpoint.setDescription("For _CommandBufferProxyImpl")); |
1661 return new _CommandBufferProxyImpl.fromEndpoint(endpoint); | 1752 return new _CommandBufferProxyImpl.fromEndpoint(endpoint); |
1662 } | 1753 } |
1663 | 1754 |
| 1755 service_describer.ServiceDescription get serviceDescription => |
| 1756 new _CommandBufferServiceDescription(); |
| 1757 |
1664 void handleResponse(bindings.ServiceMessage message) { | 1758 void handleResponse(bindings.ServiceMessage message) { |
1665 switch (message.header.type) { | 1759 switch (message.header.type) { |
1666 case _CommandBuffer_echoName: | 1760 case _CommandBuffer_echoName: |
1667 var r = CommandBufferEchoResponseParams.deserialize( | 1761 var r = CommandBufferEchoResponseParams.deserialize( |
1668 message.payload); | 1762 message.payload); |
1669 if (!message.header.hasRequestId) { | 1763 if (!message.header.hasRequestId) { |
1670 proxyError("Expected a message with a valid request Id."); | 1764 proxyError("Expected a message with a valid request Id."); |
1671 return; | 1765 return; |
1672 } | 1766 } |
1673 Completer c = completerMap[message.header.requestId]; | 1767 Completer c = completerMap[message.header.requestId]; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1954 assert(_impl == null); | 2048 assert(_impl == null); |
1955 _impl = d; | 2049 _impl = d; |
1956 } | 2050 } |
1957 | 2051 |
1958 String toString() { | 2052 String toString() { |
1959 var superString = super.toString(); | 2053 var superString = super.toString(); |
1960 return "CommandBufferStub($superString)"; | 2054 return "CommandBufferStub($superString)"; |
1961 } | 2055 } |
1962 | 2056 |
1963 int get version => 0; | 2057 int get version => 0; |
| 2058 |
| 2059 service_describer.ServiceDescription get serviceDescription => |
| 2060 new _CommandBufferServiceDescription(); |
1964 } | 2061 } |
1965 | 2062 |
1966 | 2063 |
| 2064 |
OLD | NEW |