diff --git a/engine/src/flutter/impeller/aiks/aiks_context.h b/engine/src/flutter/impeller/aiks/aiks_context.h index 5ac0fcaa7b..650465d770 100644 --- a/engine/src/flutter/impeller/aiks/aiks_context.h +++ b/engine/src/flutter/impeller/aiks/aiks_context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_ +#define FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_ #include @@ -51,3 +52,5 @@ class AiksContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_AIKS_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/aiks/aiks_playground.h b/engine/src/flutter/impeller/aiks/aiks_playground.h index a98c426e78..64490cb679 100644 --- a/engine/src/flutter/impeller/aiks/aiks_playground.h +++ b/engine/src/flutter/impeller/aiks/aiks_playground.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_ +#define FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_ #include "flutter/fml/macros.h" #include "impeller/aiks/aiks_context.h" @@ -41,3 +42,5 @@ class AiksPlayground : public PlaygroundTest { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_AIKS_PLAYGROUND_H_ diff --git a/engine/src/flutter/impeller/aiks/canvas.h b/engine/src/flutter/impeller/aiks/canvas.h index b1c6bab073..df62c29bcf 100644 --- a/engine/src/flutter/impeller/aiks/canvas.h +++ b/engine/src/flutter/impeller/aiks/canvas.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_H_ +#define FLUTTER_IMPELLER_AIKS_CANVAS_H_ #include #include @@ -198,3 +199,5 @@ class Canvas { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_CANVAS_H_ diff --git a/engine/src/flutter/impeller/aiks/canvas_recorder.h b/engine/src/flutter/impeller/aiks/canvas_recorder.h index 2a07a371ce..4b75ef5f82 100644 --- a/engine/src/flutter/impeller/aiks/canvas_recorder.h +++ b/engine/src/flutter/impeller/aiks/canvas_recorder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_ +#define FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_ #include @@ -303,3 +304,5 @@ class CanvasRecorder { #endif } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_CANVAS_RECORDER_H_ diff --git a/engine/src/flutter/impeller/aiks/canvas_type.h b/engine/src/flutter/impeller/aiks/canvas_type.h index a6992163a7..c9402c0526 100644 --- a/engine/src/flutter/impeller/aiks/canvas_type.h +++ b/engine/src/flutter/impeller/aiks/canvas_type.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_ +#define FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_ #include "impeller/aiks/canvas.h" #include "impeller/aiks/canvas_recorder.h" @@ -20,3 +21,5 @@ using CanvasType = Canvas; #endif } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_CANVAS_TYPE_H_ diff --git a/engine/src/flutter/impeller/aiks/color_filter.h b/engine/src/flutter/impeller/aiks/color_filter.h index 84dfbbd19b..4ed24b81b1 100644 --- a/engine/src/flutter/impeller/aiks/color_filter.h +++ b/engine/src/flutter/impeller/aiks/color_filter.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_ +#define FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_ #include "impeller/entity/contents/filters/color_filter_contents.h" #include "impeller/geometry/color.h" @@ -176,3 +177,5 @@ class ComposedColorFilter final : public ColorFilter { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_COLOR_FILTER_H_ diff --git a/engine/src/flutter/impeller/aiks/color_source.h b/engine/src/flutter/impeller/aiks/color_source.h index 7849b841ec..868362d99c 100644 --- a/engine/src/flutter/impeller/aiks/color_source.h +++ b/engine/src/flutter/impeller/aiks/color_source.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_ +#define FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_ #include #include @@ -103,3 +104,5 @@ class ColorSource { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_COLOR_SOURCE_H_ diff --git a/engine/src/flutter/impeller/aiks/image.h b/engine/src/flutter/impeller/aiks/image.h index 4011137b40..534506880b 100644 --- a/engine/src/flutter/impeller/aiks/image.h +++ b/engine/src/flutter/impeller/aiks/image.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_IMAGE_H_ +#define FLUTTER_IMPELLER_AIKS_IMAGE_H_ #include @@ -30,3 +31,5 @@ class Image { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_IMAGE_H_ diff --git a/engine/src/flutter/impeller/aiks/image_filter.h b/engine/src/flutter/impeller/aiks/image_filter.h index e3e6908df5..9d72c14d1a 100644 --- a/engine/src/flutter/impeller/aiks/image_filter.h +++ b/engine/src/flutter/impeller/aiks/image_filter.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_ +#define FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_ #include "impeller/aiks/color_filter.h" #include "impeller/core/sampler_descriptor.h" @@ -271,3 +272,5 @@ class LocalMatrixImageFilter : public ImageFilter { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_IMAGE_FILTER_H_ diff --git a/engine/src/flutter/impeller/aiks/paint.h b/engine/src/flutter/impeller/aiks/paint.h index 68608d3dce..126f152dba 100644 --- a/engine/src/flutter/impeller/aiks/paint.h +++ b/engine/src/flutter/impeller/aiks/paint.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_PAINT_H_ +#define FLUTTER_IMPELLER_AIKS_PAINT_H_ #include @@ -106,3 +107,5 @@ struct Paint { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_PAINT_H_ diff --git a/engine/src/flutter/impeller/aiks/paint_pass_delegate.h b/engine/src/flutter/impeller/aiks/paint_pass_delegate.h index c0154475ae..6209f56bcd 100644 --- a/engine/src/flutter/impeller/aiks/paint_pass_delegate.h +++ b/engine/src/flutter/impeller/aiks/paint_pass_delegate.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_PAINT_PASS_DELEGATE_H_ +#define FLUTTER_IMPELLER_AIKS_PAINT_PASS_DELEGATE_H_ #include @@ -81,3 +82,5 @@ class OpacityPeepholePassDelegate final : public EntityPassDelegate { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_PAINT_PASS_DELEGATE_H_ diff --git a/engine/src/flutter/impeller/aiks/picture.h b/engine/src/flutter/impeller/aiks/picture.h index f4e8a640ef..8419d203e9 100644 --- a/engine/src/flutter/impeller/aiks/picture.h +++ b/engine/src/flutter/impeller/aiks/picture.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_PICTURE_H_ +#define FLUTTER_IMPELLER_AIKS_PICTURE_H_ #include #include @@ -31,3 +32,5 @@ struct Picture { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_PICTURE_H_ diff --git a/engine/src/flutter/impeller/aiks/picture_recorder.h b/engine/src/flutter/impeller/aiks/picture_recorder.h index 739792a2df..ab561d437e 100644 --- a/engine/src/flutter/impeller/aiks/picture_recorder.h +++ b/engine/src/flutter/impeller/aiks/picture_recorder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_ +#define FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_ #include "flutter/fml/macros.h" #include "impeller/aiks/canvas.h" @@ -25,3 +26,5 @@ class PictureRecorder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_ diff --git a/engine/src/flutter/impeller/aiks/testing/context_mock.h b/engine/src/flutter/impeller/aiks/testing/context_mock.h index c80ade623d..b2d9138503 100644 --- a/engine/src/flutter/impeller/aiks/testing/context_mock.h +++ b/engine/src/flutter/impeller/aiks/testing/context_mock.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_MOCK_H_ +#define FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_MOCK_H_ #include #include @@ -115,3 +116,5 @@ class ContextMock : public Context { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_MOCK_H_ diff --git a/engine/src/flutter/impeller/aiks/testing/context_spy.h b/engine/src/flutter/impeller/aiks/testing/context_spy.h index 9d32f2e136..28a5ec3907 100644 --- a/engine/src/flutter/impeller/aiks/testing/context_spy.h +++ b/engine/src/flutter/impeller/aiks/testing/context_spy.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_SPY_H_ +#define FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_SPY_H_ #include #include "impeller/aiks/testing/context_mock.h" @@ -28,3 +29,5 @@ class ContextSpy : public std::enable_shared_from_this { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_TESTING_CONTEXT_SPY_H_ diff --git a/engine/src/flutter/impeller/aiks/trace_serializer.h b/engine/src/flutter/impeller/aiks/trace_serializer.h index 9232de504a..bb6598a50f 100644 --- a/engine/src/flutter/impeller/aiks/trace_serializer.h +++ b/engine/src/flutter/impeller/aiks/trace_serializer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_AIKS_TRACE_SERIALIZER_H_ +#define FLUTTER_IMPELLER_AIKS_TRACE_SERIALIZER_H_ #include #include "impeller/aiks/canvas_recorder.h" @@ -62,3 +63,5 @@ class TraceSerializer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_AIKS_TRACE_SERIALIZER_H_ diff --git a/engine/src/flutter/impeller/archivist/archivable.h b/engine/src/flutter/impeller/archivist/archivable.h index 41c296301d..9a7bdba6d2 100644 --- a/engine/src/flutter/impeller/archivist/archivable.h +++ b/engine/src/flutter/impeller/archivist/archivable.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVABLE_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVABLE_H_ #include #include @@ -36,3 +37,5 @@ class Archivable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVABLE_H_ diff --git a/engine/src/flutter/impeller/archivist/archive.h b/engine/src/flutter/impeller/archivist/archive.h index 33c3f66988..753e60beb1 100644 --- a/engine/src/flutter/impeller/archivist/archive.h +++ b/engine/src/flutter/impeller/archivist/archive.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_H_ #include #include @@ -72,3 +73,5 @@ class Archive { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_class_registration.h b/engine/src/flutter/impeller/archivist/archive_class_registration.h index 6fc5710427..7de79d35d5 100644 --- a/engine/src/flutter/impeller/archivist/archive_class_registration.h +++ b/engine/src/flutter/impeller/archivist/archive_class_registration.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_CLASS_REGISTRATION_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_CLASS_REGISTRATION_H_ #include #include @@ -49,3 +50,5 @@ class ArchiveClassRegistration { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_CLASS_REGISTRATION_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_database.h b/engine/src/flutter/impeller/archivist/archive_database.h index e8376fc370..c3f85196da 100644 --- a/engine/src/flutter/impeller/archivist/archive_database.h +++ b/engine/src/flutter/impeller/archivist/archive_database.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_DATABASE_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_DATABASE_H_ #include #include @@ -53,3 +54,5 @@ class ArchiveDatabase { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_DATABASE_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_location.h b/engine/src/flutter/impeller/archivist/archive_location.h index 6b773274ad..9df52ab400 100644 --- a/engine/src/flutter/impeller/archivist/archive_location.h +++ b/engine/src/flutter/impeller/archivist/archive_location.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_LOCATION_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_LOCATION_H_ #include #include @@ -171,3 +172,5 @@ class ArchiveLocation { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_LOCATION_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_statement.h b/engine/src/flutter/impeller/archivist/archive_statement.h index a5de60f865..09e002afe7 100644 --- a/engine/src/flutter/impeller/archivist/archive_statement.h +++ b/engine/src/flutter/impeller/archivist/archive_statement.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_STATEMENT_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_STATEMENT_H_ #include #include @@ -95,3 +96,5 @@ class ArchiveStatement { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_STATEMENT_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_transaction.h b/engine/src/flutter/impeller/archivist/archive_transaction.h index 671074cb15..1b95b37721 100644 --- a/engine/src/flutter/impeller/archivist/archive_transaction.h +++ b/engine/src/flutter/impeller/archivist/archive_transaction.h @@ -1,7 +1,8 @@ // 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. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_TRANSACTION_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_TRANSACTION_H_ #include @@ -47,3 +48,5 @@ class ArchiveTransaction { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_TRANSACTION_H_ diff --git a/engine/src/flutter/impeller/archivist/archive_vector.h b/engine/src/flutter/impeller/archivist/archive_vector.h index 2db657a683..34600cee92 100644 --- a/engine/src/flutter/impeller/archivist/archive_vector.h +++ b/engine/src/flutter/impeller/archivist/archive_vector.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_ #include "impeller/archivist/archive.h" @@ -35,3 +36,5 @@ class ArchiveVector : public Archivable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVE_VECTOR_H_ diff --git a/engine/src/flutter/impeller/archivist/archivist_fixture.h b/engine/src/flutter/impeller/archivist/archivist_fixture.h index b31abd3eec..fa90d0bdff 100644 --- a/engine/src/flutter/impeller/archivist/archivist_fixture.h +++ b/engine/src/flutter/impeller/archivist/archivist_fixture.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ARCHIVIST_ARCHIVIST_FIXTURE_H_ +#define FLUTTER_IMPELLER_ARCHIVIST_ARCHIVIST_FIXTURE_H_ #include "flutter/fml/macros.h" #include "flutter/testing/testing.h" @@ -36,3 +37,5 @@ class ArchivistFixture : public ::testing::Test { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_ARCHIVIST_ARCHIVIST_FIXTURE_H_ diff --git a/engine/src/flutter/impeller/base/allocation.h b/engine/src/flutter/impeller/base/allocation.h index a32d97bc0f..dd1b06befa 100644 --- a/engine/src/flutter/impeller/base/allocation.h +++ b/engine/src/flutter/impeller/base/allocation.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_ALLOCATION_H_ +#define FLUTTER_IMPELLER_BASE_ALLOCATION_H_ #include #include @@ -54,3 +55,5 @@ std::shared_ptr CreateMappingWithString( std::shared_ptr CreateMappingWithString(std::string string); } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_ALLOCATION_H_ diff --git a/engine/src/flutter/impeller/base/backend_cast.h b/engine/src/flutter/impeller/base/backend_cast.h index c3044bb2ac..71e2331cd4 100644 --- a/engine/src/flutter/impeller/base/backend_cast.h +++ b/engine/src/flutter/impeller/base/backend_cast.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_ +#define FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_ #include "flutter/fml/macros.h" @@ -25,3 +26,5 @@ class BackendCast { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_BACKEND_CAST_H_ diff --git a/engine/src/flutter/impeller/base/comparable.h b/engine/src/flutter/impeller/base/comparable.h index 08780f75c5..2f0c6e1e65 100644 --- a/engine/src/flutter/impeller/base/comparable.h +++ b/engine/src/flutter/impeller/base/comparable.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_COMPARABLE_H_ +#define FLUTTER_IMPELLER_BASE_COMPARABLE_H_ #include #include @@ -109,3 +110,5 @@ struct less { }; } // namespace std + +#endif // FLUTTER_IMPELLER_BASE_COMPARABLE_H_ diff --git a/engine/src/flutter/impeller/base/config.h b/engine/src/flutter/impeller/base/config.h index 610661a48d..06c9186940 100644 --- a/engine/src/flutter/impeller/base/config.h +++ b/engine/src/flutter/impeller/base/config.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_CONFIG_H_ +#define FLUTTER_IMPELLER_BASE_CONFIG_H_ #include @@ -35,3 +36,5 @@ namespace impeller { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_CONFIG_H_ diff --git a/engine/src/flutter/impeller/base/promise.h b/engine/src/flutter/impeller/base/promise.h index 04b0cc962b..30d45ae4d3 100644 --- a/engine/src/flutter/impeller/base/promise.h +++ b/engine/src/flutter/impeller/base/promise.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_PROMISE_H_ +#define FLUTTER_IMPELLER_BASE_PROMISE_H_ #include @@ -17,3 +18,5 @@ std::future RealizedFuture(T t) { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_PROMISE_H_ diff --git a/engine/src/flutter/impeller/base/strings.h b/engine/src/flutter/impeller/base/strings.h index 085bb1263d..cefe10343e 100644 --- a/engine/src/flutter/impeller/base/strings.h +++ b/engine/src/flutter/impeller/base/strings.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_STRINGS_H_ +#define FLUTTER_IMPELLER_BASE_STRINGS_H_ #include @@ -20,3 +21,5 @@ bool HasSuffix(const std::string& string, const std::string& suffix); std::string StripPrefix(const std::string& string, const std::string& to_strip); } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_STRINGS_H_ diff --git a/engine/src/flutter/impeller/base/thread.h b/engine/src/flutter/impeller/base/thread.h index d6b03573a2..c9f3fcb245 100644 --- a/engine/src/flutter/impeller/base/thread.h +++ b/engine/src/flutter/impeller/base/thread.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_THREAD_H_ +#define FLUTTER_IMPELLER_BASE_THREAD_H_ #include #include @@ -268,3 +269,5 @@ class ConditionVariable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_THREAD_H_ diff --git a/engine/src/flutter/impeller/base/thread_safety.h b/engine/src/flutter/impeller/base/thread_safety.h index 8d1f0aa02c..da1aed3b5e 100644 --- a/engine/src/flutter/impeller/base/thread_safety.h +++ b/engine/src/flutter/impeller/base/thread_safety.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_THREAD_SAFETY_H_ +#define FLUTTER_IMPELLER_BASE_THREAD_SAFETY_H_ #if defined(__clang__) #define IPLR_THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) @@ -67,3 +68,5 @@ #define IPLR_NO_THREAD_SAFETY_ANALYSIS \ IPLR_THREAD_ANNOTATION_ATTRIBUTE__(no_thread_safety_analysis) + +#endif // FLUTTER_IMPELLER_BASE_THREAD_SAFETY_H_ diff --git a/engine/src/flutter/impeller/base/timing.h b/engine/src/flutter/impeller/base/timing.h index 1496fd9eb9..86ac48ceba 100644 --- a/engine/src/flutter/impeller/base/timing.h +++ b/engine/src/flutter/impeller/base/timing.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_TIMING_H_ +#define FLUTTER_IMPELLER_BASE_TIMING_H_ #include @@ -14,3 +15,5 @@ using Clock = std::chrono::high_resolution_clock; using TimePoint = std::chrono::time_point; } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_TIMING_H_ diff --git a/engine/src/flutter/impeller/base/validation.h b/engine/src/flutter/impeller/base/validation.h index 1e7671adaa..50ebd0c440 100644 --- a/engine/src/flutter/impeller/base/validation.h +++ b/engine/src/flutter/impeller/base/validation.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_VALIDATION_H_ +#define FLUTTER_IMPELLER_BASE_VALIDATION_H_ #ifndef IMPELLER_ENABLE_VALIDATION #ifdef IMPELLER_DEBUG @@ -64,3 +65,5 @@ struct ScopedValidationDisable { /// happens in test environments. /// #define VALIDATION_LOG ::impeller::ValidationLog{}.GetStream() + +#endif // FLUTTER_IMPELLER_BASE_VALIDATION_H_ diff --git a/engine/src/flutter/impeller/base/version.h b/engine/src/flutter/impeller/base/version.h index 423e56272c..06e03ad394 100644 --- a/engine/src/flutter/impeller/base/version.h +++ b/engine/src/flutter/impeller/base/version.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_BASE_VERSION_H_ +#define FLUTTER_IMPELLER_BASE_VERSION_H_ #include #include @@ -37,3 +38,5 @@ struct Version { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_BASE_VERSION_H_ diff --git a/engine/src/flutter/impeller/compiler/compiler.h b/engine/src/flutter/impeller/compiler/compiler.h index 32f9676743..8447983005 100644 --- a/engine/src/flutter/impeller/compiler/compiler.h +++ b/engine/src/flutter/impeller/compiler/compiler.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_COMPILER_H_ +#define FLUTTER_IMPELLER_COMPILER_COMPILER_H_ #include #include @@ -64,3 +65,5 @@ class Compiler { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_COMPILER_H_ diff --git a/engine/src/flutter/impeller/compiler/compiler_backend.h b/engine/src/flutter/impeller/compiler/compiler_backend.h index ea27801439..4b2aabd0e0 100644 --- a/engine/src/flutter/impeller/compiler/compiler_backend.h +++ b/engine/src/flutter/impeller/compiler/compiler_backend.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_COMPILER_BACKEND_H_ +#define FLUTTER_IMPELLER_COMPILER_COMPILER_BACKEND_H_ #include #include @@ -71,3 +72,5 @@ struct CompilerBackend { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_COMPILER_BACKEND_H_ diff --git a/engine/src/flutter/impeller/compiler/compiler_test.h b/engine/src/flutter/impeller/compiler/compiler_test.h index 0f3c5f08c7..fdee8a598e 100644 --- a/engine/src/flutter/impeller/compiler/compiler_test.h +++ b/engine/src/flutter/impeller/compiler/compiler_test.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_COMPILER_TEST_H_ +#define FLUTTER_IMPELLER_COMPILER_COMPILER_TEST_H_ #include "flutter/fml/macros.h" #include "flutter/testing/testing.h" @@ -45,3 +46,5 @@ class CompilerTest : public ::testing::TestWithParam { } // namespace testing } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_COMPILER_TEST_H_ diff --git a/engine/src/flutter/impeller/compiler/constants.h b/engine/src/flutter/impeller/compiler/constants.h index c31005b833..958a643aca 100644 --- a/engine/src/flutter/impeller/compiler/constants.h +++ b/engine/src/flutter/impeller/compiler/constants.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_CONSTANTS_H_ +#define FLUTTER_IMPELLER_COMPILER_CONSTANTS_H_ namespace impeller { namespace compiler { @@ -11,3 +12,5 @@ constexpr char kExternalTexturePrefix[] = "SAMPLER_EXTERNAL_OES_"; } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_CONSTANTS_H_ diff --git a/engine/src/flutter/impeller/compiler/include_dir.h b/engine/src/flutter/impeller/compiler/include_dir.h index 0c7927a47f..2a40dd0e36 100644 --- a/engine/src/flutter/impeller/compiler/include_dir.h +++ b/engine/src/flutter/impeller/compiler/include_dir.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_INCLUDE_DIR_H_ +#define FLUTTER_IMPELLER_COMPILER_INCLUDE_DIR_H_ #include #include @@ -19,3 +20,5 @@ struct IncludeDir { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_INCLUDE_DIR_H_ diff --git a/engine/src/flutter/impeller/compiler/includer.h b/engine/src/flutter/impeller/compiler/includer.h index a3af915317..7012314800 100644 --- a/engine/src/flutter/impeller/compiler/includer.h +++ b/engine/src/flutter/impeller/compiler/includer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_INCLUDER_H_ +#define FLUTTER_IMPELLER_COMPILER_INCLUDER_H_ #include @@ -58,3 +59,5 @@ class Includer final : public shaderc::CompileOptions::IncluderInterface { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_INCLUDER_H_ diff --git a/engine/src/flutter/impeller/compiler/logger.h b/engine/src/flutter/impeller/compiler/logger.h index d96de575ba..11232d83a8 100644 --- a/engine/src/flutter/impeller/compiler/logger.h +++ b/engine/src/flutter/impeller/compiler/logger.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_LOGGER_H_ +#define FLUTTER_IMPELLER_COMPILER_LOGGER_H_ #include #include @@ -43,3 +44,5 @@ class AutoLogger { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_LOGGER_H_ diff --git a/engine/src/flutter/impeller/compiler/reflector.h b/engine/src/flutter/impeller/compiler/reflector.h index bb1572793f..981f004dfe 100644 --- a/engine/src/flutter/impeller/compiler/reflector.h +++ b/engine/src/flutter/impeller/compiler/reflector.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_REFLECTOR_H_ +#define FLUTTER_IMPELLER_COMPILER_REFLECTOR_H_ #include #include @@ -177,3 +178,5 @@ class Reflector { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_REFLECTOR_H_ diff --git a/engine/src/flutter/impeller/compiler/runtime_stage_data.h b/engine/src/flutter/impeller/compiler/runtime_stage_data.h index 45e3476fc8..0e650d6b98 100644 --- a/engine/src/flutter/impeller/compiler/runtime_stage_data.h +++ b/engine/src/flutter/impeller/compiler/runtime_stage_data.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_RUNTIME_STAGE_DATA_H_ +#define FLUTTER_IMPELLER_COMPILER_RUNTIME_STAGE_DATA_H_ #include #include @@ -58,3 +59,5 @@ class RuntimeStageData { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_RUNTIME_STAGE_DATA_H_ diff --git a/engine/src/flutter/impeller/compiler/source_options.h b/engine/src/flutter/impeller/compiler/source_options.h index 5c9983284d..89011f7158 100644 --- a/engine/src/flutter/impeller/compiler/source_options.h +++ b/engine/src/flutter/impeller/compiler/source_options.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_SOURCE_OPTIONS_H_ +#define FLUTTER_IMPELLER_COMPILER_SOURCE_OPTIONS_H_ #include #include @@ -48,3 +49,5 @@ struct SourceOptions { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_SOURCE_OPTIONS_H_ diff --git a/engine/src/flutter/impeller/compiler/spirv_compiler.h b/engine/src/flutter/impeller/compiler/spirv_compiler.h index c688cd2b46..9f6463d4de 100644 --- a/engine/src/flutter/impeller/compiler/spirv_compiler.h +++ b/engine/src/flutter/impeller/compiler/spirv_compiler.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_SPIRV_COMPILER_H_ +#define FLUTTER_IMPELLER_COMPILER_SPIRV_COMPILER_H_ #include #include @@ -75,3 +76,5 @@ class SPIRVCompiler { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_SPIRV_COMPILER_H_ diff --git a/engine/src/flutter/impeller/compiler/spirv_sksl.h b/engine/src/flutter/impeller/compiler/spirv_sksl.h index 8e4879d02e..8b1a1b8695 100644 --- a/engine/src/flutter/impeller/compiler/spirv_sksl.h +++ b/engine/src/flutter/impeller/compiler/spirv_sksl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_SPIRV_SKSL_H_ +#define FLUTTER_IMPELLER_COMPILER_SPIRV_SKSL_H_ #include #include @@ -78,3 +79,5 @@ class CompilerSkSL : public spirv_cross::CompilerGLSL { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_SPIRV_SKSL_H_ diff --git a/engine/src/flutter/impeller/compiler/switches.h b/engine/src/flutter/impeller/compiler/switches.h index c02e344fa4..1c6a561191 100644 --- a/engine/src/flutter/impeller/compiler/switches.h +++ b/engine/src/flutter/impeller/compiler/switches.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_SWITCHES_H_ +#define FLUTTER_IMPELLER_COMPILER_SWITCHES_H_ #include #include @@ -52,3 +53,5 @@ struct Switches { } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_SWITCHES_H_ diff --git a/engine/src/flutter/impeller/compiler/types.h b/engine/src/flutter/impeller/compiler/types.h index 0af2a5c403..5b55e7a958 100644 --- a/engine/src/flutter/impeller/compiler/types.h +++ b/engine/src/flutter/impeller/compiler/types.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_TYPES_H_ +#define FLUTTER_IMPELLER_COMPILER_TYPES_H_ #include #include @@ -79,3 +80,5 @@ spirv_cross::CompilerMSL::Options::Platform TargetPlatformToMSLPlatform( } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_TYPES_H_ diff --git a/engine/src/flutter/impeller/compiler/uniform_sorter.h b/engine/src/flutter/impeller/compiler/uniform_sorter.h index 5279aaecb6..3493f60b38 100644 --- a/engine/src/flutter/impeller/compiler/uniform_sorter.h +++ b/engine/src/flutter/impeller/compiler/uniform_sorter.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_UNIFORM_SORTER_H_ +#define FLUTTER_IMPELLER_COMPILER_UNIFORM_SORTER_H_ #include @@ -25,3 +26,5 @@ std::vector SortUniforms( bool include = true); } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_UNIFORM_SORTER_H_ diff --git a/engine/src/flutter/impeller/compiler/utilities.h b/engine/src/flutter/impeller/compiler/utilities.h index d1d27436ac..dbbd53d440 100644 --- a/engine/src/flutter/impeller/compiler/utilities.h +++ b/engine/src/flutter/impeller/compiler/utilities.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_COMPILER_UTILITIES_H_ +#define FLUTTER_IMPELLER_COMPILER_UTILITIES_H_ #include #include @@ -31,3 +32,5 @@ bool StringStartsWith(const std::string& target, const std::string& prefix); } // namespace compiler } // namespace impeller + +#endif // FLUTTER_IMPELLER_COMPILER_UTILITIES_H_ diff --git a/engine/src/flutter/impeller/core/allocator.h b/engine/src/flutter/impeller/core/allocator.h index 07c1c93bf6..adcbc65670 100644 --- a/engine/src/flutter/impeller/core/allocator.h +++ b/engine/src/flutter/impeller/core/allocator.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_ALLOCATOR_H_ +#define FLUTTER_IMPELLER_CORE_ALLOCATOR_H_ #include "flutter/fml/mapping.h" #include "impeller/core/device_buffer_descriptor.h" @@ -63,3 +64,5 @@ class Allocator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_ALLOCATOR_H_ diff --git a/engine/src/flutter/impeller/core/buffer.h b/engine/src/flutter/impeller/core/buffer.h index d29e32e1be..0664f1afc5 100644 --- a/engine/src/flutter/impeller/core/buffer.h +++ b/engine/src/flutter/impeller/core/buffer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_BUFFER_H_ +#define FLUTTER_IMPELLER_CORE_BUFFER_H_ #include @@ -20,3 +21,5 @@ class Buffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_BUFFER_H_ diff --git a/engine/src/flutter/impeller/core/buffer_view.h b/engine/src/flutter/impeller/core/buffer_view.h index 1a272a8b29..551bb0b625 100644 --- a/engine/src/flutter/impeller/core/buffer_view.h +++ b/engine/src/flutter/impeller/core/buffer_view.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_BUFFER_VIEW_H_ +#define FLUTTER_IMPELLER_CORE_BUFFER_VIEW_H_ #include "impeller/core/buffer.h" #include "impeller/core/range.h" @@ -18,3 +19,5 @@ struct BufferView { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_BUFFER_VIEW_H_ diff --git a/engine/src/flutter/impeller/core/capture.h b/engine/src/flutter/impeller/core/capture.h index 5f41321c2c..9e5c0d9318 100644 --- a/engine/src/flutter/impeller/core/capture.h +++ b/engine/src/flutter/impeller/core/capture.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_CAPTURE_H_ +#define FLUTTER_IMPELLER_CORE_CAPTURE_H_ #include #include @@ -295,3 +296,5 @@ class CaptureContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_CAPTURE_H_ diff --git a/engine/src/flutter/impeller/core/device_buffer.h b/engine/src/flutter/impeller/core/device_buffer.h index ac0d454df2..c3ed289922 100644 --- a/engine/src/flutter/impeller/core/device_buffer.h +++ b/engine/src/flutter/impeller/core/device_buffer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_ +#define FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_ #include #include @@ -60,3 +61,5 @@ class DeviceBuffer : public Buffer, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_ diff --git a/engine/src/flutter/impeller/core/device_buffer_descriptor.h b/engine/src/flutter/impeller/core/device_buffer_descriptor.h index 976b8f7b0a..d1bf458942 100644 --- a/engine/src/flutter/impeller/core/device_buffer_descriptor.h +++ b/engine/src/flutter/impeller/core/device_buffer_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_DESCRIPTOR_H_ #include @@ -16,3 +17,5 @@ struct DeviceBufferDescriptor { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/core/formats.h b/engine/src/flutter/impeller/core/formats.h index 071fc3c884..5d5d64299f 100644 --- a/engine/src/flutter/impeller/core/formats.h +++ b/engine/src/flutter/impeller/core/formats.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_FORMATS_H_ +#define FLUTTER_IMPELLER_CORE_FORMATS_H_ #include #include @@ -679,3 +680,5 @@ struct hash { }; } // namespace std + +#endif // FLUTTER_IMPELLER_CORE_FORMATS_H_ diff --git a/engine/src/flutter/impeller/core/host_buffer.h b/engine/src/flutter/impeller/core/host_buffer.h index 58d5f111b5..5c3a69c75d 100644 --- a/engine/src/flutter/impeller/core/host_buffer.h +++ b/engine/src/flutter/impeller/core/host_buffer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_HOST_BUFFER_H_ +#define FLUTTER_IMPELLER_CORE_HOST_BUFFER_H_ #include #include @@ -162,3 +163,5 @@ class HostBuffer final : public Buffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_HOST_BUFFER_H_ diff --git a/engine/src/flutter/impeller/core/platform.h b/engine/src/flutter/impeller/core/platform.h index 417a0f90c1..824738c02d 100644 --- a/engine/src/flutter/impeller/core/platform.h +++ b/engine/src/flutter/impeller/core/platform.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_PLATFORM_H_ +#define FLUTTER_IMPELLER_CORE_PLATFORM_H_ #include @@ -20,3 +21,5 @@ constexpr size_t DefaultUniformAlignment() { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_PLATFORM_H_ diff --git a/engine/src/flutter/impeller/core/range.h b/engine/src/flutter/impeller/core/range.h index e1a2887813..d0971725c6 100644 --- a/engine/src/flutter/impeller/core/range.h +++ b/engine/src/flutter/impeller/core/range.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_RANGE_H_ +#define FLUTTER_IMPELLER_CORE_RANGE_H_ #include @@ -25,3 +26,5 @@ struct Range { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_RANGE_H_ diff --git a/engine/src/flutter/impeller/core/resource_binder.h b/engine/src/flutter/impeller/core/resource_binder.h index a3bbb532f9..6a6172710d 100644 --- a/engine/src/flutter/impeller/core/resource_binder.h +++ b/engine/src/flutter/impeller/core/resource_binder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_ +#define FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_ #include @@ -35,3 +36,5 @@ struct ResourceBinder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_RESOURCE_BINDER_H_ diff --git a/engine/src/flutter/impeller/core/runtime_types.h b/engine/src/flutter/impeller/core/runtime_types.h index 67d66e9784..4fb210d728 100644 --- a/engine/src/flutter/impeller/core/runtime_types.h +++ b/engine/src/flutter/impeller/core/runtime_types.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_RUNTIME_TYPES_H_ +#define FLUTTER_IMPELLER_CORE_RUNTIME_TYPES_H_ #include #include @@ -50,3 +51,5 @@ struct RuntimeUniformDescription { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_RUNTIME_TYPES_H_ diff --git a/engine/src/flutter/impeller/core/sampler.h b/engine/src/flutter/impeller/core/sampler.h index afc3968c4c..0c06ad17d3 100644 --- a/engine/src/flutter/impeller/core/sampler.h +++ b/engine/src/flutter/impeller/core/sampler.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_SAMPLER_H_ +#define FLUTTER_IMPELLER_CORE_SAMPLER_H_ #include @@ -36,3 +37,5 @@ using SamplerMap = std::unordered_map>; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_SAMPLER_H_ diff --git a/engine/src/flutter/impeller/core/sampler_descriptor.h b/engine/src/flutter/impeller/core/sampler_descriptor.h index 45163b1cc2..0e92745ec3 100644 --- a/engine/src/flutter/impeller/core/sampler_descriptor.h +++ b/engine/src/flutter/impeller/core/sampler_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_SAMPLER_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_CORE_SAMPLER_DESCRIPTOR_H_ #include "impeller/base/comparable.h" #include "impeller/core/formats.h" @@ -47,3 +48,5 @@ struct SamplerDescriptor final : public Comparable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_SAMPLER_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/core/shader_types.h b/engine/src/flutter/impeller/core/shader_types.h index 83fd120baf..8b267dbe48 100644 --- a/engine/src/flutter/impeller/core/shader_types.h +++ b/engine/src/flutter/impeller/core/shader_types.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_SHADER_TYPES_H_ +#define FLUTTER_IMPELLER_CORE_SHADER_TYPES_H_ #include #include @@ -185,3 +186,5 @@ inline constexpr Vector4 ToVector(Color color) { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_SHADER_TYPES_H_ diff --git a/engine/src/flutter/impeller/core/texture.h b/engine/src/flutter/impeller/core/texture.h index 8c6e3238b6..b28dbb27ab 100644 --- a/engine/src/flutter/impeller/core/texture.h +++ b/engine/src/flutter/impeller/core/texture.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_TEXTURE_H_ +#define FLUTTER_IMPELLER_CORE_TEXTURE_H_ #include @@ -73,3 +74,5 @@ class Texture { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_TEXTURE_H_ diff --git a/engine/src/flutter/impeller/core/texture_descriptor.h b/engine/src/flutter/impeller/core/texture_descriptor.h index e168895c67..8c1868f3ce 100644 --- a/engine/src/flutter/impeller/core/texture_descriptor.h +++ b/engine/src/flutter/impeller/core/texture_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_TEXTURE_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_CORE_TEXTURE_DESCRIPTOR_H_ #include "impeller/core/formats.h" #include "impeller/geometry/size.h" @@ -89,3 +90,5 @@ struct TextureDescriptor { std::string TextureDescriptorToString(const TextureDescriptor& desc); } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_TEXTURE_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/core/vertex_buffer.h b/engine/src/flutter/impeller/core/vertex_buffer.h index 7beac43d3c..b88654ce9e 100644 --- a/engine/src/flutter/impeller/core/vertex_buffer.h +++ b/engine/src/flutter/impeller/core/vertex_buffer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_CORE_VERTEX_BUFFER_H_ +#define FLUTTER_IMPELLER_CORE_VERTEX_BUFFER_H_ #include "impeller/core/buffer_view.h" #include "impeller/core/formats.h" @@ -34,3 +35,5 @@ struct VertexBuffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_CORE_VERTEX_BUFFER_H_ diff --git a/engine/src/flutter/impeller/display_list/dl_dispatcher.h b/engine/src/flutter/impeller/display_list/dl_dispatcher.h index 10ed7fc610..a0a1fcfb8d 100644 --- a/engine/src/flutter/impeller/display_list/dl_dispatcher.h +++ b/engine/src/flutter/impeller/display_list/dl_dispatcher.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_DISPATCHER_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_DISPATCHER_H_ #include "flutter/display_list/dl_op_receiver.h" #include "impeller/aiks/canvas_type.h" @@ -235,3 +236,5 @@ class DlDispatcher final : public flutter::DlOpReceiver { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_DISPATCHER_H_ diff --git a/engine/src/flutter/impeller/display_list/dl_image_impeller.h b/engine/src/flutter/impeller/display_list/dl_image_impeller.h index 8f9e51443b..920c21fc8f 100644 --- a/engine/src/flutter/impeller/display_list/dl_image_impeller.h +++ b/engine/src/flutter/impeller/display_list/dl_image_impeller.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_ #include "flutter/display_list/image/dl_image.h" #include "impeller/core/texture.h" @@ -63,3 +64,5 @@ class DlImageImpeller final : public flutter::DlImage { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_IMAGE_IMPELLER_H_ diff --git a/engine/src/flutter/impeller/display_list/dl_playground.h b/engine/src/flutter/impeller/display_list/dl_playground.h index 7b47c36437..b49b1a556e 100644 --- a/engine/src/flutter/impeller/display_list/dl_playground.h +++ b/engine/src/flutter/impeller/display_list/dl_playground.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_ #include "flutter/display_list/display_list.h" #include "flutter/display_list/dl_builder.h" @@ -37,3 +38,5 @@ class DlPlayground : public PlaygroundTest { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_PLAYGROUND_H_ diff --git a/engine/src/flutter/impeller/display_list/dl_vertices_geometry.h b/engine/src/flutter/impeller/display_list/dl_vertices_geometry.h index 466ed932a7..e7502cdc83 100644 --- a/engine/src/flutter/impeller/display_list/dl_vertices_geometry.h +++ b/engine/src/flutter/impeller/display_list/dl_vertices_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_DL_VERTICES_GEOMETRY_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_DL_VERTICES_GEOMETRY_H_ #include "flutter/display_list/dl_vertices.h" @@ -14,3 +15,5 @@ std::shared_ptr MakeVertices( const flutter::DlVertices* vertices); } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_DL_VERTICES_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/display_list/nine_patch_converter.h b/engine/src/flutter/impeller/display_list/nine_patch_converter.h index 44afe97d2f..2d0974baa1 100644 --- a/engine/src/flutter/impeller/display_list/nine_patch_converter.h +++ b/engine/src/flutter/impeller/display_list/nine_patch_converter.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_NINE_PATCH_CONVERTER_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_NINE_PATCH_CONVERTER_H_ #include @@ -43,3 +44,5 @@ class NinePatchConverter { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_NINE_PATCH_CONVERTER_H_ diff --git a/engine/src/flutter/impeller/display_list/skia_conversions.h b/engine/src/flutter/impeller/display_list/skia_conversions.h index 6b02c8b609..a0fe839d29 100644 --- a/engine/src/flutter/impeller/display_list/skia_conversions.h +++ b/engine/src/flutter/impeller/display_list/skia_conversions.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_DISPLAY_LIST_SKIA_CONVERSIONS_H_ +#define FLUTTER_IMPELLER_DISPLAY_LIST_SKIA_CONVERSIONS_H_ #include "display_list/dl_color.h" #include "display_list/effects/dl_color_source.h" @@ -70,3 +71,5 @@ void ConvertStops(const flutter::DlGradientColorSourceBase* gradient, } // namespace skia_conversions } // namespace impeller + +#endif // FLUTTER_IMPELLER_DISPLAY_LIST_SKIA_CONVERSIONS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/anonymous_contents.h b/engine/src/flutter/impeller/entity/contents/anonymous_contents.h index a02769b809..0efbfa7487 100644 --- a/engine/src/flutter/impeller/entity/contents/anonymous_contents.h +++ b/engine/src/flutter/impeller/entity/contents/anonymous_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_ANONYMOUS_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_ANONYMOUS_CONTENTS_H_ #include #include @@ -40,3 +41,5 @@ class AnonymousContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_ANONYMOUS_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/atlas_contents.h b/engine/src/flutter/impeller/entity/contents/atlas_contents.h index 3e6c595856..12e5e232d3 100644 --- a/engine/src/flutter/impeller/entity/contents/atlas_contents.h +++ b/engine/src/flutter/impeller/entity/contents/atlas_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_ATLAS_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_ATLAS_CONTENTS_H_ #include #include @@ -161,3 +162,5 @@ class AtlasColorContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_ATLAS_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/checkerboard_contents.h b/engine/src/flutter/impeller/entity/contents/checkerboard_contents.h index 1c8682a287..43b2ae7942 100644 --- a/engine/src/flutter/impeller/entity/contents/checkerboard_contents.h +++ b/engine/src/flutter/impeller/entity/contents/checkerboard_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CHECKERBOARD_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CHECKERBOARD_CONTENTS_H_ #include "impeller/entity/contents/contents.h" @@ -40,3 +41,5 @@ class CheckerboardContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_CHECKERBOARD_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/clip_contents.h b/engine/src/flutter/impeller/entity/contents/clip_contents.h index eaf156b018..b519cc255e 100644 --- a/engine/src/flutter/impeller/entity/contents/clip_contents.h +++ b/engine/src/flutter/impeller/entity/contents/clip_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CLIP_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CLIP_CONTENTS_H_ #include #include @@ -100,3 +101,5 @@ class ClipRestoreContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_CLIP_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/color_source_contents.h b/engine/src/flutter/impeller/entity/contents/color_source_contents.h index a35d4d2277..ca21097664 100644 --- a/engine/src/flutter/impeller/entity/contents/color_source_contents.h +++ b/engine/src/flutter/impeller/entity/contents/color_source_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_COLOR_SOURCE_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_COLOR_SOURCE_CONTENTS_H_ #include "flutter/fml/macros.h" #include "impeller/entity/contents/contents.h" @@ -113,3 +114,5 @@ class ColorSourceContents : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_COLOR_SOURCE_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/conical_gradient_contents.h b/engine/src/flutter/impeller/entity/contents/conical_gradient_contents.h index 52a4a36697..db3b86b98e 100644 --- a/engine/src/flutter/impeller/entity/contents/conical_gradient_contents.h +++ b/engine/src/flutter/impeller/entity/contents/conical_gradient_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CONICAL_GRADIENT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CONICAL_GRADIENT_CONTENTS_H_ #include #include @@ -70,3 +71,5 @@ class ConicalGradientContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_CONICAL_GRADIENT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/content_context.h b/engine/src/flutter/impeller/entity/contents/content_context.h index e23ddcc1c0..b9ee0ffc93 100644 --- a/engine/src/flutter/impeller/entity/contents/content_context.h +++ b/engine/src/flutter/impeller/entity/contents/content_context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENT_CONTEXT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENT_CONTEXT_H_ #include #include @@ -909,3 +910,5 @@ class ContentContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENT_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/contents.h b/engine/src/flutter/impeller/entity/contents/contents.h index d1dbb3349b..9a9ea86609 100644 --- a/engine/src/flutter/impeller/entity/contents/contents.h +++ b/engine/src/flutter/impeller/entity/contents/contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENTS_H_ #include #include @@ -201,3 +202,5 @@ class Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.h index 8a3841b32c..562f306034 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BLEND_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BLEND_FILTER_CONTENTS_H_ #include #include "impeller/entity/contents/filters/color_filter_contents.h" @@ -101,3 +102,5 @@ class BlendFilterContents : public ColorFilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BLEND_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/border_mask_blur_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/border_mask_blur_filter_contents.h index 90b8e2a44c..10be38dbb7 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/border_mask_blur_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/border_mask_blur_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BORDER_MASK_BLUR_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BORDER_MASK_BLUR_FILTER_CONTENTS_H_ #include #include @@ -56,3 +57,5 @@ class BorderMaskBlurFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_BORDER_MASK_BLUR_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/color_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/color_filter_contents.h index 7fc77d7e32..14d9cb8aa5 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/color_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/color_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/filter_contents.h" @@ -59,3 +60,5 @@ class ColorFilterContents : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/color_matrix_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/color_matrix_filter_contents.h index 6c5c253941..e394125f79 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/color_matrix_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/color_matrix_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_MATRIX_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_MATRIX_FILTER_CONTENTS_H_ #include #include @@ -41,3 +42,5 @@ class ColorMatrixFilterContents final : public ColorFilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_COLOR_MATRIX_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h index ff15c388c7..2ea5df044f 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_DIRECTIONAL_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_DIRECTIONAL_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ #include #include @@ -104,3 +105,5 @@ class DirectionalGaussianBlurFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_DIRECTIONAL_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/filter_contents.h index b6aba37776..3e210d8f0f 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_FILTER_CONTENTS_H_ #include #include @@ -239,3 +240,5 @@ class FilterContents : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/gaussian_blur_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/gaussian_blur_filter_contents.h index 7d390ddf87..143c6f5ab0 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/gaussian_blur_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/gaussian_blur_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ #include #include "impeller/entity/contents/filters/filter_contents.h" @@ -71,3 +72,5 @@ class GaussianBlurFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_GAUSSIAN_BLUR_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/inputs/contents_filter_input.h b/engine/src/flutter/impeller/entity/contents/filters/inputs/contents_filter_input.h index 983161fa72..8d381b7653 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/inputs/contents_filter_input.h +++ b/engine/src/flutter/impeller/entity/contents/filters/inputs/contents_filter_input.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_CONTENTS_FILTER_INPUT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_CONTENTS_FILTER_INPUT_H_ #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -41,3 +42,5 @@ class ContentsFilterInput final : public FilterInput { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_CONTENTS_FILTER_INPUT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h b/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h index ca3137ac46..965d45b3b1 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h +++ b/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_CONTENTS_FILTER_INPUT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_CONTENTS_FILTER_INPUT_H_ #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -66,3 +67,5 @@ class FilterContentsFilterInput final : public FilterInput { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_CONTENTS_FILTER_INPUT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_input.h b/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_input.h index 9d1dd5189e..20a7136b44 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_input.h +++ b/engine/src/flutter/impeller/entity/contents/filters/inputs/filter_input.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_INPUT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_INPUT_H_ #include #include @@ -92,3 +93,5 @@ class FilterInput { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_FILTER_INPUT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/inputs/placeholder_filter_input.h b/engine/src/flutter/impeller/entity/contents/filters/inputs/placeholder_filter_input.h index 09d5be61f1..a6305bc22b 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/inputs/placeholder_filter_input.h +++ b/engine/src/flutter/impeller/entity/contents/filters/inputs/placeholder_filter_input.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_ #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -39,3 +40,5 @@ class PlaceholderFilterInput final : public FilterInput { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_PLACEHOLDER_FILTER_INPUT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/inputs/texture_filter_input.h b/engine/src/flutter/impeller/entity/contents/filters/inputs/texture_filter_input.h index 757f570800..320eb1b191 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/inputs/texture_filter_input.h +++ b/engine/src/flutter/impeller/entity/contents/filters/inputs/texture_filter_input.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_TEXTURE_FILTER_INPUT_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_TEXTURE_FILTER_INPUT_H_ #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -41,3 +42,5 @@ class TextureFilterInput final : public FilterInput { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_INPUTS_TEXTURE_FILTER_INPUT_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h index e70a98c151..d43703896a 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LINEAR_TO_SRGB_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LINEAR_TO_SRGB_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/color_filter_contents.h" #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -32,3 +33,5 @@ class LinearToSrgbFilterContents final : public ColorFilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LINEAR_TO_SRGB_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/local_matrix_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/local_matrix_filter_contents.h index 5d9e547a35..0340058a02 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/local_matrix_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/local_matrix_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LOCAL_MATRIX_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LOCAL_MATRIX_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/filter_contents.h" #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -44,3 +45,5 @@ class LocalMatrixFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_LOCAL_MATRIX_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/matrix_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/matrix_filter_contents.h index bb498ea402..dd6334e416 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/matrix_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/matrix_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MATRIX_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MATRIX_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/filter_contents.h" #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -56,3 +57,5 @@ class MatrixFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MATRIX_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/morphology_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/morphology_filter_contents.h index 91482f4673..db3c23071c 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/morphology_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/morphology_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MORPHOLOGY_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MORPHOLOGY_FILTER_CONTENTS_H_ #include #include @@ -56,3 +57,5 @@ class DirectionalMorphologyFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_MORPHOLOGY_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h index 4e1b374943..dfadcffbf0 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_SRGB_TO_LINEAR_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_SRGB_TO_LINEAR_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/color_filter_contents.h" #include "impeller/entity/contents/filters/inputs/filter_input.h" @@ -32,3 +33,5 @@ class SrgbToLinearFilterContents final : public ColorFilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_SRGB_TO_LINEAR_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h b/engine/src/flutter/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h index ef3ae2e522..efa903f0d9 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h +++ b/engine/src/flutter/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_ #include "impeller/entity/contents/filters/filter_contents.h" @@ -39,3 +40,5 @@ class YUVToRGBFilterContents final : public FilterContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FILTERS_YUV_TO_RGB_FILTER_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/framebuffer_blend_contents.h b/engine/src/flutter/impeller/entity/contents/framebuffer_blend_contents.h index ac5b57229f..5335055bd3 100644 --- a/engine/src/flutter/impeller/entity/contents/framebuffer_blend_contents.h +++ b/engine/src/flutter/impeller/entity/contents/framebuffer_blend_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_FRAMEBUFFER_BLEND_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_FRAMEBUFFER_BLEND_CONTENTS_H_ #include @@ -57,3 +58,5 @@ class FramebufferBlendContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_FRAMEBUFFER_BLEND_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/gradient_generator.h b/engine/src/flutter/impeller/entity/contents/gradient_generator.h index 24321d8612..8c3c02e9d9 100644 --- a/engine/src/flutter/impeller/entity/contents/gradient_generator.h +++ b/engine/src/flutter/impeller/entity/contents/gradient_generator.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_GRADIENT_GENERATOR_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_GRADIENT_GENERATOR_H_ #include #include @@ -45,3 +46,5 @@ std::vector CreateGradientColors(const std::vector& colors, const std::vector& stops); } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_GRADIENT_GENERATOR_H_ diff --git a/engine/src/flutter/impeller/entity/contents/linear_gradient_contents.h b/engine/src/flutter/impeller/entity/contents/linear_gradient_contents.h index e73fa8eed8..75b24a3ab9 100644 --- a/engine/src/flutter/impeller/entity/contents/linear_gradient_contents.h +++ b/engine/src/flutter/impeller/entity/contents/linear_gradient_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_LINEAR_GRADIENT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_LINEAR_GRADIENT_CONTENTS_H_ #include #include @@ -71,3 +72,5 @@ class LinearGradientContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_LINEAR_GRADIENT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/radial_gradient_contents.h b/engine/src/flutter/impeller/entity/contents/radial_gradient_contents.h index 8e5ae3e121..87bd981942 100644 --- a/engine/src/flutter/impeller/entity/contents/radial_gradient_contents.h +++ b/engine/src/flutter/impeller/entity/contents/radial_gradient_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_RADIAL_GRADIENT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_RADIAL_GRADIENT_CONTENTS_H_ #include #include @@ -69,3 +70,5 @@ class RadialGradientContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_RADIAL_GRADIENT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.h b/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.h index ada5f58265..c92b6eff24 100644 --- a/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.h +++ b/engine/src/flutter/impeller/entity/contents/runtime_effect_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_RUNTIME_EFFECT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_RUNTIME_EFFECT_CONTENTS_H_ #include #include @@ -41,3 +42,5 @@ class RuntimeEffectContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_RUNTIME_EFFECT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/scene_contents.h b/engine/src/flutter/impeller/entity/contents/scene_contents.h index b1f443cd75..e5b249baf9 100644 --- a/engine/src/flutter/impeller/entity/contents/scene_contents.h +++ b/engine/src/flutter/impeller/entity/contents/scene_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_SCENE_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_SCENE_CONTENTS_H_ #if !IMPELLER_ENABLE_3D static_assert(false); @@ -39,3 +40,5 @@ class SceneContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SCENE_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/solid_color_contents.h b/engine/src/flutter/impeller/entity/contents/solid_color_contents.h index d0cc492712..8fb7fc9461 100644 --- a/engine/src/flutter/impeller/entity/contents/solid_color_contents.h +++ b/engine/src/flutter/impeller/entity/contents/solid_color_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_COLOR_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_COLOR_CONTENTS_H_ #include #include @@ -63,3 +64,5 @@ class SolidColorContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_COLOR_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/solid_rrect_blur_contents.h b/engine/src/flutter/impeller/entity/contents/solid_rrect_blur_contents.h index 41930406a8..6d697b257e 100644 --- a/engine/src/flutter/impeller/entity/contents/solid_rrect_blur_contents.h +++ b/engine/src/flutter/impeller/entity/contents/solid_rrect_blur_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_ #include #include @@ -60,3 +61,5 @@ class SolidRRectBlurContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/sweep_gradient_contents.h b/engine/src/flutter/impeller/entity/contents/sweep_gradient_contents.h index 1760cb3de9..d46fbee857 100644 --- a/engine/src/flutter/impeller/entity/contents/sweep_gradient_contents.h +++ b/engine/src/flutter/impeller/entity/contents/sweep_gradient_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_SWEEP_GRADIENT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_SWEEP_GRADIENT_CONTENTS_H_ #include #include @@ -72,3 +73,5 @@ class SweepGradientContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SWEEP_GRADIENT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/test/contents_test_helpers.h b/engine/src/flutter/impeller/entity/contents/test/contents_test_helpers.h index e65b5636ef..afcef40c84 100644 --- a/engine/src/flutter/impeller/entity/contents/test/contents_test_helpers.h +++ b/engine/src/flutter/impeller/entity/contents/test/contents_test_helpers.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_ #include "impeller/renderer/command.h" @@ -43,3 +44,5 @@ typename T::FragInfo* GetFragInfo(const Command& command) { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/text_contents.h b/engine/src/flutter/impeller/entity/contents/text_contents.h index 22a0bd04e6..c7deaa3642 100644 --- a/engine/src/flutter/impeller/entity/contents/text_contents.h +++ b/engine/src/flutter/impeller/entity/contents/text_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXT_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXT_CONTENTS_H_ #include #include @@ -80,3 +81,5 @@ class TextContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXT_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/texture_contents.h b/engine/src/flutter/impeller/entity/contents/texture_contents.h index 1cee26ac20..5c9921fd30 100644 --- a/engine/src/flutter/impeller/entity/contents/texture_contents.h +++ b/engine/src/flutter/impeller/entity/contents/texture_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXTURE_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXTURE_CONTENTS_H_ #include #include @@ -94,3 +95,5 @@ class TextureContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TEXTURE_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/tiled_texture_contents.h b/engine/src/flutter/impeller/entity/contents/tiled_texture_contents.h index 90ee30af73..b0a4af1dab 100644 --- a/engine/src/flutter/impeller/entity/contents/tiled_texture_contents.h +++ b/engine/src/flutter/impeller/entity/contents/tiled_texture_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TILED_TEXTURE_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TILED_TEXTURE_CONTENTS_H_ #include #include @@ -83,3 +84,5 @@ class TiledTextureContents final : public ColorSourceContents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_TILED_TEXTURE_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/contents/vertices_contents.h b/engine/src/flutter/impeller/entity/contents/vertices_contents.h index 8aedfdf909..b5d3590f02 100644 --- a/engine/src/flutter/impeller/entity/contents/vertices_contents.h +++ b/engine/src/flutter/impeller/entity/contents/vertices_contents.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_VERTICES_CONTENTS_H_ +#define FLUTTER_IMPELLER_ENTITY_CONTENTS_VERTICES_CONTENTS_H_ #include #include @@ -108,3 +109,5 @@ class VerticesUVContents final : public Contents { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_VERTICES_CONTENTS_H_ diff --git a/engine/src/flutter/impeller/entity/entity.h b/engine/src/flutter/impeller/entity/entity.h index c5d98b5a11..72671320dc 100644 --- a/engine/src/flutter/impeller/entity/entity.h +++ b/engine/src/flutter/impeller/entity/entity.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_H_ +#define FLUTTER_IMPELLER_ENTITY_ENTITY_H_ #include @@ -128,3 +129,5 @@ class Entity { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_H_ diff --git a/engine/src/flutter/impeller/entity/entity_pass.h b/engine/src/flutter/impeller/entity/entity_pass.h index 08b34377a4..1ff08f077e 100644 --- a/engine/src/flutter/impeller/entity/entity_pass.h +++ b/engine/src/flutter/impeller/entity/entity_pass.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_H_ +#define FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_H_ #include #include @@ -335,3 +336,5 @@ class EntityPassClipRecorder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_H_ diff --git a/engine/src/flutter/impeller/entity/entity_pass_delegate.h b/engine/src/flutter/impeller/entity/entity_pass_delegate.h index 8708edf18b..72a38af65e 100644 --- a/engine/src/flutter/impeller/entity/entity_pass_delegate.h +++ b/engine/src/flutter/impeller/entity/entity_pass_delegate.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_DELEGATE_H_ +#define FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_DELEGATE_H_ #include @@ -45,3 +46,5 @@ class EntityPassDelegate { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_DELEGATE_H_ diff --git a/engine/src/flutter/impeller/entity/entity_pass_target.h b/engine/src/flutter/impeller/entity/entity_pass_target.h index 76e90ece6f..204944e4b3 100644 --- a/engine/src/flutter/impeller/entity/entity_pass_target.h +++ b/engine/src/flutter/impeller/entity/entity_pass_target.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_TARGET_H_ +#define FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_TARGET_H_ #include "fml/macros.h" #include "impeller/renderer/render_target.h" @@ -43,3 +44,5 @@ class EntityPassTarget { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_PASS_TARGET_H_ diff --git a/engine/src/flutter/impeller/entity/entity_playground.h b/engine/src/flutter/impeller/entity/entity_playground.h index 10604f6072..41dc21658e 100644 --- a/engine/src/flutter/impeller/entity/entity_playground.h +++ b/engine/src/flutter/impeller/entity/entity_playground.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_ +#define FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_ #include "impeller/playground/playground_test.h" @@ -43,3 +44,5 @@ class EntityPlayground : public PlaygroundTest { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_ENTITY_PLAYGROUND_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/circle_geometry.h b/engine/src/flutter/impeller/entity/geometry/circle_geometry.h index d74c41b99c..be75f89131 100644 --- a/engine/src/flutter/impeller/entity/geometry/circle_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/circle_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_CIRCLE_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_CIRCLE_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -55,3 +56,5 @@ class CircleGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_CIRCLE_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/cover_geometry.h b/engine/src/flutter/impeller/entity/geometry/cover_geometry.h index 653b0c5f97..3d7675648e 100644 --- a/engine/src/flutter/impeller/entity/geometry/cover_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/cover_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_COVER_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_COVER_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -46,3 +47,5 @@ class CoverGeometry final : public Geometry { static_assert(std::is_trivially_destructible::value); } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_COVER_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/ellipse_geometry.h b/engine/src/flutter/impeller/entity/geometry/ellipse_geometry.h index cd294a67bd..892d03568e 100644 --- a/engine/src/flutter/impeller/entity/geometry/ellipse_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/ellipse_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_ELLIPSE_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_ELLIPSE_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -51,3 +52,5 @@ class EllipseGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_ELLIPSE_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/fill_path_geometry.h b/engine/src/flutter/impeller/entity/geometry/fill_path_geometry.h index 690db3ea52..a1210846b3 100644 --- a/engine/src/flutter/impeller/entity/geometry/fill_path_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/fill_path_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_FILL_PATH_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_FILL_PATH_GEOMETRY_H_ #include @@ -50,3 +51,5 @@ class FillPathGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_FILL_PATH_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/geometry.h b/engine/src/flutter/impeller/entity/geometry/geometry.h index a58dfec38d..a958f8e5aa 100644 --- a/engine/src/flutter/impeller/entity/geometry/geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_GEOMETRY_H_ #include "impeller/core/formats.h" #include "impeller/core/vertex_buffer.h" @@ -134,3 +135,5 @@ class Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/line_geometry.h b/engine/src/flutter/impeller/entity/geometry/line_geometry.h index 19bf5665ae..58032074ed 100644 --- a/engine/src/flutter/impeller/entity/geometry/line_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/line_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_ #include #include "impeller/entity/geometry/geometry.h" @@ -76,3 +77,5 @@ class LineGeometry final : public Geometry { static_assert(std::is_trivially_destructible::value); } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/point_field_geometry.h b/engine/src/flutter/impeller/entity/geometry/point_field_geometry.h index 944db2df96..9d43f07cb9 100644 --- a/engine/src/flutter/impeller/entity/geometry/point_field_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/point_field_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -57,3 +58,5 @@ class PointFieldGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_POINT_FIELD_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/rect_geometry.h b/engine/src/flutter/impeller/entity/geometry/rect_geometry.h index 35f1762ed2..91842a0276 100644 --- a/engine/src/flutter/impeller/entity/geometry/rect_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/rect_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_RECT_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_RECT_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -49,3 +50,5 @@ class RectGeometry final : public Geometry { static_assert(std::is_trivially_destructible::value); } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_RECT_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/round_rect_geometry.h b/engine/src/flutter/impeller/entity/geometry/round_rect_geometry.h index 36d345fc49..78f0523a20 100644 --- a/engine/src/flutter/impeller/entity/geometry/round_rect_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/round_rect_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_ROUND_RECT_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_ROUND_RECT_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -52,3 +53,5 @@ class RoundRectGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_ROUND_RECT_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/stroke_path_geometry.h b/engine/src/flutter/impeller/entity/geometry/stroke_path_geometry.h index 32db2d0d8b..ef08a98ed5 100644 --- a/engine/src/flutter/impeller/entity/geometry/stroke_path_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/stroke_path_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_STROKE_PATH_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_STROKE_PATH_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -94,3 +95,5 @@ class StrokePathGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_STROKE_PATH_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/geometry/vertices_geometry.h b/engine/src/flutter/impeller/entity/geometry/vertices_geometry.h index 1e32961fd5..8f4d2be485 100644 --- a/engine/src/flutter/impeller/entity/geometry/vertices_geometry.h +++ b/engine/src/flutter/impeller/entity/geometry/vertices_geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_ +#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_ #include "impeller/entity/geometry/geometry.h" @@ -69,3 +70,5 @@ class VerticesGeometry final : public Geometry { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_GEOMETRY_VERTICES_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/entity/inline_pass_context.h b/engine/src/flutter/impeller/entity/inline_pass_context.h index 4da816478a..595d291b5a 100644 --- a/engine/src/flutter/impeller/entity/inline_pass_context.h +++ b/engine/src/flutter/impeller/entity/inline_pass_context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_INLINE_PASS_CONTEXT_H_ +#define FLUTTER_IMPELLER_ENTITY_INLINE_PASS_CONTEXT_H_ #include @@ -60,3 +61,5 @@ class InlinePassContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_INLINE_PASS_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/entity/render_target_cache.h b/engine/src/flutter/impeller/entity/render_target_cache.h index 4be1c1daeb..b59bd43983 100644 --- a/engine/src/flutter/impeller/entity/render_target_cache.h +++ b/engine/src/flutter/impeller/entity/render_target_cache.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_ENTITY_RENDER_TARGET_CACHE_H_ +#define FLUTTER_IMPELLER_ENTITY_RENDER_TARGET_CACHE_H_ #include "impeller/renderer/render_target.h" @@ -45,3 +46,5 @@ class RenderTargetCache : public RenderTargetAllocator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_ENTITY_RENDER_TARGET_CACHE_H_ diff --git a/engine/src/flutter/impeller/fixtures/golden_paths.h b/engine/src/flutter/impeller/fixtures/golden_paths.h index 95fae57792..16767f766b 100644 --- a/engine/src/flutter/impeller/fixtures/golden_paths.h +++ b/engine/src/flutter/impeller/fixtures/golden_paths.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_FIXTURES_GOLDEN_PATHS_H_ +#define FLUTTER_IMPELLER_FIXTURES_GOLDEN_PATHS_H_ #include @@ -67,3 +68,5 @@ std::vector golden_cubic_and_quad_points = { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_FIXTURES_GOLDEN_PATHS_H_ diff --git a/engine/src/flutter/impeller/fixtures/types.h b/engine/src/flutter/impeller/fixtures/types.h index aca0e96ad7..e26dbee068 100644 --- a/engine/src/flutter/impeller/fixtures/types.h +++ b/engine/src/flutter/impeller/fixtures/types.h @@ -2,10 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_FIXTURES_TYPES_H_ +#define FLUTTER_IMPELLER_FIXTURES_TYPES_H_ struct Uniforms { mat4 model; mat4 view; mat4 projection; }; + +#endif // FLUTTER_IMPELLER_FIXTURES_TYPES_H_ diff --git a/engine/src/flutter/impeller/geometry/color.h b/engine/src/flutter/impeller/geometry/color.h index e31a82031b..6aa8b502ae 100644 --- a/engine/src/flutter/impeller/geometry/color.h +++ b/engine/src/flutter/impeller/geometry/color.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_COLOR_H_ +#define FLUTTER_IMPELLER_GEOMETRY_COLOR_H_ #include #include @@ -954,3 +955,5 @@ inline std::ostream& operator<<(std::ostream& out, const impeller::Color& c) { } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_COLOR_H_ diff --git a/engine/src/flutter/impeller/geometry/constants.h b/engine/src/flutter/impeller/geometry/constants.h index eb600e90da..2fa8e037db 100644 --- a/engine/src/flutter/impeller/geometry/constants.h +++ b/engine/src/flutter/impeller/geometry/constants.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_CONSTANTS_H_ +#define FLUTTER_IMPELLER_GEOMETRY_CONSTANTS_H_ namespace impeller { @@ -55,3 +56,5 @@ constexpr float kPhi = 1.61803398874989484820f; constexpr float kEhCloseEnough = 1e-3f; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_CONSTANTS_H_ diff --git a/engine/src/flutter/impeller/geometry/geometry_asserts.h b/engine/src/flutter/impeller/geometry/geometry_asserts.h index de38b445fb..f5eeac9550 100644 --- a/engine/src/flutter/impeller/geometry/geometry_asserts.h +++ b/engine/src/flutter/impeller/geometry/geometry_asserts.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_GEOMETRY_ASSERTS_H_ +#define FLUTTER_IMPELLER_GEOMETRY_GEOMETRY_ASSERTS_H_ #include #include @@ -175,3 +176,5 @@ inline ::testing::AssertionResult ColorsNear(std::vector a, #define EXPECT_ARRAY_4_NEAR(a, b) EXPECT_PRED2(&::Array4Near, a, b) #define EXPECT_COLOR_BUFFER_NEAR(a, b) EXPECT_PRED2(&::ColorBufferNear, a, b) #define EXPECT_COLORS_NEAR(a, b) EXPECT_PRED2(&::ColorsNear, a, b) + +#endif // FLUTTER_IMPELLER_GEOMETRY_GEOMETRY_ASSERTS_H_ diff --git a/engine/src/flutter/impeller/geometry/gradient.h b/engine/src/flutter/impeller/geometry/gradient.h index 5aca0be745..8d6e70a2e3 100644 --- a/engine/src/flutter/impeller/geometry/gradient.h +++ b/engine/src/flutter/impeller/geometry/gradient.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_GRADIENT_H_ +#define FLUTTER_IMPELLER_GEOMETRY_GRADIENT_H_ #include #include @@ -32,3 +33,5 @@ GradientData CreateGradientBuffer(const std::vector& colors, const std::vector& stops); } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_GRADIENT_H_ diff --git a/engine/src/flutter/impeller/geometry/half.h b/engine/src/flutter/impeller/geometry/half.h index d5aef60e0d..8ab60a0f57 100644 --- a/engine/src/flutter/impeller/geometry/half.h +++ b/engine/src/flutter/impeller/geometry/half.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_HALF_H_ +#define FLUTTER_IMPELLER_GEOMETRY_HALF_H_ #include @@ -190,3 +191,5 @@ inline std::ostream& operator<<(std::ostream& out, // NOLINTEND(google-explicit-constructor) } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_HALF_H_ diff --git a/engine/src/flutter/impeller/geometry/matrix.h b/engine/src/flutter/impeller/geometry/matrix.h index 2a4e222c17..dab9186e69 100644 --- a/engine/src/flutter/impeller/geometry/matrix.h +++ b/engine/src/flutter/impeller/geometry/matrix.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_MATRIX_H_ +#define FLUTTER_IMPELLER_GEOMETRY_MATRIX_H_ #include #include @@ -527,3 +528,5 @@ inline std::ostream& operator<<(std::ostream& out, const impeller::Matrix& m) { } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_MATRIX_H_ diff --git a/engine/src/flutter/impeller/geometry/matrix_decomposition.h b/engine/src/flutter/impeller/geometry/matrix_decomposition.h index 31c01ec5c6..a5b6592f26 100644 --- a/engine/src/flutter/impeller/geometry/matrix_decomposition.h +++ b/engine/src/flutter/impeller/geometry/matrix_decomposition.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_MATRIX_DECOMPOSITION_H_ +#define FLUTTER_IMPELLER_GEOMETRY_MATRIX_DECOMPOSITION_H_ #include "impeller/geometry/quaternion.h" #include "impeller/geometry/scalar.h" @@ -30,3 +31,5 @@ struct MatrixDecomposition { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_MATRIX_DECOMPOSITION_H_ diff --git a/engine/src/flutter/impeller/geometry/path.h b/engine/src/flutter/impeller/geometry/path.h index 0b1e5962a2..f4f5800ab1 100644 --- a/engine/src/flutter/impeller/geometry/path.h +++ b/engine/src/flutter/impeller/geometry/path.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_PATH_H_ +#define FLUTTER_IMPELLER_GEOMETRY_PATH_H_ #include #include @@ -234,3 +235,5 @@ class Path { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_PATH_H_ diff --git a/engine/src/flutter/impeller/geometry/path_builder.h b/engine/src/flutter/impeller/geometry/path_builder.h index d6c302f164..826d2abfc2 100644 --- a/engine/src/flutter/impeller/geometry/path_builder.h +++ b/engine/src/flutter/impeller/geometry/path_builder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_PATH_BUILDER_H_ +#define FLUTTER_IMPELLER_GEOMETRY_PATH_BUILDER_H_ #include "impeller/geometry/path.h" #include "impeller/geometry/rect.h" @@ -174,3 +175,5 @@ class PathBuilder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_PATH_BUILDER_H_ diff --git a/engine/src/flutter/impeller/geometry/path_component.h b/engine/src/flutter/impeller/geometry/path_component.h index c47b55cbec..8bf1018925 100644 --- a/engine/src/flutter/impeller/geometry/path_component.h +++ b/engine/src/flutter/impeller/geometry/path_component.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_PATH_COMPONENT_H_ +#define FLUTTER_IMPELLER_GEOMETRY_PATH_COMPONENT_H_ #include #include @@ -184,3 +185,5 @@ static_assert(!std::is_polymorphic::value); static_assert(!std::is_polymorphic::value); } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_PATH_COMPONENT_H_ diff --git a/engine/src/flutter/impeller/geometry/point.h b/engine/src/flutter/impeller/geometry/point.h index f8a00c1252..ad978a08ab 100644 --- a/engine/src/flutter/impeller/geometry/point.h +++ b/engine/src/flutter/impeller/geometry/point.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_POINT_H_ +#define FLUTTER_IMPELLER_GEOMETRY_POINT_H_ #include #include @@ -323,3 +324,5 @@ inline std::ostream& operator<<(std::ostream& out, } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_POINT_H_ diff --git a/engine/src/flutter/impeller/geometry/quaternion.h b/engine/src/flutter/impeller/geometry/quaternion.h index 3a5738250f..408f5c04ed 100644 --- a/engine/src/flutter/impeller/geometry/quaternion.h +++ b/engine/src/flutter/impeller/geometry/quaternion.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_QUATERNION_H_ +#define FLUTTER_IMPELLER_GEOMETRY_QUATERNION_H_ #include @@ -97,3 +98,5 @@ inline std::ostream& operator<<(std::ostream& out, } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_QUATERNION_H_ diff --git a/engine/src/flutter/impeller/geometry/rect.h b/engine/src/flutter/impeller/geometry/rect.h index 20781582b7..c371512ccf 100644 --- a/engine/src/flutter/impeller/geometry/rect.h +++ b/engine/src/flutter/impeller/geometry/rect.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_RECT_H_ +#define FLUTTER_IMPELLER_GEOMETRY_RECT_H_ #include #include @@ -436,3 +437,5 @@ inline std::ostream& operator<<(std::ostream& out, } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_RECT_H_ diff --git a/engine/src/flutter/impeller/geometry/scalar.h b/engine/src/flutter/impeller/geometry/scalar.h index ffdc58e336..2600a49c42 100644 --- a/engine/src/flutter/impeller/geometry/scalar.h +++ b/engine/src/flutter/impeller/geometry/scalar.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_SCALAR_H_ +#define FLUTTER_IMPELLER_GEOMETRY_SCALAR_H_ #include #include @@ -57,3 +58,5 @@ struct Degrees { // NOLINTEND(google-explicit-constructor) } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_SCALAR_H_ diff --git a/engine/src/flutter/impeller/geometry/shear.h b/engine/src/flutter/impeller/geometry/shear.h index 155f7ea7fa..c94e26e5f0 100644 --- a/engine/src/flutter/impeller/geometry/shear.h +++ b/engine/src/flutter/impeller/geometry/shear.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_SHEAR_H_ +#define FLUTTER_IMPELLER_GEOMETRY_SHEAR_H_ #include @@ -30,3 +31,5 @@ struct Shear { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_SHEAR_H_ diff --git a/engine/src/flutter/impeller/geometry/sigma.h b/engine/src/flutter/impeller/geometry/sigma.h index c909128be4..9ea85498db 100644 --- a/engine/src/flutter/impeller/geometry/sigma.h +++ b/engine/src/flutter/impeller/geometry/sigma.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_SIGMA_H_ +#define FLUTTER_IMPELLER_GEOMETRY_SIGMA_H_ #include "impeller/geometry/scalar.h" @@ -55,3 +56,5 @@ struct Radius { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_SIGMA_H_ diff --git a/engine/src/flutter/impeller/geometry/size.h b/engine/src/flutter/impeller/geometry/size.h index 9a40dc9a0c..5c1c9c96c9 100644 --- a/engine/src/flutter/impeller/geometry/size.h +++ b/engine/src/flutter/impeller/geometry/size.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_SIZE_H_ +#define FLUTTER_IMPELLER_GEOMETRY_SIZE_H_ #include #include @@ -150,3 +151,5 @@ inline std::ostream& operator<<(std::ostream& out, } } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_SIZE_H_ diff --git a/engine/src/flutter/impeller/geometry/trig.h b/engine/src/flutter/impeller/geometry/trig.h index 332c8ee1dd..da43375744 100644 --- a/engine/src/flutter/impeller/geometry/trig.h +++ b/engine/src/flutter/impeller/geometry/trig.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_TRIG_H_ +#define FLUTTER_IMPELLER_GEOMETRY_TRIG_H_ #include #include @@ -37,3 +38,5 @@ struct Trig { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_TRIG_H_ diff --git a/engine/src/flutter/impeller/geometry/type_traits.h b/engine/src/flutter/impeller/geometry/type_traits.h index 4e884d16c1..7fc0ac4360 100644 --- a/engine/src/flutter/impeller/geometry/type_traits.h +++ b/engine/src/flutter/impeller/geometry/type_traits.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_ +#define FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_ #include @@ -18,3 +19,5 @@ template using MixedOp = typename MixedOp_::type; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GEOMETRY_TYPE_TRAITS_H_ diff --git a/engine/src/flutter/impeller/geometry/vector.h b/engine/src/flutter/impeller/geometry/vector.h index b319776ff2..eadf913297 100644 --- a/engine/src/flutter/impeller/geometry/vector.h +++ b/engine/src/flutter/impeller/geometry/vector.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GEOMETRY_VECTOR_H_ +#define FLUTTER_IMPELLER_GEOMETRY_VECTOR_H_ #include #include @@ -329,3 +330,5 @@ inline std::ostream& operator<<(std::ostream& out, const impeller::Vector4& p) { // NOLINTEND(google-explicit-constructor) } // namespace std + +#endif // FLUTTER_IMPELLER_GEOMETRY_VECTOR_H_ diff --git a/engine/src/flutter/impeller/golden_tests/golden_digest.h b/engine/src/flutter/impeller/golden_tests/golden_digest.h index 4ed422b8aa..aaa4e8fa00 100644 --- a/engine/src/flutter/impeller/golden_tests/golden_digest.h +++ b/engine/src/flutter/impeller/golden_tests/golden_digest.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_DIGEST_H_ +#define FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_DIGEST_H_ #include #include @@ -51,3 +52,5 @@ class GoldenDigest { }; } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_DIGEST_H_ diff --git a/engine/src/flutter/impeller/golden_tests/golden_playground_test.h b/engine/src/flutter/impeller/golden_tests/golden_playground_test.h index 4488dea7bb..d28ee1f3ae 100644 --- a/engine/src/flutter/impeller/golden_tests/golden_playground_test.h +++ b/engine/src/flutter/impeller/golden_tests/golden_playground_test.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_ +#define FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_ #include @@ -79,3 +80,5 @@ class GoldenPlaygroundTest }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_GOLDEN_PLAYGROUND_TEST_H_ diff --git a/engine/src/flutter/impeller/golden_tests/metal_screenshot.h b/engine/src/flutter/impeller/golden_tests/metal_screenshot.h index 3b4814746b..d2f9dab09b 100644 --- a/engine/src/flutter/impeller/golden_tests/metal_screenshot.h +++ b/engine/src/flutter/impeller/golden_tests/metal_screenshot.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOT_H_ +#define FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOT_H_ #include #include @@ -39,3 +40,5 @@ class MetalScreenshot { }; } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOT_H_ diff --git a/engine/src/flutter/impeller/golden_tests/metal_screenshotter.h b/engine/src/flutter/impeller/golden_tests/metal_screenshotter.h index c013cf27d3..292053dd66 100644 --- a/engine/src/flutter/impeller/golden_tests/metal_screenshotter.h +++ b/engine/src/flutter/impeller/golden_tests/metal_screenshotter.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOTTER_H_ +#define FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOTTER_H_ #include "flutter/fml/macros.h" #include "flutter/impeller/aiks/picture.h" @@ -32,3 +33,5 @@ class MetalScreenshotter { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_SCREENSHOTTER_H_ diff --git a/engine/src/flutter/impeller/golden_tests/working_directory.h b/engine/src/flutter/impeller/golden_tests/working_directory.h index fc507c97a8..e6de4ef36f 100644 --- a/engine/src/flutter/impeller/golden_tests/working_directory.h +++ b/engine/src/flutter/impeller/golden_tests/working_directory.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_GOLDEN_TESTS_WORKING_DIRECTORY_H_ +#define FLUTTER_IMPELLER_GOLDEN_TESTS_WORKING_DIRECTORY_H_ #include @@ -35,3 +36,5 @@ class WorkingDirectory { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_WORKING_DIRECTORY_H_ diff --git a/engine/src/flutter/impeller/image/backends/skia/compressed_image_skia.h b/engine/src/flutter/impeller/image/backends/skia/compressed_image_skia.h index 4b940fdbf8..1db71c2bdb 100644 --- a/engine/src/flutter/impeller/image/backends/skia/compressed_image_skia.h +++ b/engine/src/flutter/impeller/image/backends/skia/compressed_image_skia.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_ +#define FLUTTER_IMPELLER_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_ #include "flutter/fml/macros.h" #include "impeller/image/compressed_image.h" @@ -28,3 +29,5 @@ class CompressedImageSkia final : public CompressedImage { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_IMAGE_BACKENDS_SKIA_COMPRESSED_IMAGE_SKIA_H_ diff --git a/engine/src/flutter/impeller/image/compressed_image.h b/engine/src/flutter/impeller/image/compressed_image.h index c758a632b9..69d69db81f 100644 --- a/engine/src/flutter/impeller/image/compressed_image.h +++ b/engine/src/flutter/impeller/image/compressed_image.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_IMAGE_COMPRESSED_IMAGE_H_ +#define FLUTTER_IMPELLER_IMAGE_COMPRESSED_IMAGE_H_ #include @@ -30,3 +31,5 @@ class CompressedImage { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_IMAGE_COMPRESSED_IMAGE_H_ diff --git a/engine/src/flutter/impeller/image/decompressed_image.h b/engine/src/flutter/impeller/image/decompressed_image.h index 56bf9b15c5..d6643b1a43 100644 --- a/engine/src/flutter/impeller/image/decompressed_image.h +++ b/engine/src/flutter/impeller/image/decompressed_image.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_IMAGE_DECOMPRESSED_IMAGE_H_ +#define FLUTTER_IMPELLER_IMAGE_DECOMPRESSED_IMAGE_H_ #include #include @@ -49,3 +50,5 @@ class DecompressedImage { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_IMAGE_DECOMPRESSED_IMAGE_H_ diff --git a/engine/src/flutter/impeller/playground/backend/gles/playground_impl_gles.h b/engine/src/flutter/impeller/playground/backend/gles/playground_impl_gles.h index c16547583c..d1e328230c 100644 --- a/engine/src/flutter/impeller/playground/backend/gles/playground_impl_gles.h +++ b/engine/src/flutter/impeller/playground/backend/gles/playground_impl_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/playground/playground_impl.h" @@ -39,3 +40,5 @@ class PlaygroundImplGLES final : public PlaygroundImpl { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_BACKEND_GLES_PLAYGROUND_IMPL_GLES_H_ diff --git a/engine/src/flutter/impeller/playground/backend/metal/playground_impl_mtl.h b/engine/src/flutter/impeller/playground/backend/metal/playground_impl_mtl.h index b9cf12cde4..937db7a753 100644 --- a/engine/src/flutter/impeller/playground/backend/metal/playground_impl_mtl.h +++ b/engine/src/flutter/impeller/playground/backend/metal/playground_impl_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_BACKEND_METAL_PLAYGROUND_IMPL_MTL_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_METAL_PLAYGROUND_IMPL_MTL_H_ #include @@ -48,3 +49,5 @@ class PlaygroundImplMTL final : public PlaygroundImpl { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_BACKEND_METAL_PLAYGROUND_IMPL_MTL_H_ diff --git a/engine/src/flutter/impeller/playground/backend/vulkan/playground_impl_vk.h b/engine/src/flutter/impeller/playground/backend/vulkan/playground_impl_vk.h index 0fa614224a..eed479b859 100644 --- a/engine/src/flutter/impeller/playground/backend/vulkan/playground_impl_vk.h +++ b/engine/src/flutter/impeller/playground/backend/vulkan/playground_impl_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_PLAYGROUND_IMPL_VK_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_PLAYGROUND_IMPL_VK_H_ #include "flutter/fml/macros.h" #include "impeller/playground/playground_impl.h" @@ -46,3 +47,5 @@ class PlaygroundImplVK final : public PlaygroundImpl { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_PLAYGROUND_IMPL_VK_H_ diff --git a/engine/src/flutter/impeller/playground/compute_playground_test.h b/engine/src/flutter/impeller/playground/compute_playground_test.h index 3af883b66e..1d426a2ae7 100644 --- a/engine/src/flutter/impeller/playground/compute_playground_test.h +++ b/engine/src/flutter/impeller/playground/compute_playground_test.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_COMPUTE_PLAYGROUND_TEST_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_COMPUTE_PLAYGROUND_TEST_H_ #include @@ -66,3 +67,5 @@ class ComputePlaygroundTest info) { return PlaygroundBackendToString(info.param); }); } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_COMPUTE_PLAYGROUND_TEST_H_ diff --git a/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.h b/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.h index 8b60efc31b..cfb624a61c 100644 --- a/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.h +++ b/engine/src/flutter/impeller/playground/imgui/imgui_impl_impeller.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_IMGUI_IMGUI_IMPL_IMPELLER_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_IMGUI_IMGUI_IMPL_IMPELLER_H_ #include @@ -23,3 +24,5 @@ IMGUI_IMPL_API void ImGui_ImplImpeller_Shutdown(); IMGUI_IMPL_API void ImGui_ImplImpeller_RenderDrawData( ImDrawData* draw_data, impeller::RenderPass& renderpass); + +#endif // FLUTTER_IMPELLER_PLAYGROUND_IMGUI_IMGUI_IMPL_IMPELLER_H_ diff --git a/engine/src/flutter/impeller/playground/playground.h b/engine/src/flutter/impeller/playground/playground.h index ee961485f0..c9de5cc9cc 100644 --- a/engine/src/flutter/impeller/playground/playground.h +++ b/engine/src/flutter/impeller/playground/playground.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_H_ #include #include @@ -113,3 +114,5 @@ class Playground { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_H_ diff --git a/engine/src/flutter/impeller/playground/playground_impl.h b/engine/src/flutter/impeller/playground/playground_impl.h index 6f43819c6d..499859f625 100644 --- a/engine/src/flutter/impeller/playground/playground_impl.h +++ b/engine/src/flutter/impeller/playground/playground_impl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_IMPL_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_IMPL_H_ #include @@ -44,3 +45,5 @@ class PlaygroundImpl { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_IMPL_H_ diff --git a/engine/src/flutter/impeller/playground/playground_test.h b/engine/src/flutter/impeller/playground/playground_test.h index 7aba4ee891..2d2539afa4 100644 --- a/engine/src/flutter/impeller/playground/playground_test.h +++ b/engine/src/flutter/impeller/playground/playground_test.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_TEST_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_TEST_H_ #include @@ -68,3 +69,5 @@ class PlaygroundTest : public Playground, }); } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_PLAYGROUND_TEST_H_ diff --git a/engine/src/flutter/impeller/playground/switches.h b/engine/src/flutter/impeller/playground/switches.h index 662f7b153b..1e28a37b19 100644 --- a/engine/src/flutter/impeller/playground/switches.h +++ b/engine/src/flutter/impeller/playground/switches.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_ #include #include @@ -26,3 +27,5 @@ struct PlaygroundSwitches { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_PLAYGROUND_SWITCHES_H_ diff --git a/engine/src/flutter/impeller/playground/widgets.h b/engine/src/flutter/impeller/playground/widgets.h index e80d960d70..59957451b1 100644 --- a/engine/src/flutter/impeller/playground/widgets.h +++ b/engine/src/flutter/impeller/playground/widgets.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_PLAYGROUND_WIDGETS_H_ +#define FLUTTER_IMPELLER_PLAYGROUND_WIDGETS_H_ #include @@ -73,3 +74,5 @@ \ std::make_tuple(position_a, position_b); \ }) + +#endif // FLUTTER_IMPELLER_PLAYGROUND_WIDGETS_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/allocator_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/allocator_gles.h index e36b3515b7..a78980382b 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/allocator_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/allocator_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_ALLOCATOR_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_ALLOCATOR_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/core/allocator.h" @@ -43,3 +44,5 @@ class AllocatorGLES final : public Allocator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_ALLOCATOR_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.h index 570b1f19d3..5fa9c802f3 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/blit_command_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_COMMAND_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_COMMAND_GLES_H_ #include "impeller/base/backend_cast.h" #include "impeller/renderer/backend/gles/reactor_gles.h" @@ -49,3 +50,5 @@ struct BlitGenerateMipmapCommandGLES : public BlitEncodeGLES, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_COMMAND_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/blit_pass_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/blit_pass_gles.h index 857a9ca153..b38fa0da63 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/blit_pass_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/blit_pass_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_ #include @@ -72,3 +73,5 @@ class BlitPassGLES final : public BlitPass, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BLIT_PASS_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/buffer_bindings_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/buffer_bindings_gles.h index c30e4e631b..17f5a5a7b1 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/buffer_bindings_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/buffer_bindings_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BUFFER_BINDINGS_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BUFFER_BINDINGS_GLES_H_ #include #include @@ -81,3 +82,5 @@ class BufferBindingsGLES { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_BUFFER_BINDINGS_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.h index 921d3a4287..baa6d76d37 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/capabilities_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CAPABILITIES_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CAPABILITIES_GLES_H_ #include @@ -123,3 +124,5 @@ class CapabilitiesGLES final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CAPABILITIES_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/command_buffer_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/command_buffer_gles.h index 6cc4ff3c68..23441a1a78 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/command_buffer_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/command_buffer_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/gles/reactor_gles.h" @@ -52,3 +53,5 @@ class CommandBufferGLES final : public CommandBuffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/context_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/context_gles.h index 5bfb5d3997..a81b10ec75 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/context_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/context_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CONTEXT_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CONTEXT_GLES_H_ #include #include @@ -96,3 +97,5 @@ class ContextGLES final : public Context, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_CONTEXT_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/description_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/description_gles.h index 1ef07ed36e..dac13cab61 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/description_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/description_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_ #include #include @@ -48,3 +49,5 @@ class DescriptionGLES { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DESCRIPTION_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/device_buffer_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/device_buffer_gles.h index 65661059ba..8aee746127 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/device_buffer_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/device_buffer_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_ #include #include @@ -65,3 +66,5 @@ class DeviceBufferGLES final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/formats_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/formats_gles.h index b4296fbfe2..02adb19941 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/formats_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/formats_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_FORMATS_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_FORMATS_GLES_H_ #include @@ -197,3 +198,5 @@ constexpr std::optional ToTextureTarget(TextureType type) { std::string DebugToFramebufferError(int status); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_FORMATS_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/gles.h b/engine/src/flutter/impeller/renderer/backend/gles/gles.h index 9022cd02cf..b3a512e0d2 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GLES_H_ // IWYU pragma: begin_exports #include "GLES3/gl3.h" @@ -14,3 +15,5 @@ #define GL_GLEXT_PROTOTYPES #include "GLES2/gl2ext.h" // IWYU pragma: end_exports + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/gpu_tracer_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/gpu_tracer_gles.h index f0f4397480..f6b0de8ab9 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/gpu_tracer_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/gpu_tracer_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GPU_TRACER_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GPU_TRACER_GLES_H_ #include #include @@ -50,3 +51,5 @@ class GPUTracerGLES { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_GPU_TRACER_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/handle_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/handle_gles.h index 3340310f41..a6fefd5923 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/handle_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/handle_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_HANDLE_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_HANDLE_GLES_H_ #include #include @@ -89,3 +90,5 @@ inline std::ostream& operator<<(std::ostream& out, } } // namespace std + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_HANDLE_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_gles.h index 6ea8fe1102..9dfed8d807 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -54,3 +55,5 @@ class PipelineGLES final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.h index 74831525ae..410fcb991a 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/pipeline_library_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_LIBRARY_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_LIBRARY_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/gles/reactor_gles.h" @@ -46,3 +47,5 @@ class PipelineLibraryGLES final : public PipelineLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_LIBRARY_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h index 03af427d8b..7e2bfd0f33 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/proc_table_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PROC_TABLE_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PROC_TABLE_GLES_H_ #include #include @@ -276,3 +277,5 @@ class ProcTableGLES { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PROC_TABLE_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/reactor_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/reactor_gles.h index 5922076943..eff7c34981 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/reactor_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/reactor_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_REACTOR_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_REACTOR_GLES_H_ #include #include @@ -271,3 +272,5 @@ class ReactorGLES { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_REACTOR_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.h index 30bcd7474e..2a003e6bdc 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/render_pass_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_RENDER_PASS_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_RENDER_PASS_GLES_H_ #include @@ -45,3 +46,5 @@ class RenderPassGLES final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_RENDER_PASS_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/sampler_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/sampler_gles.h index 62583054ac..58b7f66cd5 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/sampler_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/sampler_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -36,3 +37,5 @@ class SamplerGLES final : public Sampler, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/sampler_library_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/sampler_library_gles.h index 06e60c8594..47b5f429ce 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/sampler_library_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/sampler_library_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_ #include "flutter/fml/macros.h" #include "impeller/core/sampler_descriptor.h" @@ -35,3 +36,5 @@ class SamplerLibraryGLES final : public SamplerLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/shader_function_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/shader_function_gles.h index 1888bdfd2a..97bf2a49dc 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/shader_function_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/shader_function_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_ #include @@ -40,3 +41,5 @@ class ShaderFunctionGLES final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_FUNCTION_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/shader_library_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/shader_library_gles.h index b2acd22281..8c10a638c8 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/shader_library_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/shader_library_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_LIBRARY_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_LIBRARY_GLES_H_ #include @@ -52,3 +53,5 @@ class ShaderLibraryGLES final : public ShaderLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_LIBRARY_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/surface_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/surface_gles.h index e4eb8bc891..1b040598d3 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/surface_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/surface_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SURFACE_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SURFACE_GLES_H_ #include #include @@ -42,3 +43,5 @@ class SurfaceGLES final : public Surface { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SURFACE_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/gles/texture_gles.h b/engine/src/flutter/impeller/renderer/backend/gles/texture_gles.h index 5ade7d3a0c..704d0ef3a8 100644 --- a/engine/src/flutter/impeller/renderer/backend/gles/texture_gles.h +++ b/engine/src/flutter/impeller/renderer/backend/gles/texture_gles.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_TEXTURE_GLES_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_TEXTURE_GLES_H_ #include "impeller/base/backend_cast.h" #include "impeller/core/texture.h" @@ -95,3 +96,5 @@ class TextureGLES final : public Texture, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_TEXTURE_GLES_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/allocator_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/allocator_mtl.h index fc0dc5ee62..2d097e16b8 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/allocator_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/allocator_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_ALLOCATOR_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_ALLOCATOR_MTL_H_ #include @@ -53,3 +54,5 @@ class AllocatorMTL final : public Allocator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_ALLOCATOR_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/blit_command_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/blit_command_mtl.h index 86062e9c04..90dad19560 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/blit_command_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/blit_command_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_COMMAND_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_COMMAND_MTL_H_ #include @@ -61,3 +62,5 @@ struct BlitCopyBufferToTextureCommandMTL }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_COMMAND_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/blit_pass_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/blit_pass_mtl.h index 4a2ef0caf8..68d0c2d409 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/blit_pass_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/blit_pass_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_PASS_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_PASS_MTL_H_ #include @@ -68,3 +69,5 @@ class BlitPassMTL final : public BlitPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_PASS_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/command_buffer_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/command_buffer_mtl.h index 7e167fa2b3..735142b59a 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/command_buffer_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/command_buffer_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMMAND_BUFFER_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMMAND_BUFFER_MTL_H_ #include @@ -59,3 +60,5 @@ class CommandBufferMTL final : public CommandBuffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMMAND_BUFFER_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.h index 7c06e86478..812749639d 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/compute_pass_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PASS_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PASS_MTL_H_ #include @@ -48,3 +49,5 @@ class ComputePassMTL final : public ComputePass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PASS_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/compute_pipeline_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/compute_pipeline_mtl.h index 39ca1b3bac..1ab1277c04 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/compute_pipeline_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/compute_pipeline_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PIPELINE_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PIPELINE_MTL_H_ #include @@ -41,3 +42,5 @@ class ComputePipelineMTL final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMPUTE_PIPELINE_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/context_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/context_mtl.h index 91b30a9c8a..a3ce8d7fa3 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/context_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/context_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_CONTEXT_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_CONTEXT_MTL_H_ #include @@ -145,3 +146,5 @@ class ContextMTL final : public Context, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_CONTEXT_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/device_buffer_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/device_buffer_mtl.h index 0547deaa7a..93e548895e 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/device_buffer_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/device_buffer_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_DEVICE_BUFFER_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_DEVICE_BUFFER_MTL_H_ #include @@ -57,3 +58,5 @@ class DeviceBufferMTL final : public DeviceBuffer, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_DEVICE_BUFFER_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/formats_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/formats_mtl.h index 95212ce7d6..f476688709 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/formats_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/formats_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_FORMATS_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_FORMATS_MTL_H_ #include @@ -399,3 +400,5 @@ MTLDepthStencilDescriptor* ToMTLDepthStencilDescriptor( MTLTextureDescriptor* ToMTLTextureDescriptor(const TextureDescriptor& desc); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_FORMATS_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/gpu_tracer_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/gpu_tracer_mtl.h index ac2c3916d0..94ada1b97d 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/gpu_tracer_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/gpu_tracer_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_GPU_TRACER_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_GPU_TRACER_MTL_H_ #include @@ -46,3 +47,5 @@ class GPUTracerMTL : public std::enable_shared_from_this { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_GPU_TRACER_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/lazy_drawable_holder.h b/engine/src/flutter/impeller/renderer/backend/metal/lazy_drawable_holder.h index 5062e453e5..c01975b978 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/lazy_drawable_holder.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/lazy_drawable_holder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_LAZY_DRAWABLE_HOLDER_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_LAZY_DRAWABLE_HOLDER_H_ #include @@ -28,3 +29,5 @@ std::shared_ptr CreateTextureFromDrawableFuture( const std::shared_future>& drawble_future); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_LAZY_DRAWABLE_HOLDER_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.h index 06489545e9..7b12ebbd74 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_library_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_LIBRARY_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_LIBRARY_MTL_H_ #include @@ -50,3 +51,5 @@ class PipelineLibraryMTL final : public PipelineLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_LIBRARY_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_mtl.h index d7a03d6b71..b9aca9df8a 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/pipeline_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/pipeline_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_MTL_H_ #include @@ -44,3 +45,5 @@ class PipelineMTL final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_PIPELINE_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.h index 6a3d7469df..69c78573e8 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/render_pass_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_RENDER_PASS_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_RENDER_PASS_MTL_H_ #include @@ -47,3 +48,5 @@ class RenderPassMTL final : public RenderPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_RENDER_PASS_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/sampler_library_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/sampler_library_mtl.h index 84bf62e493..c787666572 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/sampler_library_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/sampler_library_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_LIBRARY_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_LIBRARY_MTL_H_ #include @@ -41,3 +42,5 @@ class SamplerLibraryMTL final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_LIBRARY_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/sampler_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/sampler_mtl.h index 55ee66b4a0..3a9a0fe6b2 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/sampler_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/sampler_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_MTL_H_ #include @@ -40,3 +41,5 @@ class SamplerMTL final : public Sampler, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SAMPLER_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h index fc3008d36f..7375421b02 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/shader_function_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_FUNCTION_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_FUNCTION_MTL_H_ #include @@ -44,3 +45,5 @@ class ShaderFunctionMTL final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_FUNCTION_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/shader_library_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/shader_library_mtl.h index c401696c7e..756cf5fe4c 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/shader_library_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/shader_library_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_LIBRARY_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_LIBRARY_MTL_H_ #include #include @@ -64,3 +65,5 @@ class ShaderLibraryMTL final : public ShaderLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_LIBRARY_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/surface_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/surface_mtl.h index 1a21d72eef..a933ecff87 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/surface_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/surface_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SURFACE_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SURFACE_MTL_H_ #include #include @@ -87,3 +88,5 @@ class SurfaceMTL final : public Surface { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SURFACE_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/texture_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/texture_mtl.h index 632b0491e5..0e6992af5b 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/texture_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/texture_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_MTL_H_ #include @@ -73,3 +74,5 @@ class TextureMTL final : public Texture, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/texture_wrapper_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/texture_wrapper_mtl.h index e6fe71f0f2..1402bd79dc 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/texture_wrapper_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/texture_wrapper_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_ #include "impeller/core/texture.h" @@ -14,3 +15,5 @@ std::shared_ptr WrapTextureMTL( std::function deletion_proc = nullptr); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.h b/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.h index e153e2f149..65c4a9545c 100644 --- a/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.h +++ b/engine/src/flutter/impeller/renderer/backend/metal/vertex_descriptor_mtl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_ #include @@ -35,3 +36,5 @@ class VertexDescriptorMTL { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk.h index 1977b79115..51be4d8eb9 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/allocator_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ALLOCATOR_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ALLOCATOR_VK_H_ #include "flutter/fml/macros.h" #include "flutter/fml/memory/ref_ptr.h" @@ -69,3 +70,5 @@ class AllocatorVK final : public Allocator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ALLOCATOR_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h index 7580c4ff60..1efe7fa52a 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ANDROID_HARDWARE_BUFFER_TEXTURE_SOURCE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ANDROID_HARDWARE_BUFFER_TEXTURE_SOURCE_VK_H_ #include "flutter/fml/build_config.h" #include "vulkan/vulkan_core.h" @@ -57,3 +58,5 @@ class AndroidHardwareBufferTextureSourceVK final : public TextureSourceVK { } // namespace impeller #endif + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_ANDROID_HARDWARE_BUFFER_TEXTURE_SOURCE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/barrier_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/barrier_vk.h index 9dc7bd0268..b4bc225789 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/barrier_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/barrier_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BARRIER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BARRIER_VK_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/vulkan/vk.h" @@ -43,3 +44,5 @@ struct BarrierVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BARRIER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/binding_helpers_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/binding_helpers_vk.h index 14d3145a8d..b232d360cf 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/binding_helpers_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/binding_helpers_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BINDING_HELPERS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BINDING_HELPERS_VK_H_ #include @@ -26,3 +27,5 @@ fml::StatusOr> AllocateAndBindDescriptorSets( const std::vector& commands); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BINDING_HELPERS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/blit_command_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/blit_command_vk.h index dbbf588155..7fa7589e55 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/blit_command_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/blit_command_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_COMMAND_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_COMMAND_VK_H_ #include #include "impeller/base/backend_cast.h" @@ -62,3 +63,5 @@ struct BlitGenerateMipmapCommandVK : public BlitGenerateMipmapCommand, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_COMMAND_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/blit_pass_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/blit_pass_vk.h index 1175dcab96..2fc0c26380 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/blit_pass_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/blit_pass_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_ #include "flutter/fml/macros.h" #include "flutter/impeller/base/config.h" @@ -67,3 +68,5 @@ class BlitPassVK final : public BlitPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_BLIT_PASS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.h index eb9eb08a6f..4cb7ce8996 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/capabilities_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CAPABILITIES_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CAPABILITIES_VK_H_ #include #include @@ -124,3 +125,5 @@ class CapabilitiesVK final : public Capabilities, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CAPABILITIES_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/command_buffer_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/command_buffer_vk.h index 405aba0b57..b1ede05b72 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/command_buffer_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/command_buffer_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_BUFFER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_BUFFER_VK_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -61,3 +62,5 @@ class CommandBufferVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_BUFFER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/command_encoder_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/command_encoder_vk.h index 5455647b74..612c63f213 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/command_encoder_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/command_encoder_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_ENCODER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_ENCODER_VK_H_ #include #include @@ -104,3 +105,5 @@ class CommandEncoderVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_ENCODER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/command_pool_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/command_pool_vk.h index 04a7990401..6fb1bcadcd 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/command_pool_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/command_pool_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_POOL_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_POOL_VK_H_ #include #include @@ -146,3 +147,5 @@ class CommandPoolRecyclerVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_POOL_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pass_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pass_vk.h index 0944e9529f..caf88577bc 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pass_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pass_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PASS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PASS_VK_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/vulkan/command_encoder_vk.h" @@ -39,4 +40,5 @@ class ComputePassVK final : public ComputePass { const ISize& thread_group_size) const override; }; -} // namespace impeller \ No newline at end of file +} // namespace impeller +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PASS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pipeline_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pipeline_vk.h index bf6d53a2f9..3ad7117b45 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pipeline_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/compute_pipeline_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PIPELINE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PIPELINE_VK_H_ #include @@ -53,3 +54,5 @@ class ComputePipelineVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMPUTE_PIPELINE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.h index 33bfcfa346..2bb9927dca 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/context_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CONTEXT_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CONTEXT_VK_H_ #include @@ -216,3 +217,5 @@ class ContextVK final : public Context, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_CONTEXT_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/debug_report_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/debug_report_vk.h index a81d0a27a5..b6ca88f3f4 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/debug_report_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/debug_report_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/vulkan/vk.h" @@ -44,3 +45,5 @@ class DebugReportVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/descriptor_pool_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/descriptor_pool_vk.h index 8d2fb7c45c..f4965ec224 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/descriptor_pool_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/descriptor_pool_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DESCRIPTOR_POOL_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DESCRIPTOR_POOL_VK_H_ #include @@ -119,3 +120,5 @@ class DescriptorPoolRecyclerVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DESCRIPTOR_POOL_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/device_buffer_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/device_buffer_vk.h index 70022dd40d..c2e617dff3 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/device_buffer_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/device_buffer_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_ #include @@ -74,3 +75,5 @@ class DeviceBufferVK final : public DeviceBuffer, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/device_holder.h b/engine/src/flutter/impeller/renderer/backend/vulkan/device_holder.h index f113cbc331..bd26e09e20 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/device_holder.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/device_holder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_H_ #include "impeller/renderer/backend/vulkan/vk.h" // IWYU pragma: keep. @@ -16,3 +17,5 @@ class DeviceHolder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_HOLDER_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/fence_waiter_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/fence_waiter_vk.h index c58c9e0783..eb32e3a655 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/fence_waiter_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/fence_waiter_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FENCE_WAITER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FENCE_WAITER_VK_H_ #include #include @@ -56,3 +57,5 @@ class FenceWaiterVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FENCE_WAITER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/formats_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/formats_vk.h index 42fca4f9a6..bf0ce5fb6a 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/formats_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/formats_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FORMATS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FORMATS_VK_H_ #include @@ -665,3 +666,5 @@ constexpr vk::ImageAspectFlags ToImageAspectFlags(PixelFormat format) { } } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_FORMATS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/limits_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/limits_vk.h index 14e2dce906..4303d7d94d 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/limits_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/limits_vk.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_ #include @@ -12,3 +13,5 @@ constexpr size_t kImageSizeThresholdForDedicatedMemoryAllocation = 4 * 1024 * 1024; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/pass_bindings_cache.h b/engine/src/flutter/impeller/renderer/backend/vulkan/pass_bindings_cache.h index 22b3a0e463..9eccee0ee0 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/pass_bindings_cache.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/pass_bindings_cache.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PASS_BINDINGS_CACHE_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PASS_BINDINGS_CACHE_H_ #include #include @@ -45,3 +46,5 @@ class PassBindingsCache { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PASS_BINDINGS_CACHE_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.h index 070d636ab0..398b5f2555 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_ #include "flutter/fml/file.h" #include "flutter/fml/macros.h" @@ -48,3 +49,5 @@ class PipelineCacheVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.h index 923dad397a..7866b4909d 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_library_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_LIBRARY_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_LIBRARY_VK_H_ #include @@ -80,3 +81,5 @@ class PipelineLibraryVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_LIBRARY_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_vk.h index 0b6b3b6e03..ffe245152c 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/pipeline_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_VK_H_ #include @@ -55,3 +56,5 @@ class PipelineVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/queue_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/queue_vk.h index 8fde3b712a..7345429b6d 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/queue_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/queue_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_QUEUE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_QUEUE_VK_H_ #include @@ -72,3 +73,5 @@ struct QueuesVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_QUEUE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/render_pass_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/render_pass_vk.h index b7164d9d6c..a173aafe35 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/render_pass_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/render_pass_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RENDER_PASS_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RENDER_PASS_VK_H_ #include "flutter/fml/macros.h" #include "impeller/renderer/backend/vulkan/context_vk.h" @@ -56,3 +57,5 @@ class RenderPassVK final : public RenderPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RENDER_PASS_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/resource_manager_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/resource_manager_vk.h index 088314e3e8..4d8ef36a1c 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/resource_manager_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/resource_manager_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RESOURCE_MANAGER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RESOURCE_MANAGER_VK_H_ #include #include @@ -208,3 +209,5 @@ class UniqueResourceVKT final { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RESOURCE_MANAGER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_library_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_library_vk.h index 3be467040b..a18e65ef15 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_library_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_library_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_LIBRARY_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_LIBRARY_VK_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -39,3 +40,5 @@ class SamplerLibraryVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_LIBRARY_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_vk.h index 3cc48a229f..871f3699d4 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/sampler_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_VK_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -40,3 +41,5 @@ class SamplerVK final : public Sampler, public BackendCast { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SAMPLER_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/shader_function_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/shader_function_vk.h index 713a4fded6..1d7505707d 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/shader_function_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/shader_function_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_FUNCTION_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_FUNCTION_VK_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -40,3 +41,5 @@ class ShaderFunctionVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_FUNCTION_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/shader_library_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/shader_library_vk.h index 67e266aa80..ea3f063a25 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/shader_library_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/shader_library_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_ #include "flutter/fml/macros.h" #include "impeller/base/comparable.h" @@ -57,3 +58,5 @@ class ShaderLibraryVK final : public ShaderLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/shared_object_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/shared_object_vk.h index f91f018c94..7b4bbdce86 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/shared_object_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/shared_object_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHARED_OBJECT_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHARED_OBJECT_VK_H_ #include @@ -51,3 +52,5 @@ template using SharedHandleVK = std::shared_ptr>; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHARED_OBJECT_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/surface_context_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/surface_context_vk.h index 9bb6548480..5c8a327685 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/surface_context_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/surface_context_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_CONTEXT_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_CONTEXT_VK_H_ #include @@ -71,3 +72,5 @@ class SurfaceContextVK : public Context, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_CONTEXT_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/surface_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/surface_vk.h index 510923252f..fef4187f3e 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/surface_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/surface_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_VK_H_ #include @@ -39,3 +40,5 @@ class SurfaceVK final : public Surface { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SURFACE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_image_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_image_vk.h index 2eb1dc8d54..9ad316a8ec 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_image_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_image_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_ #include "flutter/fml/macros.h" #include "impeller/geometry/size.h" @@ -51,3 +52,5 @@ class SwapchainImageVK final : public TextureSourceVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_impl_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_impl_vk.h index f8ce74e120..87ed948b21 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_impl_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_impl_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMPL_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMPL_VK_H_ #include #include @@ -90,3 +91,5 @@ class SwapchainImplVK final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMPL_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_vk.h index c69e5df46c..2e724bae8f 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/swapchain_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_VK_H_ #include @@ -46,3 +47,5 @@ class SwapchainVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/test/mock_vulkan.h b/engine/src/flutter/impeller/renderer/backend/vulkan/test/mock_vulkan.h index e48764d5bf..4c68492c5c 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/test/mock_vulkan.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/test/mock_vulkan.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEST_MOCK_VULKAN_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEST_MOCK_VULKAN_H_ #include #include @@ -95,3 +96,5 @@ class MockVulkanContextBuilder { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEST_MOCK_VULKAN_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/texture_source_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/texture_source_vk.h index eaab485655..13f475b5df 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/texture_source_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/texture_source_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_SOURCE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_SOURCE_VK_H_ #include "flutter/fml/macros.h" #include "flutter/fml/status.h" @@ -62,3 +63,5 @@ class TextureSourceVK { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_SOURCE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/texture_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/texture_vk.h index fe3d13890d..4df1dcc37b 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/texture_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/texture_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_VK_H_ #include @@ -65,3 +66,5 @@ class TextureVK final : public Texture, public BackendCast { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TEXTURE_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h index 31d3f447c7..1768211fbe 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VERTEX_DESCRIPTOR_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VERTEX_DESCRIPTOR_VK_H_ #include "flutter/fml/macros.h" #include "impeller/core/shader_types.h" @@ -13,3 +14,5 @@ namespace impeller { vk::Format ToVertexDescriptorFormat(const ShaderStageIOSlot& input); } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VERTEX_DESCRIPTOR_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/vk.h b/engine/src/flutter/impeller/renderer/backend/vulkan/vk.h index 9c17b82725..ea992ce0e2 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/vk.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/vk.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VK_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VK_H_ #include "flutter/fml/build_config.h" #include "flutter/fml/logging.h" @@ -68,3 +69,5 @@ #include "vulkan/vulkan.hpp" // IWYU pragma: keep. static_assert(VK_HEADER_VERSION >= 215, "Vulkan headers must not be too old."); + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VK_H_ diff --git a/engine/src/flutter/impeller/renderer/backend/vulkan/vma.h b/engine/src/flutter/impeller/renderer/backend/vulkan/vma.h index f33a396997..6787bee93c 100644 --- a/engine/src/flutter/impeller/renderer/backend/vulkan/vma.h +++ b/engine/src/flutter/impeller/renderer/backend/vulkan/vma.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VMA_H_ +#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VMA_H_ #include "flutter/flutter_vma/flutter_vma.h" #include "flutter/fml/trace_event.h" @@ -132,3 +133,5 @@ struct ImageVMATraits { using UniqueImageVMA = fml::UniqueObject; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_VMA_H_ diff --git a/engine/src/flutter/impeller/renderer/blit_command.h b/engine/src/flutter/impeller/renderer/blit_command.h index 90124b58d8..7f456f6593 100644 --- a/engine/src/flutter/impeller/renderer/blit_command.h +++ b/engine/src/flutter/impeller/renderer/blit_command.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_ +#define FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_ #include "impeller/core/device_buffer.h" #include "impeller/core/texture.h" @@ -39,3 +40,5 @@ struct BlitGenerateMipmapCommand : public BlitCommand { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_ diff --git a/engine/src/flutter/impeller/renderer/blit_pass.h b/engine/src/flutter/impeller/renderer/blit_pass.h index 8f6b071be6..61f53b49dc 100644 --- a/engine/src/flutter/impeller/renderer/blit_pass.h +++ b/engine/src/flutter/impeller/renderer/blit_pass.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_ +#define FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_ #include #include @@ -163,3 +164,5 @@ class BlitPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_ diff --git a/engine/src/flutter/impeller/renderer/capabilities.h b/engine/src/flutter/impeller/renderer/capabilities.h index 48f12a7d24..9f3f15cefe 100644 --- a/engine/src/flutter/impeller/renderer/capabilities.h +++ b/engine/src/flutter/impeller/renderer/capabilities.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_CAPABILITIES_H_ +#define FLUTTER_IMPELLER_RENDERER_CAPABILITIES_H_ #include @@ -167,3 +168,5 @@ class CapabilitiesBuilder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_CAPABILITIES_H_ diff --git a/engine/src/flutter/impeller/renderer/command.h b/engine/src/flutter/impeller/renderer/command.h index 6351a4599d..426b444cb9 100644 --- a/engine/src/flutter/impeller/renderer/command.h +++ b/engine/src/flutter/impeller/renderer/command.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMMAND_H_ +#define FLUTTER_IMPELLER_RENDERER_COMMAND_H_ #include #include @@ -189,3 +190,5 @@ struct Command : public ResourceBinder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMMAND_H_ diff --git a/engine/src/flutter/impeller/renderer/command_buffer.h b/engine/src/flutter/impeller/renderer/command_buffer.h index 61717d2922..bbc0288cb7 100644 --- a/engine/src/flutter/impeller/renderer/command_buffer.h +++ b/engine/src/flutter/impeller/renderer/command_buffer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMMAND_BUFFER_H_ +#define FLUTTER_IMPELLER_RENDERER_COMMAND_BUFFER_H_ #include #include @@ -148,3 +149,5 @@ class CommandBuffer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMMAND_BUFFER_H_ diff --git a/engine/src/flutter/impeller/renderer/compute_command.h b/engine/src/flutter/impeller/renderer/compute_command.h index 1a2d515036..fb2639df66 100644 --- a/engine/src/flutter/impeller/renderer/compute_command.h +++ b/engine/src/flutter/impeller/renderer/compute_command.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_COMMAND_H_ +#define FLUTTER_IMPELLER_RENDERER_COMPUTE_COMMAND_H_ #include #include @@ -69,3 +70,5 @@ struct ComputeCommand : public ResourceBinder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMPUTE_COMMAND_H_ diff --git a/engine/src/flutter/impeller/renderer/compute_pass.h b/engine/src/flutter/impeller/renderer/compute_pass.h index 37358ded6f..155f36e4b9 100644 --- a/engine/src/flutter/impeller/renderer/compute_pass.h +++ b/engine/src/flutter/impeller/renderer/compute_pass.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_PASS_H_ +#define FLUTTER_IMPELLER_RENDERER_COMPUTE_PASS_H_ #include #include @@ -80,3 +81,5 @@ class ComputePass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMPUTE_PASS_H_ diff --git a/engine/src/flutter/impeller/renderer/compute_pipeline_builder.h b/engine/src/flutter/impeller/renderer/compute_pipeline_builder.h index 7a7d34cbce..8029c0ff9a 100644 --- a/engine/src/flutter/impeller/renderer/compute_pipeline_builder.h +++ b/engine/src/flutter/impeller/renderer/compute_pipeline_builder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_BUILDER_H_ +#define FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_BUILDER_H_ #include "flutter/fml/logging.h" #include "flutter/fml/macros.h" @@ -83,3 +84,5 @@ struct ComputePipelineBuilder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_BUILDER_H_ diff --git a/engine/src/flutter/impeller/renderer/compute_pipeline_descriptor.h b/engine/src/flutter/impeller/renderer/compute_pipeline_descriptor.h index 8a38f12d4f..a92def4c78 100644 --- a/engine/src/flutter/impeller/renderer/compute_pipeline_descriptor.h +++ b/engine/src/flutter/impeller/renderer/compute_pipeline_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_DESCRIPTOR_H_ #include #include @@ -66,3 +67,5 @@ class ComputePipelineDescriptor final }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMPUTE_PIPELINE_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/renderer/compute_tessellator.h b/engine/src/flutter/impeller/renderer/compute_tessellator.h index 0b95c1044c..f8ccd0d8df 100644 --- a/engine/src/flutter/impeller/renderer/compute_tessellator.h +++ b/engine/src/flutter/impeller/renderer/compute_tessellator.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_COMPUTE_TESSELLATOR_H_ +#define FLUTTER_IMPELLER_RENDERER_COMPUTE_TESSELLATOR_H_ #include "flutter/fml/macros.h" #include "impeller/core/buffer_view.h" @@ -84,3 +85,5 @@ class ComputeTessellator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_COMPUTE_TESSELLATOR_H_ diff --git a/engine/src/flutter/impeller/renderer/context.h b/engine/src/flutter/impeller/renderer/context.h index 9a24e435af..36ad0c2e18 100644 --- a/engine/src/flutter/impeller/renderer/context.h +++ b/engine/src/flutter/impeller/renderer/context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_CONTEXT_H_ +#define FLUTTER_IMPELLER_RENDERER_CONTEXT_H_ #include #include @@ -211,3 +212,5 @@ class Context { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/renderer/pipeline.h b/engine/src/flutter/impeller/renderer/pipeline.h index 1c761c0a6f..63d0918b78 100644 --- a/engine/src/flutter/impeller/renderer/pipeline.h +++ b/engine/src/flutter/impeller/renderer/pipeline.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_PIPELINE_H_ +#define FLUTTER_IMPELLER_RENDERER_PIPELINE_H_ #include @@ -170,3 +171,5 @@ class ComputePipelineT { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_PIPELINE_H_ diff --git a/engine/src/flutter/impeller/renderer/pipeline_builder.h b/engine/src/flutter/impeller/renderer/pipeline_builder.h index 163ce66e6f..9b2fadca83 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_builder.h +++ b/engine/src/flutter/impeller/renderer/pipeline_builder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_PIPELINE_BUILDER_H_ +#define FLUTTER_IMPELLER_RENDERER_PIPELINE_BUILDER_H_ #include "flutter/fml/logging.h" #include "flutter/fml/macros.h" @@ -120,3 +121,5 @@ struct PipelineBuilder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_PIPELINE_BUILDER_H_ diff --git a/engine/src/flutter/impeller/renderer/pipeline_descriptor.h b/engine/src/flutter/impeller/renderer/pipeline_descriptor.h index 30149a0524..460d7e1ee8 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_descriptor.h +++ b/engine/src/flutter/impeller/renderer/pipeline_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_PIPELINE_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_RENDERER_PIPELINE_DESCRIPTOR_H_ #include #include @@ -167,3 +168,5 @@ class PipelineDescriptor final : public Comparable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_PIPELINE_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/renderer/pipeline_library.h b/engine/src/flutter/impeller/renderer/pipeline_library.h index 3769f800ca..d97861f5dc 100644 --- a/engine/src/flutter/impeller/renderer/pipeline_library.h +++ b/engine/src/flutter/impeller/renderer/pipeline_library.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_PIPELINE_LIBRARY_H_ +#define FLUTTER_IMPELLER_RENDERER_PIPELINE_LIBRARY_H_ #include @@ -57,3 +58,5 @@ class PipelineLibrary : public std::enable_shared_from_this { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_PIPELINE_LIBRARY_H_ diff --git a/engine/src/flutter/impeller/renderer/pool.h b/engine/src/flutter/impeller/renderer/pool.h index 631284ff87..399236fd23 100644 --- a/engine/src/flutter/impeller/renderer/pool.h +++ b/engine/src/flutter/impeller/renderer/pool.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_POOL_H_ +#define FLUTTER_IMPELLER_RENDERER_POOL_H_ #include #include @@ -53,3 +54,5 @@ class Pool { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_POOL_H_ diff --git a/engine/src/flutter/impeller/renderer/render_pass.h b/engine/src/flutter/impeller/renderer/render_pass.h index 512c152d6e..ff0d6d50c9 100644 --- a/engine/src/flutter/impeller/renderer/render_pass.h +++ b/engine/src/flutter/impeller/renderer/render_pass.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_ +#define FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_ #include @@ -114,3 +115,5 @@ class RenderPass { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_ diff --git a/engine/src/flutter/impeller/renderer/render_target.h b/engine/src/flutter/impeller/renderer/render_target.h index d808f9feef..dbd115a5c7 100644 --- a/engine/src/flutter/impeller/renderer/render_target.h +++ b/engine/src/flutter/impeller/renderer/render_target.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_RENDER_TARGET_H_ +#define FLUTTER_IMPELLER_RENDERER_RENDER_TARGET_H_ #include #include @@ -156,3 +157,5 @@ class RenderTarget final { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_RENDER_TARGET_H_ diff --git a/engine/src/flutter/impeller/renderer/renderer.h b/engine/src/flutter/impeller/renderer/renderer.h index 552a49d724..1e37761ab4 100644 --- a/engine/src/flutter/impeller/renderer/renderer.h +++ b/engine/src/flutter/impeller/renderer/renderer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_RENDERER_H_ +#define FLUTTER_IMPELLER_RENDERER_RENDERER_H_ #include #include @@ -47,3 +48,5 @@ class Renderer { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_RENDERER_H_ diff --git a/engine/src/flutter/impeller/renderer/sampler_library.h b/engine/src/flutter/impeller/renderer/sampler_library.h index f022488ce1..86e98b938b 100644 --- a/engine/src/flutter/impeller/renderer/sampler_library.h +++ b/engine/src/flutter/impeller/renderer/sampler_library.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SAMPLER_LIBRARY_H_ +#define FLUTTER_IMPELLER_RENDERER_SAMPLER_LIBRARY_H_ #include "impeller/core/sampler.h" #include "impeller/core/sampler_descriptor.h" @@ -26,3 +27,5 @@ class SamplerLibrary { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SAMPLER_LIBRARY_H_ diff --git a/engine/src/flutter/impeller/renderer/shader_function.h b/engine/src/flutter/impeller/renderer/shader_function.h index 280c64d117..d762dd2ea5 100644 --- a/engine/src/flutter/impeller/renderer/shader_function.h +++ b/engine/src/flutter/impeller/renderer/shader_function.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SHADER_FUNCTION_H_ +#define FLUTTER_IMPELLER_RENDERER_SHADER_FUNCTION_H_ #include #include "flutter/fml/hash_combine.h" @@ -43,3 +44,5 @@ class ShaderFunction : public Comparable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SHADER_FUNCTION_H_ diff --git a/engine/src/flutter/impeller/renderer/shader_key.h b/engine/src/flutter/impeller/renderer/shader_key.h index 802908647b..77f03cff73 100644 --- a/engine/src/flutter/impeller/renderer/shader_key.h +++ b/engine/src/flutter/impeller/renderer/shader_key.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SHADER_KEY_H_ +#define FLUTTER_IMPELLER_RENDERER_SHADER_KEY_H_ #include #include @@ -43,3 +44,5 @@ using ShaderFunctionMap = ShaderKey::Equal>; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SHADER_KEY_H_ diff --git a/engine/src/flutter/impeller/renderer/shader_library.h b/engine/src/flutter/impeller/renderer/shader_library.h index dd191f4994..a28817c2d1 100644 --- a/engine/src/flutter/impeller/renderer/shader_library.h +++ b/engine/src/flutter/impeller/renderer/shader_library.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_ +#define FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_ #include #include @@ -45,3 +46,5 @@ class ShaderLibrary : public std::enable_shared_from_this { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_ diff --git a/engine/src/flutter/impeller/renderer/snapshot.h b/engine/src/flutter/impeller/renderer/snapshot.h index 0d9a57471a..849b7ce04c 100644 --- a/engine/src/flutter/impeller/renderer/snapshot.h +++ b/engine/src/flutter/impeller/renderer/snapshot.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SNAPSHOT_H_ +#define FLUTTER_IMPELLER_RENDERER_SNAPSHOT_H_ #include #include @@ -47,3 +48,5 @@ struct Snapshot { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SNAPSHOT_H_ diff --git a/engine/src/flutter/impeller/renderer/surface.h b/engine/src/flutter/impeller/renderer/surface.h index 3ce7937f76..e0e4abe5fa 100644 --- a/engine/src/flutter/impeller/renderer/surface.h +++ b/engine/src/flutter/impeller/renderer/surface.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_SURFACE_H_ +#define FLUTTER_IMPELLER_RENDERER_SURFACE_H_ #include #include @@ -42,3 +43,5 @@ class Surface { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_SURFACE_H_ diff --git a/engine/src/flutter/impeller/renderer/testing/mocks.h b/engine/src/flutter/impeller/renderer/testing/mocks.h index 4af4bc1191..4960a57ef7 100644 --- a/engine/src/flutter/impeller/renderer/testing/mocks.h +++ b/engine/src/flutter/impeller/renderer/testing/mocks.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_TESTING_MOCKS_H_ +#define FLUTTER_IMPELLER_RENDERER_TESTING_MOCKS_H_ #include "gmock/gmock.h" #include "impeller/core/allocator.h" @@ -215,3 +216,5 @@ class MockSampler : public Sampler { } // namespace testing } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_TESTING_MOCKS_H_ diff --git a/engine/src/flutter/impeller/renderer/vertex_buffer_builder.h b/engine/src/flutter/impeller/renderer/vertex_buffer_builder.h index 2f92e24c96..78a780bae1 100644 --- a/engine/src/flutter/impeller/renderer/vertex_buffer_builder.h +++ b/engine/src/flutter/impeller/renderer/vertex_buffer_builder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_VERTEX_BUFFER_BUILDER_H_ +#define FLUTTER_IMPELLER_RENDERER_VERTEX_BUFFER_BUILDER_H_ #include #include @@ -160,3 +161,5 @@ class VertexBufferBuilder { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_VERTEX_BUFFER_BUILDER_H_ diff --git a/engine/src/flutter/impeller/renderer/vertex_descriptor.h b/engine/src/flutter/impeller/renderer/vertex_descriptor.h index 72d12e11df..5d1143f0ff 100644 --- a/engine/src/flutter/impeller/renderer/vertex_descriptor.h +++ b/engine/src/flutter/impeller/renderer/vertex_descriptor.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RENDERER_VERTEX_DESCRIPTOR_H_ +#define FLUTTER_IMPELLER_RENDERER_VERTEX_DESCRIPTOR_H_ #include @@ -75,3 +76,5 @@ class VertexDescriptor final : public Comparable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RENDERER_VERTEX_DESCRIPTOR_H_ diff --git a/engine/src/flutter/impeller/runtime_stage/runtime_stage.h b/engine/src/flutter/impeller/runtime_stage/runtime_stage.h index 8ee501bbdb..8b52bdcd50 100644 --- a/engine/src/flutter/impeller/runtime_stage/runtime_stage.h +++ b/engine/src/flutter/impeller/runtime_stage/runtime_stage.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_ +#define FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_ #include #include @@ -56,3 +57,5 @@ class RuntimeStage { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_ diff --git a/engine/src/flutter/impeller/runtime_stage/runtime_stage_playground.h b/engine/src/flutter/impeller/runtime_stage/runtime_stage_playground.h index f1b3502594..86f9cc4bc4 100644 --- a/engine/src/flutter/impeller/runtime_stage/runtime_stage_playground.h +++ b/engine/src/flutter/impeller/runtime_stage/runtime_stage_playground.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_PLAYGROUND_H_ +#define FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_PLAYGROUND_H_ #include "flutter/fml/macros.h" #include "impeller/playground/playground_test.h" @@ -25,3 +26,5 @@ class RuntimeStagePlayground : public PlaygroundTest { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_PLAYGROUND_H_ diff --git a/engine/src/flutter/impeller/scene/animation/animation.h b/engine/src/flutter/impeller/scene/animation/animation.h index 37735412e8..09ebfac3f8 100644 --- a/engine/src/flutter/impeller/scene/animation/animation.h +++ b/engine/src/flutter/impeller/scene/animation/animation.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_H_ +#define FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_H_ #include #include @@ -77,3 +78,5 @@ class Animation final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_H_ diff --git a/engine/src/flutter/impeller/scene/animation/animation_clip.h b/engine/src/flutter/impeller/scene/animation/animation_clip.h index 773284b047..35c3339ae8 100644 --- a/engine/src/flutter/impeller/scene/animation/animation_clip.h +++ b/engine/src/flutter/impeller/scene/animation/animation_clip.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_CLIP_H_ +#define FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_CLIP_H_ #include #include @@ -92,3 +93,5 @@ class AnimationClip final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_CLIP_H_ diff --git a/engine/src/flutter/impeller/scene/animation/animation_player.h b/engine/src/flutter/impeller/scene/animation/animation_player.h index ebc77c3f2e..44878e1c38 100644 --- a/engine/src/flutter/impeller/scene/animation/animation_player.h +++ b/engine/src/flutter/impeller/scene/animation/animation_player.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_PLAYER_H_ +#define FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_PLAYER_H_ #include #include @@ -52,3 +53,5 @@ class AnimationPlayer final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_PLAYER_H_ diff --git a/engine/src/flutter/impeller/scene/animation/animation_transforms.h b/engine/src/flutter/impeller/scene/animation/animation_transforms.h index b15c981778..59adb64938 100644 --- a/engine/src/flutter/impeller/scene/animation/animation_transforms.h +++ b/engine/src/flutter/impeller/scene/animation/animation_transforms.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_TRANSFORMS_H_ +#define FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_TRANSFORMS_H_ #include "impeller/geometry/matrix_decomposition.h" @@ -16,3 +17,5 @@ struct AnimationTransforms { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_ANIMATION_ANIMATION_TRANSFORMS_H_ diff --git a/engine/src/flutter/impeller/scene/animation/property_resolver.h b/engine/src/flutter/impeller/scene/animation/property_resolver.h index 10df83e433..722318d32d 100644 --- a/engine/src/flutter/impeller/scene/animation/property_resolver.h +++ b/engine/src/flutter/impeller/scene/animation/property_resolver.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_ +#define FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_ #include #include @@ -139,3 +140,5 @@ class ScaleTimelineResolver final : public TimelineResolver { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_ANIMATION_PROPERTY_RESOLVER_H_ diff --git a/engine/src/flutter/impeller/scene/camera.h b/engine/src/flutter/impeller/scene/camera.h index 0b31e4f89a..3f833320da 100644 --- a/engine/src/flutter/impeller/scene/camera.h +++ b/engine/src/flutter/impeller/scene/camera.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_CAMERA_H_ +#define FLUTTER_IMPELLER_SCENE_CAMERA_H_ #include @@ -32,3 +33,5 @@ class Camera { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_CAMERA_H_ diff --git a/engine/src/flutter/impeller/scene/geometry.h b/engine/src/flutter/impeller/scene/geometry.h index 0a4b9c040f..de8f975633 100644 --- a/engine/src/flutter/impeller/scene/geometry.h +++ b/engine/src/flutter/impeller/scene/geometry.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_GEOMETRY_H_ +#define FLUTTER_IMPELLER_SCENE_GEOMETRY_H_ #include @@ -141,3 +142,5 @@ class SkinnedVertexBufferGeometry final : public Geometry { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_GEOMETRY_H_ diff --git a/engine/src/flutter/impeller/scene/importer/conversions.h b/engine/src/flutter/impeller/scene/importer/conversions.h index cb11d3c42f..6c91164426 100644 --- a/engine/src/flutter/impeller/scene/importer/conversions.h +++ b/engine/src/flutter/impeller/scene/importer/conversions.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_CONVERSIONS_H_ +#define FLUTTER_IMPELLER_SCENE_IMPORTER_CONVERSIONS_H_ #include #include @@ -52,3 +53,5 @@ std::unique_ptr ToFBColor(const std::vector& c); } // namespace importer } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_IMPORTER_CONVERSIONS_H_ diff --git a/engine/src/flutter/impeller/scene/importer/importer.h b/engine/src/flutter/impeller/scene/importer/importer.h index 6766adbce1..af0934522e 100644 --- a/engine/src/flutter/impeller/scene/importer/importer.h +++ b/engine/src/flutter/impeller/scene/importer/importer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_IMPORTER_H_ +#define FLUTTER_IMPELLER_SCENE_IMPORTER_IMPORTER_H_ #include #include @@ -19,3 +20,5 @@ bool ParseGLTF(const fml::Mapping& source_mapping, fb::SceneT& out_scene); } } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_IMPORTER_IMPORTER_H_ diff --git a/engine/src/flutter/impeller/scene/importer/switches.h b/engine/src/flutter/impeller/scene/importer/switches.h index d9b298216c..3b5294442a 100644 --- a/engine/src/flutter/impeller/scene/importer/switches.h +++ b/engine/src/flutter/impeller/scene/importer/switches.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_ +#define FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_ #include #include @@ -36,3 +37,5 @@ struct Switches { } // namespace importer } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_IMPORTER_SWITCHES_H_ diff --git a/engine/src/flutter/impeller/scene/importer/types.h b/engine/src/flutter/impeller/scene/importer/types.h index 308527fe33..0312618e5a 100644 --- a/engine/src/flutter/impeller/scene/importer/types.h +++ b/engine/src/flutter/impeller/scene/importer/types.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_TYPES_H_ +#define FLUTTER_IMPELLER_SCENE_IMPORTER_TYPES_H_ namespace impeller { namespace scene { @@ -16,3 +17,5 @@ enum class SourceType { } // namespace importer } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_IMPORTER_TYPES_H_ diff --git a/engine/src/flutter/impeller/scene/importer/vertices_builder.h b/engine/src/flutter/impeller/scene/importer/vertices_builder.h index 6022573ab7..4244a2563d 100644 --- a/engine/src/flutter/impeller/scene/importer/vertices_builder.h +++ b/engine/src/flutter/impeller/scene/importer/vertices_builder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_IMPORTER_VERTICES_BUILDER_H_ +#define FLUTTER_IMPELLER_SCENE_IMPORTER_VERTICES_BUILDER_H_ #include #include @@ -169,3 +170,5 @@ class SkinnedVerticesBuilder final : public VerticesBuilder { } // namespace importer } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_IMPORTER_VERTICES_BUILDER_H_ diff --git a/engine/src/flutter/impeller/scene/material.h b/engine/src/flutter/impeller/scene/material.h index e3132cfb1c..c8954d540a 100644 --- a/engine/src/flutter/impeller/scene/material.h +++ b/engine/src/flutter/impeller/scene/material.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_MATERIAL_H_ +#define FLUTTER_IMPELLER_SCENE_MATERIAL_H_ #include @@ -137,3 +138,5 @@ class PhysicallyBasedMaterial final : public Material { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_MATERIAL_H_ diff --git a/engine/src/flutter/impeller/scene/mesh.h b/engine/src/flutter/impeller/scene/mesh.h index e72a598f83..008938324c 100644 --- a/engine/src/flutter/impeller/scene/mesh.h +++ b/engine/src/flutter/impeller/scene/mesh.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_MESH_H_ +#define FLUTTER_IMPELLER_SCENE_MESH_H_ #include #include @@ -47,3 +48,5 @@ class Mesh final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_MESH_H_ diff --git a/engine/src/flutter/impeller/scene/node.h b/engine/src/flutter/impeller/scene/node.h index b08684af5b..0e2649aef2 100644 --- a/engine/src/flutter/impeller/scene/node.h +++ b/engine/src/flutter/impeller/scene/node.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_NODE_H_ +#define FLUTTER_IMPELLER_SCENE_NODE_H_ #include #include @@ -137,3 +138,5 @@ class Node final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_NODE_H_ diff --git a/engine/src/flutter/impeller/scene/pipeline_key.h b/engine/src/flutter/impeller/scene/pipeline_key.h index d059a48e47..56f41f3658 100644 --- a/engine/src/flutter/impeller/scene/pipeline_key.h +++ b/engine/src/flutter/impeller/scene/pipeline_key.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_PIPELINE_KEY_H_ +#define FLUTTER_IMPELLER_SCENE_PIPELINE_KEY_H_ #include "flutter/fml/hash_combine.h" @@ -40,3 +41,5 @@ struct PipelineKey { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_PIPELINE_KEY_H_ diff --git a/engine/src/flutter/impeller/scene/scene.h b/engine/src/flutter/impeller/scene/scene.h index b5d3b09ecf..4cd5c0895e 100644 --- a/engine/src/flutter/impeller/scene/scene.h +++ b/engine/src/flutter/impeller/scene/scene.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_SCENE_H_ +#define FLUTTER_IMPELLER_SCENE_SCENE_H_ #include #include @@ -43,3 +44,5 @@ class Scene { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_SCENE_H_ diff --git a/engine/src/flutter/impeller/scene/scene_context.h b/engine/src/flutter/impeller/scene/scene_context.h index f85663b426..24d49249f7 100644 --- a/engine/src/flutter/impeller/scene/scene_context.h +++ b/engine/src/flutter/impeller/scene/scene_context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_SCENE_CONTEXT_H_ +#define FLUTTER_IMPELLER_SCENE_SCENE_CONTEXT_H_ #include @@ -151,3 +152,5 @@ class SceneContext { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_SCENE_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/scene/scene_encoder.h b/engine/src/flutter/impeller/scene/scene_encoder.h index 2cf096ec1a..a3690c52c7 100644 --- a/engine/src/flutter/impeller/scene/scene_encoder.h +++ b/engine/src/flutter/impeller/scene/scene_encoder.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_ +#define FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_ #include #include @@ -49,3 +50,5 @@ class SceneEncoder { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_SCENE_ENCODER_H_ diff --git a/engine/src/flutter/impeller/scene/skin.h b/engine/src/flutter/impeller/scene/skin.h index 5693e6406d..77e663c964 100644 --- a/engine/src/flutter/impeller/scene/skin.h +++ b/engine/src/flutter/impeller/scene/skin.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SCENE_SKIN_H_ +#define FLUTTER_IMPELLER_SCENE_SKIN_H_ #include #include @@ -42,3 +43,5 @@ class Skin final { } // namespace scene } // namespace impeller + +#endif // FLUTTER_IMPELLER_SCENE_SKIN_H_ diff --git a/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive.h b/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive.h index abcc7a9e2f..1a73380b7a 100644 --- a/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive.h +++ b/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_H_ +#define FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_H_ #include #include @@ -44,3 +45,5 @@ class MultiArchShaderArchive { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_H_ diff --git a/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive_writer.h b/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive_writer.h index 163f9c3c5c..f04df91f36 100644 --- a/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive_writer.h +++ b/engine/src/flutter/impeller/shader_archive/multi_arch_shader_archive_writer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_ +#define FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_ #include @@ -35,3 +36,5 @@ class MultiArchShaderArchiveWriter { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_ diff --git a/engine/src/flutter/impeller/shader_archive/shader_archive.h b/engine/src/flutter/impeller/shader_archive/shader_archive.h index 8ee325d9c5..a13736d11e 100644 --- a/engine/src/flutter/impeller/shader_archive/shader_archive.h +++ b/engine/src/flutter/impeller/shader_archive/shader_archive.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_H_ +#define FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_H_ #include #include @@ -75,3 +76,5 @@ class ShaderArchive { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_H_ diff --git a/engine/src/flutter/impeller/shader_archive/shader_archive_types.h b/engine/src/flutter/impeller/shader_archive/shader_archive_types.h index a8007f3b2f..2e2b6aae63 100644 --- a/engine/src/flutter/impeller/shader_archive/shader_archive_types.h +++ b/engine/src/flutter/impeller/shader_archive/shader_archive_types.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_TYPES_H_ +#define FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_TYPES_H_ namespace impeller { @@ -19,3 +20,5 @@ enum class ArchiveRenderingBackend { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_TYPES_H_ diff --git a/engine/src/flutter/impeller/shader_archive/shader_archive_writer.h b/engine/src/flutter/impeller/shader_archive/shader_archive_writer.h index 7503e48f22..85f60432bb 100644 --- a/engine/src/flutter/impeller/shader_archive/shader_archive_writer.h +++ b/engine/src/flutter/impeller/shader_archive/shader_archive_writer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_WRITER_H_ +#define FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_WRITER_H_ #include #include @@ -43,3 +44,5 @@ class ShaderArchiveWriter { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_SHADER_ARCHIVE_WRITER_H_ diff --git a/engine/src/flutter/impeller/tessellator/c/tessellator.h b/engine/src/flutter/impeller/tessellator/c/tessellator.h index f79872f931..ef5bfc950f 100644 --- a/engine/src/flutter/impeller/tessellator/c/tessellator.h +++ b/engine/src/flutter/impeller/tessellator/c/tessellator.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_ +#define FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_ #include @@ -50,3 +51,5 @@ IMPELLER_API void DestroyVertices(Vertices* vertices); } // namespace impeller } + +#endif // FLUTTER_IMPELLER_TESSELLATOR_C_TESSELLATOR_H_ diff --git a/engine/src/flutter/impeller/tessellator/tessellator.h b/engine/src/flutter/impeller/tessellator/tessellator.h index b283c6c9cb..0ce56207fa 100644 --- a/engine/src/flutter/impeller/tessellator/tessellator.h +++ b/engine/src/flutter/impeller/tessellator/tessellator.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TESSELLATOR_TESSELLATOR_H_ +#define FLUTTER_IMPELLER_TESSELLATOR_TESSELLATOR_H_ #include #include @@ -333,3 +334,5 @@ class Tessellator { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TESSELLATOR_TESSELLATOR_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/config.h b/engine/src/flutter/impeller/toolkit/egl/config.h index 153aa6aa20..45ae789e9e 100644 --- a/engine/src/flutter/impeller/toolkit/egl/config.h +++ b/engine/src/flutter/impeller/toolkit/egl/config.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_CONFIG_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_CONFIG_H_ #include "flutter/fml/macros.h" #include "impeller/toolkit/egl/egl.h" @@ -74,3 +75,5 @@ class Config { } // namespace egl } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_CONFIG_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/context.h b/engine/src/flutter/impeller/toolkit/egl/context.h index df33b3cf04..418ec24f92 100644 --- a/engine/src/flutter/impeller/toolkit/egl/context.h +++ b/engine/src/flutter/impeller/toolkit/egl/context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_CONTEXT_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_CONTEXT_H_ #include @@ -56,3 +57,5 @@ class Context { } // namespace egl } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_CONTEXT_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/display.h b/engine/src/flutter/impeller/toolkit/egl/display.h index 51ff9400dd..3e9b6236c6 100644 --- a/engine/src/flutter/impeller/toolkit/egl/display.h +++ b/engine/src/flutter/impeller/toolkit/egl/display.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_DISPLAY_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_DISPLAY_H_ #include #include @@ -47,3 +48,5 @@ class Display { } // namespace egl } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_DISPLAY_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/egl.h b/engine/src/flutter/impeller/toolkit/egl/egl.h index af1bcca52f..fc22e1cdf0 100644 --- a/engine/src/flutter/impeller/toolkit/egl/egl.h +++ b/engine/src/flutter/impeller/toolkit/egl/egl.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_ #include #define EGL_EGLEXT_PROTOTYPES @@ -21,3 +22,5 @@ void LogEGLError(const char* file, int line); } // namespace egl } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_EGL_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/image.h b/engine/src/flutter/impeller/toolkit/egl/image.h index 2fafe0f994..51e3330065 100644 --- a/engine/src/flutter/impeller/toolkit/egl/image.h +++ b/engine/src/flutter/impeller/toolkit/egl/image.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_IMAGE_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_IMAGE_H_ #include "flutter/fml/unique_object.h" #include "flutter/impeller/toolkit/egl/egl.h" @@ -72,3 +73,5 @@ using UniqueEGLImageKHR = fml::UniqueObject; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_IMAGE_H_ diff --git a/engine/src/flutter/impeller/toolkit/egl/surface.h b/engine/src/flutter/impeller/toolkit/egl/surface.h index 605f6fb5ac..a8ca441660 100644 --- a/engine/src/flutter/impeller/toolkit/egl/surface.h +++ b/engine/src/flutter/impeller/toolkit/egl/surface.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_ +#define FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_ #include "flutter/fml/macros.h" #include "impeller/toolkit/egl/egl.h" @@ -33,3 +34,5 @@ class Surface { } // namespace egl } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_EGL_SURFACE_H_ diff --git a/engine/src/flutter/impeller/toolkit/gles/gles.h b/engine/src/flutter/impeller/toolkit/gles/gles.h index 599e3c9433..9cb1609fd5 100644 --- a/engine/src/flutter/impeller/toolkit/gles/gles.h +++ b/engine/src/flutter/impeller/toolkit/gles/gles.h @@ -2,8 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_GLES_GLES_H_ +#define FLUTTER_IMPELLER_TOOLKIT_GLES_GLES_H_ #include "GLES3/gl3.h" #define GL_GLEXT_PROTOTYPES #include "GLES2/gl2ext.h" + +#endif // FLUTTER_IMPELLER_TOOLKIT_GLES_GLES_H_ diff --git a/engine/src/flutter/impeller/toolkit/gles/texture.h b/engine/src/flutter/impeller/toolkit/gles/texture.h index b90007b414..cebef02e61 100644 --- a/engine/src/flutter/impeller/toolkit/gles/texture.h +++ b/engine/src/flutter/impeller/toolkit/gles/texture.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_ +#define FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_ #include "flutter/fml/unique_object.h" #include "flutter/impeller/toolkit/gles/gles.h" @@ -37,3 +38,5 @@ struct GLTextureTraits { using UniqueGLTexture = fml::UniqueObject; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TOOLKIT_GLES_TEXTURE_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/skia/glyph_atlas_context_skia.h b/engine/src/flutter/impeller/typographer/backends/skia/glyph_atlas_context_skia.h index ee4894f8c4..7f59eca618 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/glyph_atlas_context_skia.h +++ b/engine/src/flutter/impeller/typographer/backends/skia/glyph_atlas_context_skia.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_ #include "impeller/base/backend_cast.h" #include "impeller/typographer/glyph_atlas.h" @@ -37,3 +38,5 @@ class GlyphAtlasContextSkia }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_GLYPH_ATLAS_CONTEXT_SKIA_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.h b/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.h index e7721a0c6e..fdb9d7693e 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.h +++ b/engine/src/flutter/impeller/typographer/backends/skia/text_frame_skia.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TEXT_FRAME_SKIA_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TEXT_FRAME_SKIA_H_ #include "impeller/typographer/text_frame.h" #include "third_party/skia/include/core/SkTextBlob.h" @@ -13,3 +14,5 @@ std::shared_ptr MakeTextFrameFromTextBlobSkia( const sk_sp& blob); } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TEXT_FRAME_SKIA_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/skia/typeface_skia.h b/engine/src/flutter/impeller/typographer/backends/skia/typeface_skia.h index 20544b4e13..dc14c48f6a 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/typeface_skia.h +++ b/engine/src/flutter/impeller/typographer/backends/skia/typeface_skia.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPEFACE_SKIA_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPEFACE_SKIA_H_ #include "flutter/fml/macros.h" #include "impeller/base/backend_cast.h" @@ -39,3 +40,5 @@ class TypefaceSkia final : public Typeface, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPEFACE_SKIA_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.h b/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.h index 8db8082462..f3c8dd4560 100644 --- a/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.h +++ b/engine/src/flutter/impeller/typographer/backends/skia/typographer_context_skia.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_ #include "flutter/fml/macros.h" #include "impeller/typographer/typographer_context.h" @@ -34,3 +35,5 @@ class TypographerContextSkia : public TypographerContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_SKIA_TYPOGRAPHER_CONTEXT_SKIA_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/stb/glyph_atlas_context_stb.h b/engine/src/flutter/impeller/typographer/backends/stb/glyph_atlas_context_stb.h index c2c307e758..58962570d9 100644 --- a/engine/src/flutter/impeller/typographer/backends/stb/glyph_atlas_context_stb.h +++ b/engine/src/flutter/impeller/typographer/backends/stb/glyph_atlas_context_stb.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_GLYPH_ATLAS_CONTEXT_STB_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_GLYPH_ATLAS_CONTEXT_STB_H_ #include "impeller/base/backend_cast.h" #include "impeller/typographer/glyph_atlas.h" @@ -59,3 +60,5 @@ class GlyphAtlasContextSTB }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_GLYPH_ATLAS_CONTEXT_STB_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/stb/text_frame_stb.h b/engine/src/flutter/impeller/typographer/backends/stb/text_frame_stb.h index 39f8cccc76..f37426f2d8 100644 --- a/engine/src/flutter/impeller/typographer/backends/stb/text_frame_stb.h +++ b/engine/src/flutter/impeller/typographer/backends/stb/text_frame_stb.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TEXT_FRAME_STB_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TEXT_FRAME_STB_H_ #include "flutter/fml/macros.h" #include "impeller/typographer/backends/stb/typeface_stb.h" @@ -16,3 +17,5 @@ std::shared_ptr MakeTextFrameSTB( const std::string& text); } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TEXT_FRAME_STB_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/stb/typeface_stb.h b/engine/src/flutter/impeller/typographer/backends/stb/typeface_stb.h index 3600ade3de..c0f2c04083 100644 --- a/engine/src/flutter/impeller/typographer/backends/stb/typeface_stb.h +++ b/engine/src/flutter/impeller/typographer/backends/stb/typeface_stb.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPEFACE_STB_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPEFACE_STB_H_ #include "flutter/fml/macros.h" #include "flutter/fml/mapping.h" @@ -46,3 +47,5 @@ class TypefaceSTB final : public Typeface, }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPEFACE_STB_H_ diff --git a/engine/src/flutter/impeller/typographer/backends/stb/typographer_context_stb.h b/engine/src/flutter/impeller/typographer/backends/stb/typographer_context_stb.h index 14975ae4fb..02e8132871 100644 --- a/engine/src/flutter/impeller/typographer/backends/stb/typographer_context_stb.h +++ b/engine/src/flutter/impeller/typographer/backends/stb/typographer_context_stb.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_ #include "impeller/typographer/typographer_context.h" @@ -36,3 +37,5 @@ class TypographerContextSTB : public TypographerContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_BACKENDS_STB_TYPOGRAPHER_CONTEXT_STB_H_ diff --git a/engine/src/flutter/impeller/typographer/font.h b/engine/src/flutter/impeller/typographer/font.h index bbfc569860..4f21748d5e 100644 --- a/engine/src/flutter/impeller/typographer/font.h +++ b/engine/src/flutter/impeller/typographer/font.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_ #include #include @@ -77,3 +78,5 @@ struct std::hash { return fml::HashCombine(m.point_size, m.skewX, m.scaleX); } }; + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_FONT_H_ diff --git a/engine/src/flutter/impeller/typographer/font_glyph_pair.h b/engine/src/flutter/impeller/typographer/font_glyph_pair.h index 00b59411d3..dd2d47e82b 100644 --- a/engine/src/flutter/impeller/typographer/font_glyph_pair.h +++ b/engine/src/flutter/impeller/typographer/font_glyph_pair.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_ #include #include @@ -54,3 +55,5 @@ struct std::equal_to { return lhs.font.IsEqual(rhs.font) && lhs.scale == rhs.scale; } }; + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_FONT_GLYPH_PAIR_H_ diff --git a/engine/src/flutter/impeller/typographer/glyph.h b/engine/src/flutter/impeller/typographer/glyph.h index c9aad01cba..7e2d688d2b 100644 --- a/engine/src/flutter/impeller/typographer/glyph.h +++ b/engine/src/flutter/impeller/typographer/glyph.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_ #include #include @@ -69,3 +70,5 @@ struct std::less { return lhs.index < rhs.index; } }; + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_H_ diff --git a/engine/src/flutter/impeller/typographer/glyph_atlas.h b/engine/src/flutter/impeller/typographer/glyph_atlas.h index 94e4e8380a..ea4ea295e4 100644 --- a/engine/src/flutter/impeller/typographer/glyph_atlas.h +++ b/engine/src/flutter/impeller/typographer/glyph_atlas.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_ATLAS_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_ATLAS_H_ #include #include @@ -204,3 +205,5 @@ class FontGlyphAtlas { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_GLYPH_ATLAS_H_ diff --git a/engine/src/flutter/impeller/typographer/lazy_glyph_atlas.h b/engine/src/flutter/impeller/typographer/lazy_glyph_atlas.h index 3c14b2359b..a263ea188f 100644 --- a/engine/src/flutter/impeller/typographer/lazy_glyph_atlas.h +++ b/engine/src/flutter/impeller/typographer/lazy_glyph_atlas.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_LAZY_GLYPH_ATLAS_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_LAZY_GLYPH_ATLAS_H_ #include @@ -45,3 +46,5 @@ class LazyGlyphAtlas { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_LAZY_GLYPH_ATLAS_H_ diff --git a/engine/src/flutter/impeller/typographer/rectangle_packer.h b/engine/src/flutter/impeller/typographer/rectangle_packer.h index 836849b42e..9213cae678 100644 --- a/engine/src/flutter/impeller/typographer/rectangle_packer.h +++ b/engine/src/flutter/impeller/typographer/rectangle_packer.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_RECTANGLE_PACKER_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_RECTANGLE_PACKER_H_ #include "flutter/fml/logging.h" @@ -69,3 +70,5 @@ class RectanglePacker { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_RECTANGLE_PACKER_H_ diff --git a/engine/src/flutter/impeller/typographer/text_frame.h b/engine/src/flutter/impeller/typographer/text_frame.h index d0d2d03e80..1089039cb2 100644 --- a/engine/src/flutter/impeller/typographer/text_frame.h +++ b/engine/src/flutter/impeller/typographer/text_frame.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_FRAME_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_FRAME_H_ #include "flutter/fml/macros.h" #include "impeller/typographer/glyph_atlas.h" @@ -75,3 +76,5 @@ class TextFrame { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_FRAME_H_ diff --git a/engine/src/flutter/impeller/typographer/text_run.h b/engine/src/flutter/impeller/typographer/text_run.h index 340db94d9f..6bec4d1918 100644 --- a/engine/src/flutter/impeller/typographer/text_run.h +++ b/engine/src/flutter/impeller/typographer/text_run.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_RUN_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_RUN_H_ #include @@ -77,3 +78,5 @@ class TextRun { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_TEXT_RUN_H_ diff --git a/engine/src/flutter/impeller/typographer/typeface.h b/engine/src/flutter/impeller/typographer/typeface.h index 45722cbe7d..bf5123a46e 100644 --- a/engine/src/flutter/impeller/typographer/typeface.h +++ b/engine/src/flutter/impeller/typographer/typeface.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_ #include "flutter/fml/macros.h" #include "impeller/base/comparable.h" @@ -31,3 +32,5 @@ class Typeface : public Comparable { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_ diff --git a/engine/src/flutter/impeller/typographer/typographer_context.h b/engine/src/flutter/impeller/typographer/typographer_context.h index 696d093091..6e50027151 100644 --- a/engine/src/flutter/impeller/typographer/typographer_context.h +++ b/engine/src/flutter/impeller/typographer/typographer_context.h @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#pragma once +#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_TYPOGRAPHER_CONTEXT_H_ +#define FLUTTER_IMPELLER_TYPOGRAPHER_TYPOGRAPHER_CONTEXT_H_ #include @@ -53,3 +54,5 @@ class TypographerContext { }; } // namespace impeller + +#endif // FLUTTER_IMPELLER_TYPOGRAPHER_TYPOGRAPHER_CONTEXT_H_