Skip to content

Commit 336c23f

Browse files
authored
Remove //flutter/glue and use FML directly. (flutter#5862)
1 parent 7d17da7 commit 336c23f

32 files changed

+42
-131
lines changed

assets/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ source_set("assets") {
1616
deps = [
1717
"$flutter_root/common",
1818
"$flutter_root/fml",
19-
"$flutter_root/glue",
2019
"//garnet/public/lib/fxl",
2120
]
2221

assets/asset_manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "flutter/assets/asset_manager.h"
66

77
#include "flutter/assets/directory_asset_bundle.h"
8-
#include "flutter/glue/trace_event.h"
8+
#include "flutter/fml/trace_event.h"
99

1010
#ifdef ERROR
1111
#undef ERROR

assets/zip_asset_store.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <string>
1515
#include <utility>
1616

17-
#include "flutter/glue/trace_event.h"
17+
#include "flutter/fml/trace_event.h"
1818

1919
namespace blink {
2020

flow/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ source_set("flow") {
6767
deps = [
6868
"$flutter_root/common",
6969
"$flutter_root/fml",
70-
"$flutter_root/glue",
7170
"$flutter_root/synchronization",
7271
"//third_party/skia",
7372
"//third_party/skia:gpu",

flow/layers/layer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "flutter/flow/instrumentation.h"
1212
#include "flutter/flow/raster_cache.h"
1313
#include "flutter/flow/texture.h"
14-
#include "flutter/glue/trace_event.h"
14+
#include "flutter/fml/trace_event.h"
1515
#include "lib/fxl/build_config.h"
1616
#include "lib/fxl/logging.h"
1717
#include "lib/fxl/macros.h"

flow/layers/layer_tree.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "flutter/flow/layers/layer_tree.h"
66

77
#include "flutter/flow/layers/layer.h"
8-
#include "flutter/glue/trace_event.h"
8+
#include "flutter/fml/trace_event.h"
99
#include "third_party/skia/include/core/SkPictureRecorder.h"
1010

1111
namespace flow {

flow/raster_cache.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <vector>
88

99
#include "flutter/flow/paint_utils.h"
10-
#include "flutter/glue/trace_event.h"
10+
#include "flutter/fml/trace_event.h"
1111
#include "lib/fxl/logging.h"
1212
#include "third_party/skia/include/core/SkCanvas.h"
1313
#include "third_party/skia/include/core/SkColorSpaceXformCanvas.h"

flow/scene_update_context.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "flutter/flow/export_node.h"
88
#include "flutter/flow/layers/layer.h"
99
#include "flutter/flow/matrix_decomposition.h"
10-
#include "flutter/glue/trace_event.h"
10+
#include "flutter/fml/trace_event.h"
1111

1212
namespace flow {
1313

@@ -94,7 +94,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode& entity_node,
9494
SetShapeColor(shape_node, color);
9595

9696
scenic::Rectangle inner_shape(session_, inner_bounds.width(),
97-
inner_bounds.height());
97+
inner_bounds.height());
9898
scenic::ShapeNode inner_node(session_);
9999
inner_node.SetShape(inner_shape);
100100
inner_node.SetTranslation(inner_bounds.width() * 0.5f + inner_bounds.left(),

fml/trace_event.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
#ifndef FLUTTER_FML_TRACE_EVENT_H_
66
#define FLUTTER_FML_TRACE_EVENT_H_
77

8+
#if defined(__Fuchsia__)
9+
10+
// Forward to the system tracing mechanism on Fuchsia.
11+
12+
#include <trace/event.h>
13+
14+
#define TRACE_EVENT0(a, b) TRACE_DURATION(a, b)
15+
#define TRACE_EVENT1(a, b, c, d) TRACE_DURATION(a, b, c, d)
16+
#define TRACE_EVENT2(a, b, c, d, e, f) TRACE_DURATION(a, b, c, d, e, f)
17+
#define TRACE_EVENT_ASYNC_BEGIN0(a, b, c) TRACE_ASYNC_BEGIN(a, b, c)
18+
#define TRACE_EVENT_ASYNC_END0(a, b, c) TRACE_ASYNC_END(a, b, c)
19+
#define TRACE_EVENT_ASYNC_BEGIN1(a, b, c, d, e) TRACE_ASYNC_BEGIN(a, b, c, d, e)
20+
#define TRACE_EVENT_ASYNC_END1(a, b, c, d, e) TRACE_ASYNC_END(a, b, c, d, e)
21+
22+
#else // defined(__Fuchsia__)
23+
824
#include <cstddef>
925
#include <cstdint>
1026
#include <string>
@@ -121,4 +137,6 @@ class ScopedInstantEnd {
121137
} // namespace tracing
122138
} // namespace fml
123139

140+
#endif // defined(__Fuchsia__)
141+
124142
#endif // FLUTTER_FML_TRACE_EVENT_H_

glue/BUILD.gn

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)