Flutter Engine
The Flutter Engine
lib
ui
dart_wrapper.h
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
#ifndef FLUTTER_LIB_UI_DART_WRAPPER_H_
6
#define FLUTTER_LIB_UI_DART_WRAPPER_H_
7
8
#include "flutter/fml/memory/ref_counted.h"
9
#include "
third_party/tonic/dart_wrappable.h
"
10
11
namespace
flutter
{
12
13
template
<
typename
T>
14
class
RefCountedDartWrappable
:
public
fml::RefCountedThreadSafe
<T>,
15
public
tonic::DartWrappable
{
16
public
:
17
virtual
void
RetainDartWrappableReference
()
const override
{
18
fml::RefCountedThreadSafe<T>::AddRef
();
19
}
20
21
virtual
void
ReleaseDartWrappableReference
()
const override
{
22
fml::RefCountedThreadSafe<T>::Release
();
23
}
24
};
25
26
}
// namespace flutter
27
28
#endif
// FLUTTER_LIB_UI_DART_WRAPPER_H_
flutter::RefCountedDartWrappable
Definition:
dart_wrapper.h:15
flutter::RefCountedDartWrappable::ReleaseDartWrappableReference
virtual void ReleaseDartWrappableReference() const override
Definition:
dart_wrapper.h:21
flutter::RefCountedDartWrappable::RetainDartWrappableReference
virtual void RetainDartWrappableReference() const override
Definition:
dart_wrapper.h:17
fml::RefCountedThreadSafe
Definition:
ref_counted.h:63
fml::RefCountedThreadSafe::Release
void Release() const
Definition:
ref_counted.h:71
fml::internal::RefCountedThreadSafeBase::AddRef
void AddRef() const
Definition:
ref_counted_internal.h:21
tonic::DartWrappable
Definition:
dart_wrappable.h:22
dart_wrappable.h
flutter
Definition:
asset_manager.cc:10
Generated on Sun Jun 23 2024 21:55:05 for Flutter Engine by
1.9.4