Skip to content

Commit

Permalink
Automatically fix header guards in the rest of the flutter/engine r…
Browse files Browse the repository at this point in the history
…epo. (flutter#49059)
  • Loading branch information
matanlurey authored Dec 15, 2023
1 parent 4cb3ba7 commit a17bb0a
Show file tree
Hide file tree
Showing 93 changed files with 291 additions and 213 deletions.
6 changes: 3 additions & 3 deletions display_list/benchmarking/dl_benchmarks.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_

#include "flutter/display_list/dl_canvas.h"
#include "flutter/display_list/dl_sampling_options.h"
Expand Down Expand Up @@ -587,4 +587,4 @@ void BM_SaveLayer(benchmark::State& state,
} // namespace testing
} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
#endif // FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_BENCHMARKS_H_
6 changes: 3 additions & 3 deletions display_list/benchmarking/dl_complexity.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_

#include "flutter/display_list/display_list.h"

Expand Down Expand Up @@ -55,4 +55,4 @@ class DisplayListNaiveComplexityCalculator

} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
#endif // FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_H_
6 changes: 3 additions & 3 deletions display_list/benchmarking/dl_complexity_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_

#include "flutter/display_list/benchmarking/dl_complexity_helper.h"

Expand Down Expand Up @@ -99,4 +99,4 @@ class DisplayListGLComplexityCalculator

} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
#endif // FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_GL_H_
6 changes: 3 additions & 3 deletions display_list/benchmarking/dl_complexity_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_HELPER_H_
#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_HELPER_H_

#include "flutter/display_list/benchmarking/dl_complexity.h"
#include "flutter/display_list/dl_blend_mode.h"
Expand Down Expand Up @@ -268,4 +268,4 @@ class ComplexityCalculatorHelper

} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_COMPLEXITY_HELPER_H_
#endif // FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_HELPER_H_
6 changes: 3 additions & 3 deletions display_list/benchmarking/dl_complexity_metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
#define FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
#ifndef FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
#define FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_

#include "flutter/display_list/benchmarking/dl_complexity_helper.h"

Expand Down Expand Up @@ -99,4 +99,4 @@ class DisplayListMetalComplexityCalculator

} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
#endif // FLUTTER_DISPLAY_LIST_BENCHMARKING_DL_COMPLEXITY_METAL_H_
6 changes: 3 additions & 3 deletions display_list/dl_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_ATTRIBUTES_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_ATTRIBUTES_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_ATTRIBUTES_H_
#define FLUTTER_DISPLAY_LIST_DL_ATTRIBUTES_H_

#include <memory>

Expand Down Expand Up @@ -108,4 +108,4 @@ class DlAttribute {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_ATTRIBUTES_H_
#endif // FLUTTER_DISPLAY_LIST_DL_ATTRIBUTES_H_
6 changes: 3 additions & 3 deletions display_list/dl_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BUILDER_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BUILDER_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_BUILDER_H_
#define FLUTTER_DISPLAY_LIST_DL_BUILDER_H_

#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_blend_mode.h"
Expand Down Expand Up @@ -780,4 +780,4 @@ class DisplayListBuilder final : public virtual DlCanvas,

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_BUILDER_H_
#endif // FLUTTER_DISPLAY_LIST_DL_BUILDER_H_
6 changes: 3 additions & 3 deletions display_list/dl_op_receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_DISPATCHER_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_DISPATCHER_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_OP_RECEIVER_H_
#define FLUTTER_DISPLAY_LIST_DL_OP_RECEIVER_H_

#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_blend_mode.h"
Expand Down Expand Up @@ -269,4 +269,4 @@ class DlOpReceiver {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_DISPATCHER_H_
#endif // FLUTTER_DISPLAY_LIST_DL_OP_RECEIVER_H_
6 changes: 3 additions & 3 deletions display_list/dl_sampling_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_SAMPLING_OPTIONS_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_SAMPLING_OPTIONS_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_SAMPLING_OPTIONS_H_
#define FLUTTER_DISPLAY_LIST_DL_SAMPLING_OPTIONS_H_

namespace flutter {

Expand All @@ -23,4 +23,4 @@ enum class DlImageSampling {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_SAMPLING_OPTIONS_H_
#endif // FLUTTER_DISPLAY_LIST_DL_SAMPLING_OPTIONS_H_
6 changes: 3 additions & 3 deletions display_list/dl_tile_mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_
#define FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_

namespace flutter {

Expand All @@ -30,4 +30,4 @@ enum class DlTileMode {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_TILE_MODE_H_
#endif // FLUTTER_DISPLAY_LIST_DL_TILE_MODE_H_
6 changes: 3 additions & 3 deletions display_list/dl_vertices.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_VERTICES_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_VERTICES_H_
#ifndef FLUTTER_DISPLAY_LIST_DL_VERTICES_H_
#define FLUTTER_DISPLAY_LIST_DL_VERTICES_H_

#include <memory>

Expand Down Expand Up @@ -284,4 +284,4 @@ class DlVertices {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_VERTICES_H_
#endif // FLUTTER_DISPLAY_LIST_DL_VERTICES_H_
6 changes: 3 additions & 3 deletions display_list/effects/dl_runtime_effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_RUNTIME_EFFECT_H_
#define FLUTTER_DISPLAY_LIST_RUNTIME_EFFECT_H_
#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_RUNTIME_EFFECT_H_
#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_RUNTIME_EFFECT_H_

#include <memory>

Expand Down Expand Up @@ -82,4 +82,4 @@ class DlRuntimeEffectImpeller final : public DlRuntimeEffect {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_RUNTIME_EFFECT_H_
#endif // FLUTTER_DISPLAY_LIST_EFFECTS_DL_RUNTIME_EFFECT_H_
6 changes: 3 additions & 3 deletions display_list/geometry/dl_region.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_GEOMETRY_REGION_H_
#define FLUTTER_DISPLAY_LIST_GEOMETRY_REGION_H_
#ifndef FLUTTER_DISPLAY_LIST_GEOMETRY_DL_REGION_H_
#define FLUTTER_DISPLAY_LIST_GEOMETRY_DL_REGION_H_

#include "third_party/skia/include/core/SkRect.h"

Expand Down Expand Up @@ -170,4 +170,4 @@ class DlRegion {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_GEOMETRY_REGION_H_
#endif // FLUTTER_DISPLAY_LIST_GEOMETRY_DL_REGION_H_
6 changes: 3 additions & 3 deletions display_list/image/dl_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_H_
#ifndef FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_H_
#define FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_H_

#include <memory>
#include <optional>
Expand Down Expand Up @@ -141,4 +141,4 @@ class DlImage : public SkRefCnt {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_IMAGE_H_
#endif // FLUTTER_DISPLAY_LIST_IMAGE_DL_IMAGE_H_
6 changes: 3 additions & 3 deletions display_list/skia/dl_sk_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_DISPATCHER_H_
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_DISPATCHER_H_

#include "flutter/display_list/display_list.h"
#include "flutter/display_list/dl_op_receiver.h"
Expand Down Expand Up @@ -122,4 +122,4 @@ class DlSkCanvasDispatcher : public virtual DlOpReceiver,

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_CANVAS_DISPATCHER_H_
#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_DISPATCHER_H_
6 changes: 3 additions & 3 deletions display_list/skia/dl_sk_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_TYPES_H_
#define FLUTTER_DISPLAY_LIST_TYPES_H_
#ifndef FLUTTER_DISPLAY_LIST_SKIA_DL_SK_TYPES_H_
#define FLUTTER_DISPLAY_LIST_SKIA_DL_SK_TYPES_H_

#include "flutter/fml/macros.h"
#include "third_party/skia/include/core/SkBitmap.h"
Expand Down Expand Up @@ -33,4 +33,4 @@
#include "third_party/skia/include/effects/SkDashPathEffect.h"
#include "third_party/skia/include/effects/SkDiscretePathEffect.h"
#include "third_party/skia/include/gpu/GrTypes.h"
#endif // FLUTTER_DISPLAY_LIST_TYPES_H_
#endif // FLUTTER_DISPLAY_LIST_SKIA_DL_SK_TYPES_H_
6 changes: 3 additions & 3 deletions display_list/utils/dl_comparable.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COMPARABLE_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COMPARABLE_H_
#ifndef FLUTTER_DISPLAY_LIST_UTILS_DL_COMPARABLE_H_
#define FLUTTER_DISPLAY_LIST_UTILS_DL_COMPARABLE_H_

#include <memory>

Expand Down Expand Up @@ -113,4 +113,4 @@ bool NotEquals(std::shared_ptr<T> a, std::shared_ptr<T> b) {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_COMPARABLE_H_
#endif // FLUTTER_DISPLAY_LIST_UTILS_DL_COMPARABLE_H_
6 changes: 3 additions & 3 deletions display_list/utils/dl_matrix_clip_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MATRIX_CLIP_TRACKER_H_
#define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MATRIX_CLIP_TRACKER_H_
#ifndef FLUTTER_DISPLAY_LIST_UTILS_DL_MATRIX_CLIP_TRACKER_H_
#define FLUTTER_DISPLAY_LIST_UTILS_DL_MATRIX_CLIP_TRACKER_H_

#include <vector>

Expand Down Expand Up @@ -140,4 +140,4 @@ class DisplayListMatrixClipTracker {

} // namespace flutter

#endif // FLUTTER_DISPLAY_LIST_DISPLAY_LIST_MATRIX_CLIP_TRACKER_H_
#endif // FLUTTER_DISPLAY_LIST_UTILS_DL_MATRIX_CLIP_TRACKER_H_
6 changes: 3 additions & 3 deletions flow/flow_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_TEST_UTILS_H_
#define FLUTTER_FLOW_TEST_UTILS_H_
#ifndef FLUTTER_FLOW_FLOW_TEST_UTILS_H_
#define FLUTTER_FLOW_FLOW_TEST_UTILS_H_

#include <string>

Expand All @@ -19,4 +19,4 @@ void SetFontFile(const std::string& dir);

} // namespace flutter

#endif // FLUTTER_FLOW_TEST_UTILS_H_
#endif // FLUTTER_FLOW_FLOW_TEST_UTILS_H_
6 changes: 3 additions & 3 deletions flow/layers/display_list_raster_cache_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
#define FLUTTER_FLOW_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
#ifndef FLUTTER_FLOW_LAYERS_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
#define FLUTTER_FLOW_LAYERS_DISPLAY_LIST_RASTER_CACHE_ITEM_H_

#include <memory>
#include <optional>
Expand Down Expand Up @@ -59,4 +59,4 @@ class DisplayListRasterCacheItem : public RasterCacheItem {

} // namespace flutter

#endif // FLUTTER_FLOW_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
#endif // FLUTTER_FLOW_LAYERS_DISPLAY_LIST_RASTER_CACHE_ITEM_H_
6 changes: 3 additions & 3 deletions flow/layers/layer_raster_cache_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_LAYER_RASTER_CACHE_ITEM_H_
#define FLUTTER_FLOW_LAYER_RASTER_CACHE_ITEM_H_
#ifndef FLUTTER_FLOW_LAYERS_LAYER_RASTER_CACHE_ITEM_H_
#define FLUTTER_FLOW_LAYERS_LAYER_RASTER_CACHE_ITEM_H_

#include <memory>
#include <optional>
Expand Down Expand Up @@ -69,4 +69,4 @@ class LayerRasterCacheItem : public RasterCacheItem {

} // namespace flutter

#endif // FLUTTER_FLOW_LAYER_RASTER_CACHE_ITEM_H_
#endif // FLUTTER_FLOW_LAYERS_LAYER_RASTER_CACHE_ITEM_H_
6 changes: 3 additions & 3 deletions flow/stopwatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_FLOW_INSTRUMENTATION_H_
#define FLUTTER_FLOW_INSTRUMENTATION_H_
#ifndef FLUTTER_FLOW_STOPWATCH_H_
#define FLUTTER_FLOW_STOPWATCH_H_

#include <vector>

Expand Down Expand Up @@ -125,4 +125,4 @@ class StopwatchVisualizer {

} // namespace flutter

#endif // FLUTTER_FLOW_INSTRUMENTATION_H_
#endif // FLUTTER_FLOW_STOPWATCH_H_
6 changes: 3 additions & 3 deletions flow/testing/diff_context_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef FLUTTER_SHELL_DIFF_CONTEXT_TEST_H_
#define FLUTTER_SHELL_DIFF_CONTEXT_TEST_H_
#ifndef FLUTTER_FLOW_TESTING_DIFF_CONTEXT_TEST_H_
#define FLUTTER_FLOW_TESTING_DIFF_CONTEXT_TEST_H_

#include <utility>

Expand Down Expand Up @@ -72,4 +72,4 @@ class DiffContextTest : public LayerTest {
} // namespace testing
} // namespace flutter

#endif // FLUTTER_SHELL_DIFF_CONTEXT_TEST_H_
#endif // FLUTTER_FLOW_TESTING_DIFF_CONTEXT_TEST_H_
Loading

0 comments on commit a17bb0a

Please sign in to comment.