Flutter Engine
 
Loading...
Searching...
No Matches
engine_layer.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
6
7#include <utility>
8
14
15namespace flutter {
16
18
19EngineLayer::EngineLayer(std::shared_ptr<flutter::ContainerLayer> layer)
20 : layer_(std::move(layer)) {}
21
22EngineLayer::~EngineLayer() = default;
23
24void EngineLayer::dispose() {
25 layer_.reset();
26 ClearDartWrapper();
27}
28
29} // namespace flutter
#define IMPLEMENT_WRAPPERTYPEINFO(LibraryName, ClassName)
Definition ref_ptr.h:261