Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.
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)
#define IMPLEMENT_WRAPPERTYPEINFO(LibraryName, ClassName)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_LOG(severity)
Definition logging.h:82
Dart_Handle ToDart(const T &object)
Dart_Handle DartInvoke(Dart_Handle closure, std::initializer_list< Dart_Handle > args)
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