Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 29a85a7

Browse files
authored
Migrate impeller/**.h to header guards. (#48962)
Automatically generated by #48903. Progress towards flutter/flutter#133415.
1 parent a8bf840 commit 29a85a7

File tree

346 files changed

+1384
-347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+1384
-347
lines changed

impeller/aiks/aiks_context.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_
6+
#define FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_
67

78
#include <memory>
89

@@ -51,3 +52,5 @@ class AiksContext {
5152
};
5253

5354
} // namespace impeller
55+
56+
#endif // FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_

impeller/aiks/aiks_playground.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
6+
#define FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_
67

78
#include "flutter/fml/macros.h"
89
#include "impeller/aiks/aiks_context.h"
@@ -41,3 +42,5 @@ class AiksPlayground : public PlaygroundTest {
4142
};
4243

4344
} // namespace impeller
45+
46+
#endif // FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_

impeller/aiks/canvas.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_H_
6+
#define FLUTTER_IMPELLER_AIKS_CANVAS_H_
67

78
#include <deque>
89
#include <functional>
@@ -198,3 +199,5 @@ class Canvas {
198199
};
199200

200201
} // namespace impeller
202+
203+
#endif // FLUTTER_IMPELLER_AIKS_CANVAS_H_

impeller/aiks/canvas_recorder.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_
6+
#define FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_
67

78
#include <cstdint>
89

@@ -303,3 +304,5 @@ class CanvasRecorder {
303304
#endif
304305

305306
} // namespace impeller
307+
308+
#endif // FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_

impeller/aiks/canvas_type.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
6+
#define FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_
67

78
#include "impeller/aiks/canvas.h"
89
#include "impeller/aiks/canvas_recorder.h"
@@ -20,3 +21,5 @@ using CanvasType = Canvas;
2021
#endif
2122

2223
} // namespace impeller
24+
25+
#endif // FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_

impeller/aiks/color_filter.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_
6+
#define FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_
67

78
#include "impeller/entity/contents/filters/color_filter_contents.h"
89
#include "impeller/geometry/color.h"
@@ -176,3 +177,5 @@ class ComposedColorFilter final : public ColorFilter {
176177
};
177178

178179
} // namespace impeller
180+
181+
#endif // FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_

impeller/aiks/color_source.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
6+
#define FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_
67

78
#include <functional>
89
#include <memory>
@@ -103,3 +104,5 @@ class ColorSource {
103104
};
104105

105106
} // namespace impeller
107+
108+
#endif // FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_

impeller/aiks/image.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_IMAGE_H_
6+
#define FLUTTER_IMPELLER_AIKS_IMAGE_H_
67

78
#include <memory>
89

@@ -30,3 +31,5 @@ class Image {
3031
};
3132

3233
} // namespace impeller
34+
35+
#endif // FLUTTER_IMPELLER_AIKS_IMAGE_H_

impeller/aiks/image_filter.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_
6+
#define FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_
67

78
#include "impeller/aiks/color_filter.h"
89
#include "impeller/core/sampler_descriptor.h"
@@ -271,3 +272,5 @@ class LocalMatrixImageFilter : public ImageFilter {
271272
};
272273

273274
} // namespace impeller
275+
276+
#endif // FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_

impeller/aiks/paint.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
#pragma once
5+
#ifndef FLUTTER_IMPELLER_AIKS_PAINT_H_
6+
#define FLUTTER_IMPELLER_AIKS_PAINT_H_
67

78
#include <memory>
89

@@ -106,3 +107,5 @@ struct Paint {
106107
};
107108

108109
} // namespace impeller
110+
111+
#endif // FLUTTER_IMPELLER_AIKS_PAINT_H_

0 commit comments

Comments
 (0)