Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions
smoketest.h File Reference
#include <cstdint>
#include "flutter/lib/gpu/export.h"
#include "flutter/lib/ui/dart_wrapper.h"
#include "third_party/dart/runtime/include/dart_api.h"
#include "third_party/tonic/dart_state.h"
#include "third_party/tonic/dart_wrapper_info.h"

Go to the source code of this file.

Classes

class  flutter::FlutterGpuTestClass
 

Namespaces

namespace  flutter
 

Functions

FLUTTER_GPU_EXPORT uint32_t InternalFlutterGpuTestProc ()
 
FLUTTER_GPU_EXPORT Dart_Handle InternalFlutterGpuTestProcWithCallback (Dart_Handle callback)
 
FLUTTER_GPU_EXPORT void InternalFlutterGpuTestClass_Create (Dart_Handle wrapper)
 
FLUTTER_GPU_EXPORT void InternalFlutterGpuTestClass_Method (flutter::FlutterGpuTestClass *self, int something)
 

Function Documentation

◆ InternalFlutterGpuTestClass_Create()

FLUTTER_GPU_EXPORT void InternalFlutterGpuTestClass_Create ( Dart_Handle  wrapper)

Definition at line 48 of file smoketest.cc.

48 {
49 auto res = fml::MakeRefCounted<flutter::FlutterGpuTestClass>();
50 res->AssociateWithDartWrapper(wrapper);
51 FML_LOG(INFO) << "FlutterGpuTestClass Wrapped.";
52}
#define FML_LOG(severity)
Definition: logging.h:82

◆ InternalFlutterGpuTestClass_Method()

FLUTTER_GPU_EXPORT void InternalFlutterGpuTestClass_Method ( flutter::FlutterGpuTestClass self,
int  something 
)

Definition at line 55 of file smoketest.cc.

56 {
57 FML_LOG(INFO) << "Something: " << something;
58}

◆ InternalFlutterGpuTestProc()

FLUTTER_GPU_EXPORT uint32_t InternalFlutterGpuTestProc ( )

Exports

Definition at line 31 of file smoketest.cc.

31 {
32 return 1;
33}

◆ InternalFlutterGpuTestProcWithCallback()

FLUTTER_GPU_EXPORT Dart_Handle InternalFlutterGpuTestProcWithCallback ( Dart_Handle  callback)

Definition at line 36 of file smoketest.cc.

36 {
39 return tonic::ToDart("Callback must be a function");
40 }
41
43
44 return Dart_Null();
45}
static void ThrowIfUIOperationsProhibited()
DART_EXPORT Dart_Handle Dart_Null(void)
DART_EXPORT bool Dart_IsClosure(Dart_Handle object)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_Handle ToDart(const T &object)
Dart_Handle DartInvoke(Dart_Handle closure, std::initializer_list< Dart_Handle > args)
Definition: dart_invoke.cc:20