Flutter Engine
The Flutter Engine
smoketest.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/lib/gpu/smoketest.h"
6#include "flutter/fml/memory/ref_ptr.h"
7#include "flutter/lib/ui/dart_wrapper.h"
8#include "flutter/lib/ui/ui_dart_state.h"
9#include "third_party/dart/runtime/include/dart_api.h"
15
16namespace flutter {
17
18// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
20
21// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
23
24} // namespace flutter
25
26//----------------------------------------------------------------------------
27/// Exports
28///
29
30// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
32 return 1;
33}
34
35// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
39 return tonic::ToDart("Callback must be a function");
40 }
41
43
44 return Dart_Null();
45}
46
47// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
49 auto res = fml::MakeRefCounted<flutter::FlutterGpuTestClass>();
50 res->AssociateWithDartWrapper(wrapper);
51 FML_LOG(INFO) << "FlutterGpuTestClass Wrapped.";
52}
53
54// TODO(131346): Remove this once we migrate the Dart GPU API into this space.
56 int something) {
57 FML_LOG(INFO) << "Something: " << something;
58}
static void ThrowIfUIOperationsProhibited()
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
DART_EXPORT Dart_Handle Dart_Null(void)
DART_EXPORT bool Dart_IsClosure(Dart_Handle object)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_LOG(severity)
Definition: logging.h:82
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, FlutterGpuTestClass)
Dart_Handle ToDart(const T &object)
Dart_Handle DartInvoke(Dart_Handle closure, std::initializer_list< Dart_Handle > args)
Definition: dart_invoke.cc:20
Dart_Handle InternalFlutterGpuTestProcWithCallback(Dart_Handle callback)
Definition: smoketest.cc:36
void InternalFlutterGpuTestClass_Create(Dart_Handle wrapper)
Definition: smoketest.cc:48
uint32_t InternalFlutterGpuTestProc()
Definition: smoketest.cc:31
void InternalFlutterGpuTestClass_Method(flutter::FlutterGpuTestClass *self, int something)
Definition: smoketest.cc:55