| Index: runtime/embedders/openglui/common/extension.cc
|
| diff --git a/runtime/embedders/openglui/common/extension.cc b/runtime/embedders/openglui/common/extension.cc
|
| index 3e1885eb34c7a7f537c6ae4f8ee92f1df024b469..6304c3b23c74ae870e3a8c7ef673e0555fdb3da0 100644
|
| --- a/runtime/embedders/openglui/common/extension.cc
|
| +++ b/runtime/embedders/openglui/common/extension.cc
|
| @@ -14,6 +14,7 @@
|
| #include "embedders/openglui/common/log.h"
|
| #include "embedders/openglui/common/opengl.h"
|
| #include "include/dart_api.h"
|
| +#include "include/dart_native_api.h"
|
|
|
| Dart_Handle HandleError(Dart_Handle handle) {
|
| if (Dart_IsError(handle)) Dart_PropagateError(handle);
|
| @@ -861,13 +862,13 @@ uint8_t* RandomArray(int seed, int length) {
|
| void WrappedRandomArray(Dart_Port dest_port_id,
|
| Dart_Port reply_port_id,
|
| Dart_CObject* message) {
|
| - if (message->type == Dart_CObject::kArray &&
|
| + if (message->type == Dart_CObject_kArray &&
|
| 2 == message->value.as_array.length) {
|
| // Use .as_array and .as_int32 to access the data in the Dart_CObject.
|
| Dart_CObject* param0 = message->value.as_array.values[0];
|
| Dart_CObject* param1 = message->value.as_array.values[1];
|
| - if (param0->type == Dart_CObject::kInt32 &&
|
| - param1->type == Dart_CObject::kInt32) {
|
| + if (param0->type == Dart_CObject_kInt32 &&
|
| + param1->type == Dart_CObject_kInt32) {
|
| int length = param0->value.as_int32;
|
| int seed = param1->value.as_int32;
|
|
|
| @@ -875,8 +876,8 @@ void WrappedRandomArray(Dart_Port dest_port_id,
|
|
|
| if (values != NULL) {
|
| Dart_CObject result;
|
| - result.type = Dart_CObject::kTypedData;
|
| - result.value.as_typed_data.type = Dart_CObject::kUint8Array;
|
| + result.type = Dart_CObject_kTypedData;
|
| + result.value.as_typed_data.type = Dart_TypedData_kUint8;
|
| result.value.as_typed_data.values = values;
|
| result.value.as_typed_data.length = length;
|
| Dart_PostCObject(reply_port_id, &result);
|
| @@ -888,7 +889,7 @@ void WrappedRandomArray(Dart_Port dest_port_id,
|
| }
|
| }
|
| Dart_CObject result;
|
| - result.type = Dart_CObject::kNull;
|
| + result.type = Dart_CObject_kNull;
|
| Dart_PostCObject(reply_port_id, &result);
|
| }
|
|
|
|
|