Remove //flutter/glue and use FML directly. (flutter/engine#5862)
This commit is contained in:
@@ -16,7 +16,6 @@ source_set("assets") {
|
||||
deps = [
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"//garnet/public/lib/fxl",
|
||||
]
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "flutter/assets/asset_manager.h"
|
||||
|
||||
#include "flutter/assets/directory_asset_bundle.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
#ifdef ERROR
|
||||
#undef ERROR
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
namespace blink {
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ source_set("flow") {
|
||||
deps = [
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/synchronization",
|
||||
"//third_party/skia",
|
||||
"//third_party/skia:gpu",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "flutter/flow/instrumentation.h"
|
||||
#include "flutter/flow/raster_cache.h"
|
||||
#include "flutter/flow/texture.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "lib/fxl/build_config.h"
|
||||
#include "lib/fxl/logging.h"
|
||||
#include "lib/fxl/macros.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "flutter/flow/layers/layer_tree.h"
|
||||
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "third_party/skia/include/core/SkPictureRecorder.h"
|
||||
|
||||
namespace flow {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "flutter/flow/paint_utils.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "lib/fxl/logging.h"
|
||||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "third_party/skia/include/core/SkColorSpaceXformCanvas.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "flutter/flow/export_node.h"
|
||||
#include "flutter/flow/layers/layer.h"
|
||||
#include "flutter/flow/matrix_decomposition.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
|
||||
namespace flow {
|
||||
|
||||
@@ -94,7 +94,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode& entity_node,
|
||||
SetShapeColor(shape_node, color);
|
||||
|
||||
scenic::Rectangle inner_shape(session_, inner_bounds.width(),
|
||||
inner_bounds.height());
|
||||
inner_bounds.height());
|
||||
scenic::ShapeNode inner_node(session_);
|
||||
inner_node.SetShape(inner_shape);
|
||||
inner_node.SetTranslation(inner_bounds.width() * 0.5f + inner_bounds.left(),
|
||||
|
||||
@@ -5,6 +5,22 @@
|
||||
#ifndef FLUTTER_FML_TRACE_EVENT_H_
|
||||
#define FLUTTER_FML_TRACE_EVENT_H_
|
||||
|
||||
#if defined(__Fuchsia__)
|
||||
|
||||
// Forward to the system tracing mechanism on Fuchsia.
|
||||
|
||||
#include <trace/event.h>
|
||||
|
||||
#define TRACE_EVENT0(a, b) TRACE_DURATION(a, b)
|
||||
#define TRACE_EVENT1(a, b, c, d) TRACE_DURATION(a, b, c, d)
|
||||
#define TRACE_EVENT2(a, b, c, d, e, f) TRACE_DURATION(a, b, c, d, e, f)
|
||||
#define TRACE_EVENT_ASYNC_BEGIN0(a, b, c) TRACE_ASYNC_BEGIN(a, b, c)
|
||||
#define TRACE_EVENT_ASYNC_END0(a, b, c) TRACE_ASYNC_END(a, b, c)
|
||||
#define TRACE_EVENT_ASYNC_BEGIN1(a, b, c, d, e) TRACE_ASYNC_BEGIN(a, b, c, d, e)
|
||||
#define TRACE_EVENT_ASYNC_END1(a, b, c, d, e) TRACE_ASYNC_END(a, b, c, d, e)
|
||||
|
||||
#else // defined(__Fuchsia__)
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
@@ -121,4 +137,6 @@ class ScopedInstantEnd {
|
||||
} // namespace tracing
|
||||
} // namespace fml
|
||||
|
||||
#endif // defined(__Fuchsia__)
|
||||
|
||||
#endif // FLUTTER_FML_TRACE_EVENT_H_
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
source_set("glue") {
|
||||
sources = [
|
||||
"stack_trace.h",
|
||||
"trace_event.h",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//garnet/public/lib/fxl",
|
||||
]
|
||||
|
||||
public_configs = [
|
||||
"$flutter_root:config",
|
||||
]
|
||||
|
||||
if (is_fuchsia) {
|
||||
sources += [ "stack_trace_fuchsia.cc" ]
|
||||
|
||||
public_deps = [
|
||||
"//zircon/public/lib/trace",
|
||||
]
|
||||
} else {
|
||||
sources += [ "stack_trace_base.cc" ]
|
||||
|
||||
deps += [ "$flutter_root/fml" ]
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
# Glue
|
||||
|
||||
This library provides glue between Flutter and //base, which lets us isolate our
|
||||
dependency on //base. Eventually, we'll drive the contents of this library to
|
||||
zero and remove our dependency on //base.
|
||||
@@ -1,14 +0,0 @@
|
||||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_GLU_STACK_TRACE_H_
|
||||
#define FLUTTER_GLU_STACK_TRACE_H_
|
||||
|
||||
namespace glue {
|
||||
|
||||
void PrintStackTrace();
|
||||
|
||||
} // namespace glue
|
||||
|
||||
#endif // FLUTTER_GLU_STACK_TRACE_H_
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2016 The Chromium 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/glue/stack_trace.h"
|
||||
|
||||
namespace glue {
|
||||
|
||||
void PrintStackTrace() {}
|
||||
|
||||
} // namespace glue
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2016 The Chromium 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/glue/stack_trace.h"
|
||||
|
||||
namespace glue {
|
||||
|
||||
void PrintStackTrace() {}
|
||||
|
||||
} // namespace glue
|
||||
@@ -1,26 +0,0 @@
|
||||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef FLUTTER_GLUE_TRACE_EVENT_H_
|
||||
#define FLUTTER_GLUE_TRACE_EVENT_H_
|
||||
|
||||
#if defined(__Fuchsia__)
|
||||
|
||||
#include <trace/event.h>
|
||||
|
||||
#define TRACE_EVENT0(a, b) TRACE_DURATION(a, b)
|
||||
#define TRACE_EVENT1(a, b, c, d) TRACE_DURATION(a, b, c, d)
|
||||
#define TRACE_EVENT2(a, b, c, d, e, f) TRACE_DURATION(a, b, c, d, e, f)
|
||||
#define TRACE_EVENT_ASYNC_BEGIN0(a, b, c) TRACE_ASYNC_BEGIN(a, b, c)
|
||||
#define TRACE_EVENT_ASYNC_END0(a, b, c) TRACE_ASYNC_END(a, b, c)
|
||||
#define TRACE_EVENT_ASYNC_BEGIN1(a, b, c, d, e) TRACE_ASYNC_BEGIN(a, b, c, d, e)
|
||||
#define TRACE_EVENT_ASYNC_END1(a, b, c, d, e) TRACE_ASYNC_END(a, b, c, d, e)
|
||||
|
||||
#else // defined(__Fuchsia__)
|
||||
|
||||
#include "flutter/fml/trace_event.h" // nogncheck
|
||||
|
||||
#endif // defined(__Fuchsia__)
|
||||
|
||||
#endif // FLUTTER_GLUE_TRACE_EVENT_H_
|
||||
@@ -55,14 +55,14 @@ source_set("ui") {
|
||||
"painting/vertices.h",
|
||||
"plugins/callback_cache.cc",
|
||||
"plugins/callback_cache.h",
|
||||
"semantics/custom_accessibility_action.cc",
|
||||
"semantics/custom_accessibility_action.h",
|
||||
"semantics/semantics_node.cc",
|
||||
"semantics/semantics_node.h",
|
||||
"semantics/semantics_update.cc",
|
||||
"semantics/semantics_update.h",
|
||||
"semantics/semantics_update_builder.cc",
|
||||
"semantics/semantics_update_builder.h",
|
||||
"semantics/custom_accessibility_action.cc",
|
||||
"semantics/custom_accessibility_action.h",
|
||||
"text/asset_manager_font_provider.cc",
|
||||
"text/asset_manager_font_provider.h",
|
||||
"text/font_collection.cc",
|
||||
@@ -101,7 +101,6 @@ source_set("ui") {
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/flow",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/runtime:test_font",
|
||||
"//garnet/public/lib/fxl",
|
||||
"//third_party/dart/runtime/bin:embedded_dart_io",
|
||||
@@ -115,5 +114,7 @@ source_set("ui") {
|
||||
deps += [ "//topaz/public/dart-pkg/zircon" ]
|
||||
}
|
||||
|
||||
public_deps = ["$flutter_root/third_party/txt"]
|
||||
public_deps = [
|
||||
"$flutter_root/third_party/txt",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "flutter/lib/ui/compositing/scene.h"
|
||||
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/lib/ui/painting/image.h"
|
||||
#include "lib/fxl/functional/make_copyable.h"
|
||||
#include "third_party/skia/include/core/SkImageInfo.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "flutter/lib/ui/painting/codec.h"
|
||||
|
||||
#include "flutter/common/task_runners.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/lib/ui/painting/frame_info.h"
|
||||
#include "lib/fxl/functional/make_copyable.h"
|
||||
#include "lib/fxl/logging.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/common/task_runners.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/lib/ui/painting/image.h"
|
||||
#include "flutter/lib/ui/ui_dart_state.h"
|
||||
#include "lib/fxl/build_config.h"
|
||||
|
||||
@@ -90,7 +90,6 @@ source_set("runtime") {
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/flow",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/lib/io",
|
||||
"$flutter_root/lib/ui",
|
||||
"$flutter_root/third_party/txt",
|
||||
@@ -105,8 +104,7 @@ source_set("runtime") {
|
||||
public_configs = [ "$flutter_root:config" ]
|
||||
|
||||
if (flutter_runtime_mode != "release" &&
|
||||
flutter_runtime_mode != "dynamic_release" &&
|
||||
!is_fuchsia) {
|
||||
flutter_runtime_mode != "dynamic_release" && !is_fuchsia) {
|
||||
# Only link in Observatory in non-release modes on non-Fuchsia. Fuchsia
|
||||
# instead puts Observatory into the runner's package.
|
||||
deps += [ "//third_party/dart/runtime/observatory:embedded_observatory_archive" ]
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "flutter/runtime/runtime_controller.h"
|
||||
|
||||
#include "flutter/fml/message_loop.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/lib/ui/compositing/scene.h"
|
||||
#include "flutter/lib/ui/ui_dart_state.h"
|
||||
#include "flutter/lib/ui/window/window.h"
|
||||
|
||||
@@ -96,7 +96,6 @@ source_set("common") {
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/flow",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/lib/ui",
|
||||
"$flutter_root/runtime",
|
||||
"$flutter_root/synchronization",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "flutter/shell/common/animator.h"
|
||||
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "lib/fxl/time/stopwatch.h"
|
||||
#include "third_party/dart/runtime/include/dart_tools_api.h"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "flutter/common/settings.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/lib/snapshot/snapshot.h"
|
||||
#include "flutter/lib/ui/text/font_collection.h"
|
||||
#include "flutter/shell/common/animator.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "flutter/fml/log_settings.h"
|
||||
#include "flutter/fml/logging.h"
|
||||
#include "flutter/fml/message_loop.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/runtime/dart_vm.h"
|
||||
#include "flutter/runtime/start_up.h"
|
||||
#include "flutter/shell/common/engine.h"
|
||||
|
||||
@@ -46,7 +46,6 @@ template("shell_gpu_configuration") {
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/flow",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/shell/common",
|
||||
"$flutter_root/synchronization",
|
||||
"//garnet/public/lib/fxl",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "gpu_surface_gl.h"
|
||||
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "lib/fxl/arraysize.h"
|
||||
#include "lib/fxl/logging.h"
|
||||
#include "third_party/skia/include/core/SkColorFilter.h"
|
||||
|
||||
@@ -99,7 +99,6 @@ shared_library("create_flutter_framework_dylib") {
|
||||
"$flutter_root/common",
|
||||
"$flutter_root/flow",
|
||||
"$flutter_root/fml",
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/lib/ui",
|
||||
"$flutter_root/runtime",
|
||||
"$flutter_root/shell/common",
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <mach/mach_time.h>
|
||||
|
||||
#include "flutter/common/task_runners.h"
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "lib/fxl/logging.h"
|
||||
|
||||
@interface VSyncClient : NSObject
|
||||
|
||||
@@ -13,7 +13,7 @@ source_set("synchronization") {
|
||||
public_configs = [ "$flutter_root:config" ]
|
||||
|
||||
public_deps = [
|
||||
"$flutter_root/glue",
|
||||
"$flutter_root/fml",
|
||||
"//garnet/public/lib/fxl",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#ifndef SYNCHRONIZATION_PIPELINE_H_
|
||||
#define SYNCHRONIZATION_PIPELINE_H_
|
||||
|
||||
#include "flutter/glue/trace_event.h"
|
||||
#include "flutter/fml/trace_event.h"
|
||||
#include "flutter/synchronization/pipeline.h"
|
||||
#include "flutter/synchronization/semaphore.h"
|
||||
#include "lib/fxl/functional/closure.h"
|
||||
|
||||
Reference in New Issue
Block a user