Flutter Engine
The Flutter Engine
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
5#include "flutter/lib/ui/painting/engine_layer.h"
6
7#include <utility>
8
9#include "flutter/lib/ui/ui_dart_state.h"
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
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, FlutterGpuTestClass)
Definition: ref_ptr.h:256