mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
f2dbeb8aa7
This reverts commit6ea69a0d43. On top of the revert, it reverted a commit in the PR: https://github.com/flutter/engine/pull/14024 This reverts commitea67e5b0b9.
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "flutter/lib/ui/painting/engine_layer.h"
|
|
|
|
#include "third_party/tonic/converter/dart_converter.h"
|
|
#include "third_party/tonic/dart_args.h"
|
|
#include "third_party/tonic/dart_binding_macros.h"
|
|
#include "third_party/tonic/dart_library_natives.h"
|
|
|
|
using tonic::ToDart;
|
|
|
|
namespace flutter {
|
|
|
|
EngineLayer::EngineLayer(std::shared_ptr<flutter::ContainerLayer> layer)
|
|
: layer_(layer) {}
|
|
|
|
EngineLayer::~EngineLayer() = default;
|
|
|
|
size_t EngineLayer::GetAllocationSize() {
|
|
// Provide an approximation of the total memory impact of this object to the
|
|
// Dart GC. The ContainerLayer may hold references to a tree of other layers,
|
|
// which in turn may contain Skia objects.
|
|
return 3000;
|
|
};
|
|
|
|
IMPLEMENT_WRAPPERTYPEINFO(ui, EngineLayer);
|
|
|
|
#define FOR_EACH_BINDING(V) // nothing to bind
|
|
|
|
DART_BIND_ALL(EngineLayer, FOR_EACH_BINDING)
|
|
|
|
} // namespace flutter
|