Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Functions
smoketest.cc File Reference
#include "flutter/lib/gpu/smoketest.h"
#include "flutter/fml/memory/ref_ptr.h"
#include "flutter/lib/ui/dart_wrapper.h"
#include "flutter/lib/ui/ui_dart_state.h"
#include "third_party/dart/runtime/include/dart_api.h"
#include "third_party/tonic/converter/dart_converter.h"
#include "third_party/tonic/dart_state.h"
#include "third_party/tonic/dart_wrappable.h"
#include "third_party/tonic/dart_wrapper_info.h"
#include "third_party/tonic/logging/dart_invoke.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 

Functions

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

Function Documentation

◆ InternalFlutterGpuTestClass_Create()

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()

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()

uint32_t InternalFlutterGpuTestProc ( )

Exports

Definition at line 31 of file smoketest.cc.

31 {
32 return 1;
33}

◆ InternalFlutterGpuTestProcWithCallback()

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)