| 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]) => null; |
| 1144 |
| 1145 dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =
> |
| 1146 null; |
| 1147 |
| 1148 dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
| 1149 } |
| 1150 |
| 1107 abstract class CommandBufferSyncClient { | 1151 abstract class CommandBufferSyncClient { |
| 1108 static const String serviceName = null; | 1152 static const String serviceName = null; |
| 1109 void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabi
lities); | 1153 void didInitialize(bool success, gpu_capabilities_mojom.GpuCapabilities capabi
lities); |
| 1110 void didMakeProgress(CommandBufferState state); | 1154 void didMakeProgress(CommandBufferState state); |
| 1111 } | 1155 } |
| 1112 | 1156 |
| 1113 | 1157 |
| 1114 class _CommandBufferSyncClientProxyImpl extends bindings.Proxy { | 1158 class _CommandBufferSyncClientProxyImpl extends bindings.Proxy { |
| 1115 _CommandBufferSyncClientProxyImpl.fromEndpoint( | 1159 _CommandBufferSyncClientProxyImpl.fromEndpoint( |
| 1116 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1160 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1117 | 1161 |
| 1118 _CommandBufferSyncClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1162 _CommandBufferSyncClientProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1119 super.fromHandle(handle); | 1163 super.fromHandle(handle); |
| 1120 | 1164 |
| 1121 _CommandBufferSyncClientProxyImpl.unbound() : super.unbound(); | 1165 _CommandBufferSyncClientProxyImpl.unbound() : super.unbound(); |
| 1122 | 1166 |
| 1123 static _CommandBufferSyncClientProxyImpl newFromEndpoint( | 1167 static _CommandBufferSyncClientProxyImpl newFromEndpoint( |
| 1124 core.MojoMessagePipeEndpoint endpoint) { | 1168 core.MojoMessagePipeEndpoint endpoint) { |
| 1125 assert(endpoint.setDescription("For _CommandBufferSyncClientProxyImpl")); | 1169 assert(endpoint.setDescription("For _CommandBufferSyncClientProxyImpl")); |
| 1126 return new _CommandBufferSyncClientProxyImpl.fromEndpoint(endpoint); | 1170 return new _CommandBufferSyncClientProxyImpl.fromEndpoint(endpoint); |
| 1127 } | 1171 } |
| 1128 | 1172 |
| 1173 service_describer.ServiceDescription get serviceDescription => |
| 1174 new _CommandBufferSyncClientServiceDescription(); |
| 1175 |
| 1129 void handleResponse(bindings.ServiceMessage message) { | 1176 void handleResponse(bindings.ServiceMessage message) { |
| 1130 switch (message.header.type) { | 1177 switch (message.header.type) { |
| 1131 default: | 1178 default: |
| 1132 proxyError("Unexpected message type: ${message.header.type}"); | 1179 proxyError("Unexpected message type: ${message.header.type}"); |
| 1133 close(immediate: true); | 1180 close(immediate: true); |
| 1134 break; | 1181 break; |
| 1135 } | 1182 } |
| 1136 } | 1183 } |
| 1137 | 1184 |
| 1138 String toString() { | 1185 String toString() { |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 assert(_impl == null); | 1324 assert(_impl == null); |
| 1278 _impl = d; | 1325 _impl = d; |
| 1279 } | 1326 } |
| 1280 | 1327 |
| 1281 String toString() { | 1328 String toString() { |
| 1282 var superString = super.toString(); | 1329 var superString = super.toString(); |
| 1283 return "CommandBufferSyncClientStub($superString)"; | 1330 return "CommandBufferSyncClientStub($superString)"; |
| 1284 } | 1331 } |
| 1285 | 1332 |
| 1286 int get version => 0; | 1333 int get version => 0; |
| 1334 |
| 1335 service_describer.ServiceDescription get serviceDescription => |
| 1336 new _CommandBufferSyncClientServiceDescription(); |
| 1287 } | 1337 } |
| 1288 | 1338 |
| 1289 const int _CommandBufferSyncPointClient_didInsertSyncPointName = 0; | 1339 const int _CommandBufferSyncPointClient_didInsertSyncPointName = 0; |
| 1290 | 1340 |
| 1341 |
| 1342 |
| 1343 class _CommandBufferSyncPointClientServiceDescription implements service_describ
er.ServiceDescription { |
| 1344 dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
| 1345 |
| 1346 dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =
> |
| 1347 null; |
| 1348 |
| 1349 dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
| 1350 } |
| 1351 |
| 1291 abstract class CommandBufferSyncPointClient { | 1352 abstract class CommandBufferSyncPointClient { |
| 1292 static const String serviceName = null; | 1353 static const String serviceName = null; |
| 1293 void didInsertSyncPoint(int syncPoint); | 1354 void didInsertSyncPoint(int syncPoint); |
| 1294 } | 1355 } |
| 1295 | 1356 |
| 1296 | 1357 |
| 1297 class _CommandBufferSyncPointClientProxyImpl extends bindings.Proxy { | 1358 class _CommandBufferSyncPointClientProxyImpl extends bindings.Proxy { |
| 1298 _CommandBufferSyncPointClientProxyImpl.fromEndpoint( | 1359 _CommandBufferSyncPointClientProxyImpl.fromEndpoint( |
| 1299 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1360 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1300 | 1361 |
| 1301 _CommandBufferSyncPointClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1362 _CommandBufferSyncPointClientProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1302 super.fromHandle(handle); | 1363 super.fromHandle(handle); |
| 1303 | 1364 |
| 1304 _CommandBufferSyncPointClientProxyImpl.unbound() : super.unbound(); | 1365 _CommandBufferSyncPointClientProxyImpl.unbound() : super.unbound(); |
| 1305 | 1366 |
| 1306 static _CommandBufferSyncPointClientProxyImpl newFromEndpoint( | 1367 static _CommandBufferSyncPointClientProxyImpl newFromEndpoint( |
| 1307 core.MojoMessagePipeEndpoint endpoint) { | 1368 core.MojoMessagePipeEndpoint endpoint) { |
| 1308 assert(endpoint.setDescription("For _CommandBufferSyncPointClientProxyImpl")
); | 1369 assert(endpoint.setDescription("For _CommandBufferSyncPointClientProxyImpl")
); |
| 1309 return new _CommandBufferSyncPointClientProxyImpl.fromEndpoint(endpoint); | 1370 return new _CommandBufferSyncPointClientProxyImpl.fromEndpoint(endpoint); |
| 1310 } | 1371 } |
| 1311 | 1372 |
| 1373 service_describer.ServiceDescription get serviceDescription => |
| 1374 new _CommandBufferSyncPointClientServiceDescription(); |
| 1375 |
| 1312 void handleResponse(bindings.ServiceMessage message) { | 1376 void handleResponse(bindings.ServiceMessage message) { |
| 1313 switch (message.header.type) { | 1377 switch (message.header.type) { |
| 1314 default: | 1378 default: |
| 1315 proxyError("Unexpected message type: ${message.header.type}"); | 1379 proxyError("Unexpected message type: ${message.header.type}"); |
| 1316 close(immediate: true); | 1380 close(immediate: true); |
| 1317 break; | 1381 break; |
| 1318 } | 1382 } |
| 1319 } | 1383 } |
| 1320 | 1384 |
| 1321 String toString() { | 1385 String toString() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 assert(_impl == null); | 1509 assert(_impl == null); |
| 1446 _impl = d; | 1510 _impl = d; |
| 1447 } | 1511 } |
| 1448 | 1512 |
| 1449 String toString() { | 1513 String toString() { |
| 1450 var superString = super.toString(); | 1514 var superString = super.toString(); |
| 1451 return "CommandBufferSyncPointClientStub($superString)"; | 1515 return "CommandBufferSyncPointClientStub($superString)"; |
| 1452 } | 1516 } |
| 1453 | 1517 |
| 1454 int get version => 0; | 1518 int get version => 0; |
| 1519 |
| 1520 service_describer.ServiceDescription get serviceDescription => |
| 1521 new _CommandBufferSyncPointClientServiceDescription(); |
| 1455 } | 1522 } |
| 1456 | 1523 |
| 1457 const int _CommandBufferLostContextObserver_didLoseContextName = 0; | 1524 const int _CommandBufferLostContextObserver_didLoseContextName = 0; |
| 1458 | 1525 |
| 1526 |
| 1527 |
| 1528 class _CommandBufferLostContextObserverServiceDescription implements service_des
criber.ServiceDescription { |
| 1529 dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
| 1530 |
| 1531 dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =
> |
| 1532 null; |
| 1533 |
| 1534 dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
| 1535 } |
| 1536 |
| 1459 abstract class CommandBufferLostContextObserver { | 1537 abstract class CommandBufferLostContextObserver { |
| 1460 static const String serviceName = null; | 1538 static const String serviceName = null; |
| 1461 void didLoseContext(int contextLostReason); | 1539 void didLoseContext(int contextLostReason); |
| 1462 } | 1540 } |
| 1463 | 1541 |
| 1464 | 1542 |
| 1465 class _CommandBufferLostContextObserverProxyImpl extends bindings.Proxy { | 1543 class _CommandBufferLostContextObserverProxyImpl extends bindings.Proxy { |
| 1466 _CommandBufferLostContextObserverProxyImpl.fromEndpoint( | 1544 _CommandBufferLostContextObserverProxyImpl.fromEndpoint( |
| 1467 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1545 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1468 | 1546 |
| 1469 _CommandBufferLostContextObserverProxyImpl.fromHandle(core.MojoHandle handle)
: | 1547 _CommandBufferLostContextObserverProxyImpl.fromHandle(core.MojoHandle handle)
: |
| 1470 super.fromHandle(handle); | 1548 super.fromHandle(handle); |
| 1471 | 1549 |
| 1472 _CommandBufferLostContextObserverProxyImpl.unbound() : super.unbound(); | 1550 _CommandBufferLostContextObserverProxyImpl.unbound() : super.unbound(); |
| 1473 | 1551 |
| 1474 static _CommandBufferLostContextObserverProxyImpl newFromEndpoint( | 1552 static _CommandBufferLostContextObserverProxyImpl newFromEndpoint( |
| 1475 core.MojoMessagePipeEndpoint endpoint) { | 1553 core.MojoMessagePipeEndpoint endpoint) { |
| 1476 assert(endpoint.setDescription("For _CommandBufferLostContextObserverProxyIm
pl")); | 1554 assert(endpoint.setDescription("For _CommandBufferLostContextObserverProxyIm
pl")); |
| 1477 return new _CommandBufferLostContextObserverProxyImpl.fromEndpoint(endpoint)
; | 1555 return new _CommandBufferLostContextObserverProxyImpl.fromEndpoint(endpoint)
; |
| 1478 } | 1556 } |
| 1479 | 1557 |
| 1558 service_describer.ServiceDescription get serviceDescription => |
| 1559 new _CommandBufferLostContextObserverServiceDescription(); |
| 1560 |
| 1480 void handleResponse(bindings.ServiceMessage message) { | 1561 void handleResponse(bindings.ServiceMessage message) { |
| 1481 switch (message.header.type) { | 1562 switch (message.header.type) { |
| 1482 default: | 1563 default: |
| 1483 proxyError("Unexpected message type: ${message.header.type}"); | 1564 proxyError("Unexpected message type: ${message.header.type}"); |
| 1484 close(immediate: true); | 1565 close(immediate: true); |
| 1485 break; | 1566 break; |
| 1486 } | 1567 } |
| 1487 } | 1568 } |
| 1488 | 1569 |
| 1489 String toString() { | 1570 String toString() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 assert(_impl == null); | 1694 assert(_impl == null); |
| 1614 _impl = d; | 1695 _impl = d; |
| 1615 } | 1696 } |
| 1616 | 1697 |
| 1617 String toString() { | 1698 String toString() { |
| 1618 var superString = super.toString(); | 1699 var superString = super.toString(); |
| 1619 return "CommandBufferLostContextObserverStub($superString)"; | 1700 return "CommandBufferLostContextObserverStub($superString)"; |
| 1620 } | 1701 } |
| 1621 | 1702 |
| 1622 int get version => 0; | 1703 int get version => 0; |
| 1704 |
| 1705 service_describer.ServiceDescription get serviceDescription => |
| 1706 new _CommandBufferLostContextObserverServiceDescription(); |
| 1623 } | 1707 } |
| 1624 | 1708 |
| 1625 const int _CommandBuffer_initializeName = 0; | 1709 const int _CommandBuffer_initializeName = 0; |
| 1626 const int _CommandBuffer_setGetBufferName = 1; | 1710 const int _CommandBuffer_setGetBufferName = 1; |
| 1627 const int _CommandBuffer_flushName = 2; | 1711 const int _CommandBuffer_flushName = 2; |
| 1628 const int _CommandBuffer_makeProgressName = 3; | 1712 const int _CommandBuffer_makeProgressName = 3; |
| 1629 const int _CommandBuffer_registerTransferBufferName = 4; | 1713 const int _CommandBuffer_registerTransferBufferName = 4; |
| 1630 const int _CommandBuffer_destroyTransferBufferName = 5; | 1714 const int _CommandBuffer_destroyTransferBufferName = 5; |
| 1631 const int _CommandBuffer_insertSyncPointName = 6; | 1715 const int _CommandBuffer_insertSyncPointName = 6; |
| 1632 const int _CommandBuffer_retireSyncPointName = 7; | 1716 const int _CommandBuffer_retireSyncPointName = 7; |
| 1633 const int _CommandBuffer_echoName = 8; | 1717 const int _CommandBuffer_echoName = 8; |
| 1634 | 1718 |
| 1719 |
| 1720 |
| 1721 class _CommandBufferServiceDescription implements service_describer.ServiceDescr
iption { |
| 1722 dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
| 1723 |
| 1724 dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =
> |
| 1725 null; |
| 1726 |
| 1727 dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
| 1728 } |
| 1729 |
| 1635 abstract class CommandBuffer { | 1730 abstract class CommandBuffer { |
| 1636 static const String serviceName = null; | 1731 static const String serviceName = null; |
| 1637 void initialize(Object syncClient, Object syncPointClient, Object lostObserver
, core.MojoSharedBuffer sharedState); | 1732 void initialize(Object syncClient, Object syncPointClient, Object lostObserver
, core.MojoSharedBuffer sharedState); |
| 1638 void setGetBuffer(int buffer); | 1733 void setGetBuffer(int buffer); |
| 1639 void flush(int putOffset); | 1734 void flush(int putOffset); |
| 1640 void makeProgress(int lastGetOffset); | 1735 void makeProgress(int lastGetOffset); |
| 1641 void registerTransferBuffer(int id, core.MojoSharedBuffer transferBuffer, int
size); | 1736 void registerTransferBuffer(int id, core.MojoSharedBuffer transferBuffer, int
size); |
| 1642 void destroyTransferBuffer(int id); | 1737 void destroyTransferBuffer(int id); |
| 1643 void insertSyncPoint(bool retire); | 1738 void insertSyncPoint(bool retire); |
| 1644 void retireSyncPoint(int syncPoint); | 1739 void retireSyncPoint(int syncPoint); |
| 1645 dynamic echo([Function responseFactory = null]); | 1740 dynamic echo([Function responseFactory = null]); |
| 1646 } | 1741 } |
| 1647 | 1742 |
| 1648 | 1743 |
| 1649 class _CommandBufferProxyImpl extends bindings.Proxy { | 1744 class _CommandBufferProxyImpl extends bindings.Proxy { |
| 1650 _CommandBufferProxyImpl.fromEndpoint( | 1745 _CommandBufferProxyImpl.fromEndpoint( |
| 1651 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1746 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1652 | 1747 |
| 1653 _CommandBufferProxyImpl.fromHandle(core.MojoHandle handle) : | 1748 _CommandBufferProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1654 super.fromHandle(handle); | 1749 super.fromHandle(handle); |
| 1655 | 1750 |
| 1656 _CommandBufferProxyImpl.unbound() : super.unbound(); | 1751 _CommandBufferProxyImpl.unbound() : super.unbound(); |
| 1657 | 1752 |
| 1658 static _CommandBufferProxyImpl newFromEndpoint( | 1753 static _CommandBufferProxyImpl newFromEndpoint( |
| 1659 core.MojoMessagePipeEndpoint endpoint) { | 1754 core.MojoMessagePipeEndpoint endpoint) { |
| 1660 assert(endpoint.setDescription("For _CommandBufferProxyImpl")); | 1755 assert(endpoint.setDescription("For _CommandBufferProxyImpl")); |
| 1661 return new _CommandBufferProxyImpl.fromEndpoint(endpoint); | 1756 return new _CommandBufferProxyImpl.fromEndpoint(endpoint); |
| 1662 } | 1757 } |
| 1663 | 1758 |
| 1759 service_describer.ServiceDescription get serviceDescription => |
| 1760 new _CommandBufferServiceDescription(); |
| 1761 |
| 1664 void handleResponse(bindings.ServiceMessage message) { | 1762 void handleResponse(bindings.ServiceMessage message) { |
| 1665 switch (message.header.type) { | 1763 switch (message.header.type) { |
| 1666 case _CommandBuffer_echoName: | 1764 case _CommandBuffer_echoName: |
| 1667 var r = CommandBufferEchoResponseParams.deserialize( | 1765 var r = CommandBufferEchoResponseParams.deserialize( |
| 1668 message.payload); | 1766 message.payload); |
| 1669 if (!message.header.hasRequestId) { | 1767 if (!message.header.hasRequestId) { |
| 1670 proxyError("Expected a message with a valid request Id."); | 1768 proxyError("Expected a message with a valid request Id."); |
| 1671 return; | 1769 return; |
| 1672 } | 1770 } |
| 1673 Completer c = completerMap[message.header.requestId]; | 1771 Completer c = completerMap[message.header.requestId]; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1954 assert(_impl == null); | 2052 assert(_impl == null); |
| 1955 _impl = d; | 2053 _impl = d; |
| 1956 } | 2054 } |
| 1957 | 2055 |
| 1958 String toString() { | 2056 String toString() { |
| 1959 var superString = super.toString(); | 2057 var superString = super.toString(); |
| 1960 return "CommandBufferStub($superString)"; | 2058 return "CommandBufferStub($superString)"; |
| 1961 } | 2059 } |
| 1962 | 2060 |
| 1963 int get version => 0; | 2061 int get version => 0; |
| 2062 |
| 2063 service_describer.ServiceDescription get serviceDescription => |
| 2064 new _CommandBufferServiceDescription(); |
| 1964 } | 2065 } |
| 1965 | 2066 |
| 1966 | 2067 |
| 2068 |
| 2069 |
| OLD | NEW |