Flutter Engine
codec.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/ui/painting/codec.h"
6 
12 
13 using tonic::DartInvoke;
15 using tonic::ToDart;
16 
17 namespace flutter {
18 
19 IMPLEMENT_WRAPPERTYPEINFO(ui, Codec);
20 
21 #define FOR_EACH_BINDING(V) \
22  V(Codec, getNextFrame) \
23  V(Codec, frameCount) \
24  V(Codec, repetitionCount) \
25  V(Codec, dispose)
26 
28 
29 void Codec::dispose() {
30  ClearDartWrapper();
31 }
32 
35 }
36 
37 } // namespace flutter
#define DART_NATIVE_CALLBACK(CLASS, METHOD)
Dart_Handle DartInvoke(Dart_Handle closure, std::initializer_list< Dart_Handle > args)
Definition: dart_invoke.cc:20
IMPLEMENT_WRAPPERTYPEINFO(ui, Scene)
static void RegisterNatives(tonic::DartLibraryNatives *natives)
Definition: codec.cc:33
void Register(std::initializer_list< Entry > entries)
#define FOR_EACH_BINDING(V)
Definition: codec.cc:21
#define DART_REGISTER_NATIVE(CLASS, METHOD)
Dart_Handle ToDart(const T &object)