diff --git a/impeller/aiks/aiks_context.h b/impeller/aiks/aiks_context.h index 5ac0fcaa7bc03..650465d770dfc 100644 --- a/impeller/aiks/aiks_context.h +++ b/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/impeller/aiks/aiks_playground.h b/impeller/aiks/aiks_playground.h index a98c426e7821d..64490cb679254 100644 --- a/impeller/aiks/aiks_playground.h +++ b/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/impeller/aiks/canvas.h b/impeller/aiks/canvas.h index b1c6bab07340c..df62c29bcf83f 100644 --- a/impeller/aiks/canvas.h +++ b/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/impeller/aiks/canvas_recorder.h b/impeller/aiks/canvas_recorder.h index 2a07a371ce0f2..4b75ef5f82934 100644 --- a/impeller/aiks/canvas_recorder.h +++ b/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/impeller/aiks/canvas_type.h b/impeller/aiks/canvas_type.h index a6992163a77ba..c9402c0526d27 100644 --- a/impeller/aiks/canvas_type.h +++ b/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/impeller/aiks/color_filter.h b/impeller/aiks/color_filter.h index 84dfbbd19b40d..4ed24b81b10cb 100644 --- a/impeller/aiks/color_filter.h +++ b/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/impeller/aiks/color_source.h b/impeller/aiks/color_source.h index 7849b841ec784..868362d99c48c 100644 --- a/impeller/aiks/color_source.h +++ b/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/impeller/aiks/image.h b/impeller/aiks/image.h index 4011137b403e3..534506880b2d4 100644 --- a/impeller/aiks/image.h +++ b/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/impeller/aiks/image_filter.h b/impeller/aiks/image_filter.h index e3e6908df515c..9d72c14d1a522 100644 --- a/impeller/aiks/image_filter.h +++ b/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/impeller/aiks/paint.h b/impeller/aiks/paint.h index 68608d3dce175..126f152dba84c 100644 --- a/impeller/aiks/paint.h +++ b/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/impeller/aiks/paint_pass_delegate.h b/impeller/aiks/paint_pass_delegate.h index c0154475ae0ef..6209f56bcd190 100644 --- a/impeller/aiks/paint_pass_delegate.h +++ b/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/impeller/aiks/picture.h b/impeller/aiks/picture.h index f4e8a640efa9a..8419d203e972f 100644 --- a/impeller/aiks/picture.h +++ b/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/impeller/aiks/picture_recorder.h b/impeller/aiks/picture_recorder.h index 739792a2df1b5..ab561d437e87a 100644 --- a/impeller/aiks/picture_recorder.h +++ b/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/impeller/aiks/testing/context_mock.h b/impeller/aiks/testing/context_mock.h index c80ade623d4fd..b2d9138503fbb 100644 --- a/impeller/aiks/testing/context_mock.h +++ b/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/impeller/aiks/testing/context_spy.h b/impeller/aiks/testing/context_spy.h index 9d32f2e136880..28a5ec3907ae4 100644 --- a/impeller/aiks/testing/context_spy.h +++ b/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/impeller/aiks/trace_serializer.h b/impeller/aiks/trace_serializer.h index 9232de504a375..bb6598a50fcfe 100644 --- a/impeller/aiks/trace_serializer.h +++ b/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/impeller/archivist/archivable.h b/impeller/archivist/archivable.h index 41c296301d20a..9a7bdba6d2b4f 100644 --- a/impeller/archivist/archivable.h +++ b/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/impeller/archivist/archive.h b/impeller/archivist/archive.h index 33c3f66988034..753e60beb12ac 100644 --- a/impeller/archivist/archive.h +++ b/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/impeller/archivist/archive_class_registration.h b/impeller/archivist/archive_class_registration.h index 6fc5710427043..7de79d35d505c 100644 --- a/impeller/archivist/archive_class_registration.h +++ b/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/impeller/archivist/archive_database.h b/impeller/archivist/archive_database.h index e8376fc370190..c3f85196daec3 100644 --- a/impeller/archivist/archive_database.h +++ b/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/impeller/archivist/archive_location.h b/impeller/archivist/archive_location.h index 6b773274ad44c..9df52ab40062d 100644 --- a/impeller/archivist/archive_location.h +++ b/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/impeller/archivist/archive_statement.h b/impeller/archivist/archive_statement.h index a5de60f865bc3..09e002afe7528 100644 --- a/impeller/archivist/archive_statement.h +++ b/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/impeller/archivist/archive_transaction.h b/impeller/archivist/archive_transaction.h index 671074cb1546e..1b95b37721a10 100644 --- a/impeller/archivist/archive_transaction.h +++ b/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/impeller/archivist/archive_vector.h b/impeller/archivist/archive_vector.h index 2db657a68375d..34600cee92317 100644 --- a/impeller/archivist/archive_vector.h +++ b/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/impeller/archivist/archivist_fixture.h b/impeller/archivist/archivist_fixture.h index b31abd3eec963..fa90d0bdff404 100644 --- a/impeller/archivist/archivist_fixture.h +++ b/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/impeller/base/allocation.h b/impeller/base/allocation.h index a32d97bc0faf6..dd1b06befa6fe 100644 --- a/impeller/base/allocation.h +++ b/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/impeller/base/backend_cast.h b/impeller/base/backend_cast.h index c3044bb2ac71c..71e2331cd4575 100644 --- a/impeller/base/backend_cast.h +++ b/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/impeller/base/comparable.h b/impeller/base/comparable.h index 08780f75c5e66..2f0c6e1e6513f 100644 --- a/impeller/base/comparable.h +++ b/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/impeller/base/config.h b/impeller/base/config.h index 610661a48db33..06c91869402d7 100644 --- a/impeller/base/config.h +++ b/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/impeller/base/promise.h b/impeller/base/promise.h index 04b0cc962bd60..30d45ae4d3f5f 100644 --- a/impeller/base/promise.h +++ b/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/impeller/base/strings.h b/impeller/base/strings.h index 085bb1263d823..cefe10343eb0e 100644 --- a/impeller/base/strings.h +++ b/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/impeller/base/thread.h b/impeller/base/thread.h index d6b03573a2631..c9f3fcb24548d 100644 --- a/impeller/base/thread.h +++ b/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/impeller/base/thread_safety.h b/impeller/base/thread_safety.h index 8d1f0aa02ccf2..da1aed3b5e7a5 100644 --- a/impeller/base/thread_safety.h +++ b/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/impeller/base/timing.h b/impeller/base/timing.h index 1496fd9eb9503..86ac48ceba327 100644 --- a/impeller/base/timing.h +++ b/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/impeller/base/validation.h b/impeller/base/validation.h index 1e7671adaa0ba..50ebd0c440247 100644 --- a/impeller/base/validation.h +++ b/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/impeller/base/version.h b/impeller/base/version.h index 423e56272cf27..06e03ad394787 100644 --- a/impeller/base/version.h +++ b/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/impeller/compiler/compiler.h b/impeller/compiler/compiler.h index 32f9676743c29..8447983005562 100644 --- a/impeller/compiler/compiler.h +++ b/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/impeller/compiler/compiler_backend.h b/impeller/compiler/compiler_backend.h index ea278014398b1..4b2aabd0e00a3 100644 --- a/impeller/compiler/compiler_backend.h +++ b/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/impeller/compiler/compiler_test.h b/impeller/compiler/compiler_test.h index 0f3c5f08c7921..fdee8a598e80e 100644 --- a/impeller/compiler/compiler_test.h +++ b/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/impeller/compiler/constants.h b/impeller/compiler/constants.h index c31005b8339ce..958a643aca542 100644 --- a/impeller/compiler/constants.h +++ b/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/impeller/compiler/include_dir.h b/impeller/compiler/include_dir.h index 0c7927a47ffef..2a40dd0e36973 100644 --- a/impeller/compiler/include_dir.h +++ b/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/impeller/compiler/includer.h b/impeller/compiler/includer.h index a3af915317ade..70123148006e2 100644 --- a/impeller/compiler/includer.h +++ b/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/impeller/compiler/logger.h b/impeller/compiler/logger.h index d96de575ba390..11232d83a8449 100644 --- a/impeller/compiler/logger.h +++ b/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/impeller/compiler/reflector.h b/impeller/compiler/reflector.h index bb1572793f1d4..981f004dfecd2 100644 --- a/impeller/compiler/reflector.h +++ b/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/impeller/compiler/runtime_stage_data.h b/impeller/compiler/runtime_stage_data.h index 45e3476fc84f5..0e650d6b98ac3 100644 --- a/impeller/compiler/runtime_stage_data.h +++ b/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/impeller/compiler/source_options.h b/impeller/compiler/source_options.h index 5c9983284d738..89011f7158892 100644 --- a/impeller/compiler/source_options.h +++ b/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/impeller/compiler/spirv_compiler.h b/impeller/compiler/spirv_compiler.h index c688cd2b46a75..9f6463d4de542 100644 --- a/impeller/compiler/spirv_compiler.h +++ b/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/impeller/compiler/spirv_sksl.h b/impeller/compiler/spirv_sksl.h index 8e4879d02e2f7..8b1a1b869536d 100644 --- a/impeller/compiler/spirv_sksl.h +++ b/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/impeller/compiler/switches.h b/impeller/compiler/switches.h index c02e344fa4a88..1c6a561191400 100644 --- a/impeller/compiler/switches.h +++ b/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/impeller/compiler/types.h b/impeller/compiler/types.h index 0af2a5c403352..5b55e7a9589b4 100644 --- a/impeller/compiler/types.h +++ b/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/impeller/compiler/uniform_sorter.h b/impeller/compiler/uniform_sorter.h index 5279aaecb6cf5..3493f60b38b33 100644 --- a/impeller/compiler/uniform_sorter.h +++ b/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/impeller/compiler/utilities.h b/impeller/compiler/utilities.h index d1d27436ac08e..dbbd53d440840 100644 --- a/impeller/compiler/utilities.h +++ b/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/impeller/core/allocator.h b/impeller/core/allocator.h index 07c1c93bf69ea..adcbc656703eb 100644 --- a/impeller/core/allocator.h +++ b/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/impeller/core/buffer.h b/impeller/core/buffer.h index d29e32e1be70b..0664f1afc53b3 100644 --- a/impeller/core/buffer.h +++ b/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/impeller/core/buffer_view.h b/impeller/core/buffer_view.h index 1a272a8b29fcd..551bb0b625e58 100644 --- a/impeller/core/buffer_view.h +++ b/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/impeller/core/capture.h b/impeller/core/capture.h index 5f41321c2cb0d..9e5c0d9318417 100644 --- a/impeller/core/capture.h +++ b/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/impeller/core/device_buffer.h b/impeller/core/device_buffer.h index ac0d454df28c2..c3ed289922d30 100644 --- a/impeller/core/device_buffer.h +++ b/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/impeller/core/device_buffer_descriptor.h b/impeller/core/device_buffer_descriptor.h index 976b8f7b0acac..d1bf458942273 100644 --- a/impeller/core/device_buffer_descriptor.h +++ b/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/impeller/core/formats.h b/impeller/core/formats.h index 071fc3c88457a..5d5d64299f2c4 100644 --- a/impeller/core/formats.h +++ b/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/impeller/core/host_buffer.h b/impeller/core/host_buffer.h index 58d5f111b530e..5c3a69c75dcbf 100644 --- a/impeller/core/host_buffer.h +++ b/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/impeller/core/platform.h b/impeller/core/platform.h index 417a0f90c1a4d..824738c02d8a7 100644 --- a/impeller/core/platform.h +++ b/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/impeller/core/range.h b/impeller/core/range.h index e1a28878136ce..d0971725c6928 100644 --- a/impeller/core/range.h +++ b/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/impeller/core/resource_binder.h b/impeller/core/resource_binder.h index a3bbb532f9522..6a6172710d700 100644 --- a/impeller/core/resource_binder.h +++ b/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/impeller/core/runtime_types.h b/impeller/core/runtime_types.h index 67d66e978425e..4fb210d728ebf 100644 --- a/impeller/core/runtime_types.h +++ b/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/impeller/core/sampler.h b/impeller/core/sampler.h index afc3968c4cc23..0c06ad17d3a3c 100644 --- a/impeller/core/sampler.h +++ b/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/impeller/core/sampler_descriptor.h b/impeller/core/sampler_descriptor.h index 45163b1cc2bdc..0e92745ec311f 100644 --- a/impeller/core/sampler_descriptor.h +++ b/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/impeller/core/shader_types.h b/impeller/core/shader_types.h index 83fd120baf7ba..8b267dbe48e28 100644 --- a/impeller/core/shader_types.h +++ b/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/impeller/core/texture.h b/impeller/core/texture.h index 8c6e3238b6448..b28dbb27ab5f3 100644 --- a/impeller/core/texture.h +++ b/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/impeller/core/texture_descriptor.h b/impeller/core/texture_descriptor.h index e168895c673f4..8c1868f3ce1e0 100644 --- a/impeller/core/texture_descriptor.h +++ b/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/impeller/core/vertex_buffer.h b/impeller/core/vertex_buffer.h index 7beac43d3c9b0..b88654ce9e552 100644 --- a/impeller/core/vertex_buffer.h +++ b/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/impeller/display_list/dl_dispatcher.h b/impeller/display_list/dl_dispatcher.h index 10ed7fc6104e5..a0a1fcfb8d3ad 100644 --- a/impeller/display_list/dl_dispatcher.h +++ b/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/impeller/display_list/dl_image_impeller.h b/impeller/display_list/dl_image_impeller.h index 8f9e51443b00e..920c21fc8f138 100644 --- a/impeller/display_list/dl_image_impeller.h +++ b/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/impeller/display_list/dl_playground.h b/impeller/display_list/dl_playground.h index 7b47c3643750d..b49b1a556e156 100644 --- a/impeller/display_list/dl_playground.h +++ b/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/impeller/display_list/dl_vertices_geometry.h b/impeller/display_list/dl_vertices_geometry.h index 466ed932a7ce4..e7502cdc83dbe 100644 --- a/impeller/display_list/dl_vertices_geometry.h +++ b/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/impeller/display_list/nine_patch_converter.h b/impeller/display_list/nine_patch_converter.h index 44afe97d2fe06..2d0974baa1ebb 100644 --- a/impeller/display_list/nine_patch_converter.h +++ b/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/impeller/display_list/skia_conversions.h b/impeller/display_list/skia_conversions.h index 6b02c8b609e5e..a0fe839d29b87 100644 --- a/impeller/display_list/skia_conversions.h +++ b/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/impeller/entity/contents/anonymous_contents.h b/impeller/entity/contents/anonymous_contents.h index a02769b809f2c..0efbfa7487e77 100644 --- a/impeller/entity/contents/anonymous_contents.h +++ b/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/impeller/entity/contents/atlas_contents.h b/impeller/entity/contents/atlas_contents.h index 3e6c5958564bf..12e5e232d3f25 100644 --- a/impeller/entity/contents/atlas_contents.h +++ b/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/impeller/entity/contents/checkerboard_contents.h b/impeller/entity/contents/checkerboard_contents.h index 1c8682a28764b..43b2ae79424ad 100644 --- a/impeller/entity/contents/checkerboard_contents.h +++ b/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/impeller/entity/contents/clip_contents.h b/impeller/entity/contents/clip_contents.h index eaf156b018ecd..b519cc255e112 100644 --- a/impeller/entity/contents/clip_contents.h +++ b/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/impeller/entity/contents/color_source_contents.h b/impeller/entity/contents/color_source_contents.h index a35d4d2277e2a..ca21097664a4f 100644 --- a/impeller/entity/contents/color_source_contents.h +++ b/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/impeller/entity/contents/conical_gradient_contents.h b/impeller/entity/contents/conical_gradient_contents.h index 52a4a36697403..db3b86b98e630 100644 --- a/impeller/entity/contents/conical_gradient_contents.h +++ b/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/impeller/entity/contents/content_context.h b/impeller/entity/contents/content_context.h index e23ddcc1c06f1..b9ee0ffc939ac 100644 --- a/impeller/entity/contents/content_context.h +++ b/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/impeller/entity/contents/contents.h b/impeller/entity/contents/contents.h index d1dbb3349beb2..9a9ea86609184 100644 --- a/impeller/entity/contents/contents.h +++ b/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/impeller/entity/contents/filters/blend_filter_contents.h b/impeller/entity/contents/filters/blend_filter_contents.h index 8a3841b32ce85..562f306034ebd 100644 --- a/impeller/entity/contents/filters/blend_filter_contents.h +++ b/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/impeller/entity/contents/filters/border_mask_blur_filter_contents.h b/impeller/entity/contents/filters/border_mask_blur_filter_contents.h index 90b8e2a44c1a2..10be38dbb72ed 100644 --- a/impeller/entity/contents/filters/border_mask_blur_filter_contents.h +++ b/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/impeller/entity/contents/filters/color_filter_contents.h b/impeller/entity/contents/filters/color_filter_contents.h index 7fc77d7e32666..14d9cb8aa5959 100644 --- a/impeller/entity/contents/filters/color_filter_contents.h +++ b/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/impeller/entity/contents/filters/color_matrix_filter_contents.h b/impeller/entity/contents/filters/color_matrix_filter_contents.h index 6c5c253941a96..e394125f79b9a 100644 --- a/impeller/entity/contents/filters/color_matrix_filter_contents.h +++ b/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/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h b/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h index ff15c388c713b..2ea5df044f2cb 100644 --- a/impeller/entity/contents/filters/directional_gaussian_blur_filter_contents.h +++ b/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/impeller/entity/contents/filters/filter_contents.h b/impeller/entity/contents/filters/filter_contents.h index b6aba377766ed..3e210d8f0fb70 100644 --- a/impeller/entity/contents/filters/filter_contents.h +++ b/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/impeller/entity/contents/filters/gaussian_blur_filter_contents.h b/impeller/entity/contents/filters/gaussian_blur_filter_contents.h index 7d390ddf87e78..143c6f5ab0c6a 100644 --- a/impeller/entity/contents/filters/gaussian_blur_filter_contents.h +++ b/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/impeller/entity/contents/filters/inputs/contents_filter_input.h b/impeller/entity/contents/filters/inputs/contents_filter_input.h index 983161fa728a3..8d381b76530ed 100644 --- a/impeller/entity/contents/filters/inputs/contents_filter_input.h +++ b/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/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h b/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h index ca3137ac4615a..965d45b3b1698 100644 --- a/impeller/entity/contents/filters/inputs/filter_contents_filter_input.h +++ b/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/impeller/entity/contents/filters/inputs/filter_input.h b/impeller/entity/contents/filters/inputs/filter_input.h index 9d1dd5189edd7..20a7136b446fd 100644 --- a/impeller/entity/contents/filters/inputs/filter_input.h +++ b/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/impeller/entity/contents/filters/inputs/placeholder_filter_input.h b/impeller/entity/contents/filters/inputs/placeholder_filter_input.h index 09d5be61f1a6a..a6305bc22b236 100644 --- a/impeller/entity/contents/filters/inputs/placeholder_filter_input.h +++ b/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/impeller/entity/contents/filters/inputs/texture_filter_input.h b/impeller/entity/contents/filters/inputs/texture_filter_input.h index 757f570800d16..320eb1b191f6d 100644 --- a/impeller/entity/contents/filters/inputs/texture_filter_input.h +++ b/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/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h b/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h index e70a98c151d2c..d43703896aacf 100644 --- a/impeller/entity/contents/filters/linear_to_srgb_filter_contents.h +++ b/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/impeller/entity/contents/filters/local_matrix_filter_contents.h b/impeller/entity/contents/filters/local_matrix_filter_contents.h index 5d9e547a35e5b..0340058a021bc 100644 --- a/impeller/entity/contents/filters/local_matrix_filter_contents.h +++ b/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/impeller/entity/contents/filters/matrix_filter_contents.h b/impeller/entity/contents/filters/matrix_filter_contents.h index bb498ea402443..dd6334e4169c8 100644 --- a/impeller/entity/contents/filters/matrix_filter_contents.h +++ b/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/impeller/entity/contents/filters/morphology_filter_contents.h b/impeller/entity/contents/filters/morphology_filter_contents.h index 91482f4673312..db3c23071ce09 100644 --- a/impeller/entity/contents/filters/morphology_filter_contents.h +++ b/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/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h b/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h index 4e1b374943eff..dfadcffbf0c42 100644 --- a/impeller/entity/contents/filters/srgb_to_linear_filter_contents.h +++ b/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/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h b/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h index ef3ae2e522c93..efa903f0d9d35 100644 --- a/impeller/entity/contents/filters/yuv_to_rgb_filter_contents.h +++ b/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/impeller/entity/contents/framebuffer_blend_contents.h b/impeller/entity/contents/framebuffer_blend_contents.h index ac5b57229f3b0..5335055bd3f61 100644 --- a/impeller/entity/contents/framebuffer_blend_contents.h +++ b/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/impeller/entity/contents/gradient_generator.h b/impeller/entity/contents/gradient_generator.h index 24321d861218f..8c3c02e9d9527 100644 --- a/impeller/entity/contents/gradient_generator.h +++ b/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/impeller/entity/contents/linear_gradient_contents.h b/impeller/entity/contents/linear_gradient_contents.h index e73fa8eed8ca1..75b24a3ab9f4d 100644 --- a/impeller/entity/contents/linear_gradient_contents.h +++ b/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/impeller/entity/contents/radial_gradient_contents.h b/impeller/entity/contents/radial_gradient_contents.h index 8e5ae3e121670..87bd981942a1e 100644 --- a/impeller/entity/contents/radial_gradient_contents.h +++ b/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/impeller/entity/contents/runtime_effect_contents.h b/impeller/entity/contents/runtime_effect_contents.h index ada5f582654bf..c92b6eff24cb4 100644 --- a/impeller/entity/contents/runtime_effect_contents.h +++ b/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/impeller/entity/contents/scene_contents.h b/impeller/entity/contents/scene_contents.h index b1f443cd7502d..e5b249baf97ff 100644 --- a/impeller/entity/contents/scene_contents.h +++ b/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/impeller/entity/contents/solid_color_contents.h b/impeller/entity/contents/solid_color_contents.h index d0cc492712702..8fb7fc946176a 100644 --- a/impeller/entity/contents/solid_color_contents.h +++ b/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/impeller/entity/contents/solid_rrect_blur_contents.h b/impeller/entity/contents/solid_rrect_blur_contents.h index 41930406a8bc1..6d697b257e586 100644 --- a/impeller/entity/contents/solid_rrect_blur_contents.h +++ b/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/impeller/entity/contents/sweep_gradient_contents.h b/impeller/entity/contents/sweep_gradient_contents.h index 1760cb3de9f0d..d46fbee8579a4 100644 --- a/impeller/entity/contents/sweep_gradient_contents.h +++ b/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/impeller/entity/contents/test/contents_test_helpers.h b/impeller/entity/contents/test/contents_test_helpers.h index e65b5636ef8d5..afcef40c84075 100644 --- a/impeller/entity/contents/test/contents_test_helpers.h +++ b/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/impeller/entity/contents/text_contents.h b/impeller/entity/contents/text_contents.h index 22a0bd04e6fb2..c7deaa3642d30 100644 --- a/impeller/entity/contents/text_contents.h +++ b/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/impeller/entity/contents/texture_contents.h b/impeller/entity/contents/texture_contents.h index 1cee26ac20e4f..5c9921fd303bc 100644 --- a/impeller/entity/contents/texture_contents.h +++ b/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/impeller/entity/contents/tiled_texture_contents.h b/impeller/entity/contents/tiled_texture_contents.h index 90ee30af73283..b0a4af1dab9b2 100644 --- a/impeller/entity/contents/tiled_texture_contents.h +++ b/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/impeller/entity/contents/vertices_contents.h b/impeller/entity/contents/vertices_contents.h index 8aedfdf9097c6..b5d3590f02421 100644 --- a/impeller/entity/contents/vertices_contents.h +++ b/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/impeller/entity/entity.h b/impeller/entity/entity.h index c5d98b5a11768..72671320dc785 100644 --- a/impeller/entity/entity.h +++ b/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/impeller/entity/entity_pass.h b/impeller/entity/entity_pass.h index 08b34377a446f..1ff08f077ebba 100644 --- a/impeller/entity/entity_pass.h +++ b/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/impeller/entity/entity_pass_delegate.h b/impeller/entity/entity_pass_delegate.h index 8708edf18b451..72a38af65eebc 100644 --- a/impeller/entity/entity_pass_delegate.h +++ b/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/impeller/entity/entity_pass_target.h b/impeller/entity/entity_pass_target.h index 76e90ece6f083..204944e4b3a35 100644 --- a/impeller/entity/entity_pass_target.h +++ b/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/impeller/entity/entity_playground.h b/impeller/entity/entity_playground.h index 10604f607237c..41dc21658ef2b 100644 --- a/impeller/entity/entity_playground.h +++ b/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/impeller/entity/geometry/circle_geometry.h b/impeller/entity/geometry/circle_geometry.h index d74c41b99c522..be75f891317d1 100644 --- a/impeller/entity/geometry/circle_geometry.h +++ b/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/impeller/entity/geometry/cover_geometry.h b/impeller/entity/geometry/cover_geometry.h index 653b0c5f9769f..3d7675648e5dd 100644 --- a/impeller/entity/geometry/cover_geometry.h +++ b/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/impeller/entity/geometry/ellipse_geometry.h b/impeller/entity/geometry/ellipse_geometry.h index cd294a67bde12..892d03568e6de 100644 --- a/impeller/entity/geometry/ellipse_geometry.h +++ b/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/impeller/entity/geometry/fill_path_geometry.h b/impeller/entity/geometry/fill_path_geometry.h index 690db3ea521b7..a1210846b311b 100644 --- a/impeller/entity/geometry/fill_path_geometry.h +++ b/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/impeller/entity/geometry/geometry.h b/impeller/entity/geometry/geometry.h index a58dfec38d677..a958f8e5aacaa 100644 --- a/impeller/entity/geometry/geometry.h +++ b/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/impeller/entity/geometry/line_geometry.h b/impeller/entity/geometry/line_geometry.h index 19bf5665aed21..58032074ed5d9 100644 --- a/impeller/entity/geometry/line_geometry.h +++ b/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/impeller/entity/geometry/point_field_geometry.h b/impeller/entity/geometry/point_field_geometry.h index 944db2df960b6..9d43f07cb9fbe 100644 --- a/impeller/entity/geometry/point_field_geometry.h +++ b/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/impeller/entity/geometry/rect_geometry.h b/impeller/entity/geometry/rect_geometry.h index 35f1762ed2a11..91842a027633e 100644 --- a/impeller/entity/geometry/rect_geometry.h +++ b/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/impeller/entity/geometry/round_rect_geometry.h b/impeller/entity/geometry/round_rect_geometry.h index 36d345fc49941..78f0523a20f1f 100644 --- a/impeller/entity/geometry/round_rect_geometry.h +++ b/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/impeller/entity/geometry/stroke_path_geometry.h b/impeller/entity/geometry/stroke_path_geometry.h index 32db2d0d8b979..ef08a98ed5fe6 100644 --- a/impeller/entity/geometry/stroke_path_geometry.h +++ b/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/impeller/entity/geometry/vertices_geometry.h b/impeller/entity/geometry/vertices_geometry.h index 1e32961fd5eb5..8f4d2be485e62 100644 --- a/impeller/entity/geometry/vertices_geometry.h +++ b/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/impeller/entity/inline_pass_context.h b/impeller/entity/inline_pass_context.h index 4da816478a705..595d291b5a1c8 100644 --- a/impeller/entity/inline_pass_context.h +++ b/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/impeller/entity/render_target_cache.h b/impeller/entity/render_target_cache.h index 4be1c1daebd29..b59bd43983711 100644 --- a/impeller/entity/render_target_cache.h +++ b/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/impeller/fixtures/golden_paths.h b/impeller/fixtures/golden_paths.h index 95fae57792ef3..16767f766b776 100644 --- a/impeller/fixtures/golden_paths.h +++ b/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/impeller/fixtures/types.h b/impeller/fixtures/types.h index aca0e96ad79b3..e26dbee0682bd 100644 --- a/impeller/fixtures/types.h +++ b/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/impeller/geometry/color.h b/impeller/geometry/color.h index e31a82031b293..6aa8b502ae665 100644 --- a/impeller/geometry/color.h +++ b/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/impeller/geometry/constants.h b/impeller/geometry/constants.h index eb600e90da6fd..2fa8e037db8a8 100644 --- a/impeller/geometry/constants.h +++ b/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/impeller/geometry/geometry_asserts.h b/impeller/geometry/geometry_asserts.h index de38b445fb7cd..f5eeac9550c35 100644 --- a/impeller/geometry/geometry_asserts.h +++ b/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/impeller/geometry/gradient.h b/impeller/geometry/gradient.h index 5aca0be745f41..8d6e70a2e3f3c 100644 --- a/impeller/geometry/gradient.h +++ b/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/impeller/geometry/half.h b/impeller/geometry/half.h index d5aef60e0d3e3..8ab60a0f57ae7 100644 --- a/impeller/geometry/half.h +++ b/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/impeller/geometry/matrix.h b/impeller/geometry/matrix.h index 2a4e222c17ca1..dab9186e69626 100644 --- a/impeller/geometry/matrix.h +++ b/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/impeller/geometry/matrix_decomposition.h b/impeller/geometry/matrix_decomposition.h index 31c01ec5c6266..a5b6592f26149 100644 --- a/impeller/geometry/matrix_decomposition.h +++ b/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/impeller/geometry/path.h b/impeller/geometry/path.h index 0b1e5962a2ba3..f4f5800ab12e3 100644 --- a/impeller/geometry/path.h +++ b/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/impeller/geometry/path_builder.h b/impeller/geometry/path_builder.h index d6c302f16454b..826d2abfc2990 100644 --- a/impeller/geometry/path_builder.h +++ b/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/impeller/geometry/path_component.h b/impeller/geometry/path_component.h index c47b55cbec4f0..8bf1018925a18 100644 --- a/impeller/geometry/path_component.h +++ b/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/impeller/geometry/point.h b/impeller/geometry/point.h index f8a00c1252d5c..ad978a08abb47 100644 --- a/impeller/geometry/point.h +++ b/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/impeller/geometry/quaternion.h b/impeller/geometry/quaternion.h index 3a5738250fc1e..408f5c04edb64 100644 --- a/impeller/geometry/quaternion.h +++ b/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/impeller/geometry/rect.h b/impeller/geometry/rect.h index 20781582b7890..c371512ccf9cb 100644 --- a/impeller/geometry/rect.h +++ b/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/impeller/geometry/scalar.h b/impeller/geometry/scalar.h index ffdc58e33664a..2600a49c42dc5 100644 --- a/impeller/geometry/scalar.h +++ b/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/impeller/geometry/shear.h b/impeller/geometry/shear.h index 155f7ea7fae43..c94e26e5f0cb5 100644 --- a/impeller/geometry/shear.h +++ b/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/impeller/geometry/sigma.h b/impeller/geometry/sigma.h index c909128be4baa..9ea85498dbae4 100644 --- a/impeller/geometry/sigma.h +++ b/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/impeller/geometry/size.h b/impeller/geometry/size.h index 9a40dc9a0cd72..5c1c9c96c9528 100644 --- a/impeller/geometry/size.h +++ b/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/impeller/geometry/trig.h b/impeller/geometry/trig.h index 332c8ee1dd627..da43375744f77 100644 --- a/impeller/geometry/trig.h +++ b/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/impeller/geometry/type_traits.h b/impeller/geometry/type_traits.h index 4e884d16c1eca..7fc0ac436040d 100644 --- a/impeller/geometry/type_traits.h +++ b/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/impeller/geometry/vector.h b/impeller/geometry/vector.h index b319776ff25df..eadf913297ac4 100644 --- a/impeller/geometry/vector.h +++ b/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/impeller/golden_tests/golden_digest.h b/impeller/golden_tests/golden_digest.h index 4ed422b8aa73d..aaa4e8fa00c2a 100644 --- a/impeller/golden_tests/golden_digest.h +++ b/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/impeller/golden_tests/golden_playground_test.h b/impeller/golden_tests/golden_playground_test.h index 4488dea7bba8b..d28ee1f3ae94e 100644 --- a/impeller/golden_tests/golden_playground_test.h +++ b/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/impeller/golden_tests/metal_screenshot.h b/impeller/golden_tests/metal_screenshot.h index 3b4814746bf5d..d2f9dab09b52c 100644 --- a/impeller/golden_tests/metal_screenshot.h +++ b/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/impeller/golden_tests/metal_screenshotter.h b/impeller/golden_tests/metal_screenshotter.h index c013cf27d3f48..292053dd660be 100644 --- a/impeller/golden_tests/metal_screenshotter.h +++ b/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/impeller/golden_tests/working_directory.h b/impeller/golden_tests/working_directory.h index fc507c97a864b..e6de4ef36f8ab 100644 --- a/impeller/golden_tests/working_directory.h +++ b/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/impeller/image/backends/skia/compressed_image_skia.h b/impeller/image/backends/skia/compressed_image_skia.h index 4b940fdbf855d..1db71c2bdb855 100644 --- a/impeller/image/backends/skia/compressed_image_skia.h +++ b/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/impeller/image/compressed_image.h b/impeller/image/compressed_image.h index c758a632b94ad..69d69db81f928 100644 --- a/impeller/image/compressed_image.h +++ b/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/impeller/image/decompressed_image.h b/impeller/image/decompressed_image.h index 56bf9b15c5c4c..d6643b1a43119 100644 --- a/impeller/image/decompressed_image.h +++ b/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/impeller/playground/backend/gles/playground_impl_gles.h b/impeller/playground/backend/gles/playground_impl_gles.h index c16547583c9f2..d1e328230c47a 100644 --- a/impeller/playground/backend/gles/playground_impl_gles.h +++ b/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/impeller/playground/backend/metal/playground_impl_mtl.h b/impeller/playground/backend/metal/playground_impl_mtl.h index b9cf12cde43f2..937db7a753c42 100644 --- a/impeller/playground/backend/metal/playground_impl_mtl.h +++ b/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/impeller/playground/backend/vulkan/playground_impl_vk.h b/impeller/playground/backend/vulkan/playground_impl_vk.h index 0fa614224a42e..eed479b85947d 100644 --- a/impeller/playground/backend/vulkan/playground_impl_vk.h +++ b/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/impeller/playground/compute_playground_test.h b/impeller/playground/compute_playground_test.h index 3af883b66e261..1d426a2ae7eb5 100644 --- a/impeller/playground/compute_playground_test.h +++ b/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/impeller/playground/imgui/imgui_impl_impeller.h b/impeller/playground/imgui/imgui_impl_impeller.h index 8b60efc31b5bd..cfb624a61c5a9 100644 --- a/impeller/playground/imgui/imgui_impl_impeller.h +++ b/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/impeller/playground/playground.h b/impeller/playground/playground.h index ee961485f0400..c9de5cc9cc185 100644 --- a/impeller/playground/playground.h +++ b/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/impeller/playground/playground_impl.h b/impeller/playground/playground_impl.h index 6f43819c6d849..499859f62508d 100644 --- a/impeller/playground/playground_impl.h +++ b/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/impeller/playground/playground_test.h b/impeller/playground/playground_test.h index 7aba4ee891463..2d2539afa474c 100644 --- a/impeller/playground/playground_test.h +++ b/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/impeller/playground/switches.h b/impeller/playground/switches.h index 662f7b153b381..1e28a37b195c9 100644 --- a/impeller/playground/switches.h +++ b/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/impeller/playground/widgets.h b/impeller/playground/widgets.h index e80d960d70455..59957451b1ddf 100644 --- a/impeller/playground/widgets.h +++ b/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/impeller/renderer/backend/gles/allocator_gles.h b/impeller/renderer/backend/gles/allocator_gles.h index e36b3515b7c79..a78980382b65d 100644 --- a/impeller/renderer/backend/gles/allocator_gles.h +++ b/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/impeller/renderer/backend/gles/blit_command_gles.h b/impeller/renderer/backend/gles/blit_command_gles.h index 570b1f19d30fb..5fa9c802f3a5b 100644 --- a/impeller/renderer/backend/gles/blit_command_gles.h +++ b/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/impeller/renderer/backend/gles/blit_pass_gles.h b/impeller/renderer/backend/gles/blit_pass_gles.h index 857a9ca153880..b38fa0da634c1 100644 --- a/impeller/renderer/backend/gles/blit_pass_gles.h +++ b/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/impeller/renderer/backend/gles/buffer_bindings_gles.h b/impeller/renderer/backend/gles/buffer_bindings_gles.h index c30e4e631b887..17f5a5a7b175c 100644 --- a/impeller/renderer/backend/gles/buffer_bindings_gles.h +++ b/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/impeller/renderer/backend/gles/capabilities_gles.h b/impeller/renderer/backend/gles/capabilities_gles.h index 921d3a4287cac..baa6d76d378c2 100644 --- a/impeller/renderer/backend/gles/capabilities_gles.h +++ b/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/impeller/renderer/backend/gles/command_buffer_gles.h b/impeller/renderer/backend/gles/command_buffer_gles.h index 6cc4ff3c68dad..23441a1a78e4f 100644 --- a/impeller/renderer/backend/gles/command_buffer_gles.h +++ b/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/impeller/renderer/backend/gles/context_gles.h b/impeller/renderer/backend/gles/context_gles.h index 5bfb5d399749d..a81b10ec75fb3 100644 --- a/impeller/renderer/backend/gles/context_gles.h +++ b/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/impeller/renderer/backend/gles/description_gles.h b/impeller/renderer/backend/gles/description_gles.h index 1ef07ed36e506..dac13cab61422 100644 --- a/impeller/renderer/backend/gles/description_gles.h +++ b/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/impeller/renderer/backend/gles/device_buffer_gles.h b/impeller/renderer/backend/gles/device_buffer_gles.h index 65661059bab96..8aee746127fea 100644 --- a/impeller/renderer/backend/gles/device_buffer_gles.h +++ b/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/impeller/renderer/backend/gles/formats_gles.h b/impeller/renderer/backend/gles/formats_gles.h index b4296fbfe264a..02adb19941fce 100644 --- a/impeller/renderer/backend/gles/formats_gles.h +++ b/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/impeller/renderer/backend/gles/gles.h b/impeller/renderer/backend/gles/gles.h index 9022cd02cfe88..b3a512e0d23f5 100644 --- a/impeller/renderer/backend/gles/gles.h +++ b/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/impeller/renderer/backend/gles/gpu_tracer_gles.h b/impeller/renderer/backend/gles/gpu_tracer_gles.h index f0f4397480267..f6b0de8ab9be6 100644 --- a/impeller/renderer/backend/gles/gpu_tracer_gles.h +++ b/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/impeller/renderer/backend/gles/handle_gles.h b/impeller/renderer/backend/gles/handle_gles.h index 3340310f41db6..a6fefd5923187 100644 --- a/impeller/renderer/backend/gles/handle_gles.h +++ b/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/impeller/renderer/backend/gles/pipeline_gles.h b/impeller/renderer/backend/gles/pipeline_gles.h index 6ea8fe1102689..9dfed8d807434 100644 --- a/impeller/renderer/backend/gles/pipeline_gles.h +++ b/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/impeller/renderer/backend/gles/pipeline_library_gles.h b/impeller/renderer/backend/gles/pipeline_library_gles.h index 74831525ae150..410fcb991a90c 100644 --- a/impeller/renderer/backend/gles/pipeline_library_gles.h +++ b/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/impeller/renderer/backend/gles/proc_table_gles.h b/impeller/renderer/backend/gles/proc_table_gles.h index 03af427d8bacf..7e2bfd0f339d9 100644 --- a/impeller/renderer/backend/gles/proc_table_gles.h +++ b/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/impeller/renderer/backend/gles/reactor_gles.h b/impeller/renderer/backend/gles/reactor_gles.h index 5922076943801..eff7c349819d9 100644 --- a/impeller/renderer/backend/gles/reactor_gles.h +++ b/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/impeller/renderer/backend/gles/render_pass_gles.h b/impeller/renderer/backend/gles/render_pass_gles.h index 30bcd7474e47b..2a003e6bdc66e 100644 --- a/impeller/renderer/backend/gles/render_pass_gles.h +++ b/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/impeller/renderer/backend/gles/sampler_gles.h b/impeller/renderer/backend/gles/sampler_gles.h index 62583054acc76..58b7f66cd5669 100644 --- a/impeller/renderer/backend/gles/sampler_gles.h +++ b/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/impeller/renderer/backend/gles/sampler_library_gles.h b/impeller/renderer/backend/gles/sampler_library_gles.h index 06e60c8594506..47b5f429ce58d 100644 --- a/impeller/renderer/backend/gles/sampler_library_gles.h +++ b/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/impeller/renderer/backend/gles/shader_function_gles.h b/impeller/renderer/backend/gles/shader_function_gles.h index 1888bdfd2a3d4..97bf2a49dc573 100644 --- a/impeller/renderer/backend/gles/shader_function_gles.h +++ b/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/impeller/renderer/backend/gles/shader_library_gles.h b/impeller/renderer/backend/gles/shader_library_gles.h index b2acd2228182f..8c10a638c8237 100644 --- a/impeller/renderer/backend/gles/shader_library_gles.h +++ b/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/impeller/renderer/backend/gles/surface_gles.h b/impeller/renderer/backend/gles/surface_gles.h index e4eb8bc891b37..1b040598d3994 100644 --- a/impeller/renderer/backend/gles/surface_gles.h +++ b/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/impeller/renderer/backend/gles/texture_gles.h b/impeller/renderer/backend/gles/texture_gles.h index 5ade7d3a0c7cb..704d0ef3a8503 100644 --- a/impeller/renderer/backend/gles/texture_gles.h +++ b/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/impeller/renderer/backend/metal/allocator_mtl.h b/impeller/renderer/backend/metal/allocator_mtl.h index fc0dc5ee62029..2d097e16b8b76 100644 --- a/impeller/renderer/backend/metal/allocator_mtl.h +++ b/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/impeller/renderer/backend/metal/blit_command_mtl.h b/impeller/renderer/backend/metal/blit_command_mtl.h index 86062e9c04cde..90dad1956090c 100644 --- a/impeller/renderer/backend/metal/blit_command_mtl.h +++ b/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/impeller/renderer/backend/metal/blit_pass_mtl.h b/impeller/renderer/backend/metal/blit_pass_mtl.h index 4a2ef0caf8dd2..68d0c2d409648 100644 --- a/impeller/renderer/backend/metal/blit_pass_mtl.h +++ b/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/impeller/renderer/backend/metal/command_buffer_mtl.h b/impeller/renderer/backend/metal/command_buffer_mtl.h index 7e167fa2b3a5d..735142b59a2a3 100644 --- a/impeller/renderer/backend/metal/command_buffer_mtl.h +++ b/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/impeller/renderer/backend/metal/compute_pass_mtl.h b/impeller/renderer/backend/metal/compute_pass_mtl.h index 7c06e8647884f..812749639def4 100644 --- a/impeller/renderer/backend/metal/compute_pass_mtl.h +++ b/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/impeller/renderer/backend/metal/compute_pipeline_mtl.h b/impeller/renderer/backend/metal/compute_pipeline_mtl.h index 39ca1b3bac0d6..1ab1277c04cce 100644 --- a/impeller/renderer/backend/metal/compute_pipeline_mtl.h +++ b/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/impeller/renderer/backend/metal/context_mtl.h b/impeller/renderer/backend/metal/context_mtl.h index 91b30a9c8aa5d..a3ce8d7fa3c4f 100644 --- a/impeller/renderer/backend/metal/context_mtl.h +++ b/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/impeller/renderer/backend/metal/device_buffer_mtl.h b/impeller/renderer/backend/metal/device_buffer_mtl.h index 0547deaa7a9ed..93e548895ef8c 100644 --- a/impeller/renderer/backend/metal/device_buffer_mtl.h +++ b/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/impeller/renderer/backend/metal/formats_mtl.h b/impeller/renderer/backend/metal/formats_mtl.h index 95212ce7d6881..f476688709333 100644 --- a/impeller/renderer/backend/metal/formats_mtl.h +++ b/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/impeller/renderer/backend/metal/gpu_tracer_mtl.h b/impeller/renderer/backend/metal/gpu_tracer_mtl.h index ac2c3916d0207..94ada1b97d47d 100644 --- a/impeller/renderer/backend/metal/gpu_tracer_mtl.h +++ b/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/impeller/renderer/backend/metal/lazy_drawable_holder.h b/impeller/renderer/backend/metal/lazy_drawable_holder.h index 5062e453e5d00..c01975b978a1e 100644 --- a/impeller/renderer/backend/metal/lazy_drawable_holder.h +++ b/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/impeller/renderer/backend/metal/pipeline_library_mtl.h b/impeller/renderer/backend/metal/pipeline_library_mtl.h index 06489545e9210..7b12ebbd74b90 100644 --- a/impeller/renderer/backend/metal/pipeline_library_mtl.h +++ b/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/impeller/renderer/backend/metal/pipeline_mtl.h b/impeller/renderer/backend/metal/pipeline_mtl.h index d7a03d6b71c29..b9aca9df8a599 100644 --- a/impeller/renderer/backend/metal/pipeline_mtl.h +++ b/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/impeller/renderer/backend/metal/render_pass_mtl.h b/impeller/renderer/backend/metal/render_pass_mtl.h index 6a3d7469df170..69c78573e8add 100644 --- a/impeller/renderer/backend/metal/render_pass_mtl.h +++ b/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/impeller/renderer/backend/metal/sampler_library_mtl.h b/impeller/renderer/backend/metal/sampler_library_mtl.h index 84bf62e493c49..c787666572729 100644 --- a/impeller/renderer/backend/metal/sampler_library_mtl.h +++ b/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/impeller/renderer/backend/metal/sampler_mtl.h b/impeller/renderer/backend/metal/sampler_mtl.h index 55ee66b4a0b4c..3a9a0fe6b273f 100644 --- a/impeller/renderer/backend/metal/sampler_mtl.h +++ b/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/impeller/renderer/backend/metal/shader_function_mtl.h b/impeller/renderer/backend/metal/shader_function_mtl.h index fc3008d36fa8d..7375421b02e74 100644 --- a/impeller/renderer/backend/metal/shader_function_mtl.h +++ b/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/impeller/renderer/backend/metal/shader_library_mtl.h b/impeller/renderer/backend/metal/shader_library_mtl.h index c401696c7ec45..756cf5fe4c95f 100644 --- a/impeller/renderer/backend/metal/shader_library_mtl.h +++ b/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/impeller/renderer/backend/metal/surface_mtl.h b/impeller/renderer/backend/metal/surface_mtl.h index 1a21d72eefcaf..a933ecff87a36 100644 --- a/impeller/renderer/backend/metal/surface_mtl.h +++ b/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/impeller/renderer/backend/metal/texture_mtl.h b/impeller/renderer/backend/metal/texture_mtl.h index 632b0491e56b3..0e6992af5b534 100644 --- a/impeller/renderer/backend/metal/texture_mtl.h +++ b/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/impeller/renderer/backend/metal/texture_wrapper_mtl.h b/impeller/renderer/backend/metal/texture_wrapper_mtl.h index e6fe71f0f22e6..1402bd79dc1ff 100644 --- a/impeller/renderer/backend/metal/texture_wrapper_mtl.h +++ b/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/impeller/renderer/backend/metal/vertex_descriptor_mtl.h b/impeller/renderer/backend/metal/vertex_descriptor_mtl.h index e153e2f1494d0..65c4a9545c446 100644 --- a/impeller/renderer/backend/metal/vertex_descriptor_mtl.h +++ b/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/impeller/renderer/backend/vulkan/allocator_vk.h b/impeller/renderer/backend/vulkan/allocator_vk.h index 1977b79115358..51be4d8eb9521 100644 --- a/impeller/renderer/backend/vulkan/allocator_vk.h +++ b/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/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h b/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h index 7580c4ff60c8b..1efe7fa52aaea 100644 --- a/impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h +++ b/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/impeller/renderer/backend/vulkan/barrier_vk.h b/impeller/renderer/backend/vulkan/barrier_vk.h index 9dc7bd02681b9..b4bc2257899b1 100644 --- a/impeller/renderer/backend/vulkan/barrier_vk.h +++ b/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/impeller/renderer/backend/vulkan/binding_helpers_vk.h b/impeller/renderer/backend/vulkan/binding_helpers_vk.h index 14d3145a8d26b..b232d360cf4d4 100644 --- a/impeller/renderer/backend/vulkan/binding_helpers_vk.h +++ b/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/impeller/renderer/backend/vulkan/blit_command_vk.h b/impeller/renderer/backend/vulkan/blit_command_vk.h index dbbf5881556a3..7fa7589e55be7 100644 --- a/impeller/renderer/backend/vulkan/blit_command_vk.h +++ b/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/impeller/renderer/backend/vulkan/blit_pass_vk.h b/impeller/renderer/backend/vulkan/blit_pass_vk.h index 1175dcab96bd8..2fc0c26380986 100644 --- a/impeller/renderer/backend/vulkan/blit_pass_vk.h +++ b/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/impeller/renderer/backend/vulkan/capabilities_vk.h b/impeller/renderer/backend/vulkan/capabilities_vk.h index eb9eb08a6f7a0..4cb7ce8996600 100644 --- a/impeller/renderer/backend/vulkan/capabilities_vk.h +++ b/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/impeller/renderer/backend/vulkan/command_buffer_vk.h b/impeller/renderer/backend/vulkan/command_buffer_vk.h index 405aba0b57fa9..b1ede05b724f0 100644 --- a/impeller/renderer/backend/vulkan/command_buffer_vk.h +++ b/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/impeller/renderer/backend/vulkan/command_encoder_vk.h b/impeller/renderer/backend/vulkan/command_encoder_vk.h index 5455647b74221..612c63f213034 100644 --- a/impeller/renderer/backend/vulkan/command_encoder_vk.h +++ b/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/impeller/renderer/backend/vulkan/command_pool_vk.h b/impeller/renderer/backend/vulkan/command_pool_vk.h index 04a799040186f..6fb1bcadcd3e2 100644 --- a/impeller/renderer/backend/vulkan/command_pool_vk.h +++ b/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/impeller/renderer/backend/vulkan/compute_pass_vk.h b/impeller/renderer/backend/vulkan/compute_pass_vk.h index 0944e9529ff6a..caf88577bc5dd 100644 --- a/impeller/renderer/backend/vulkan/compute_pass_vk.h +++ b/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/impeller/renderer/backend/vulkan/compute_pipeline_vk.h b/impeller/renderer/backend/vulkan/compute_pipeline_vk.h index bf6d53a2f940a..3ad7117b454c1 100644 --- a/impeller/renderer/backend/vulkan/compute_pipeline_vk.h +++ b/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/impeller/renderer/backend/vulkan/context_vk.h b/impeller/renderer/backend/vulkan/context_vk.h index 33bfcfa346916..2bb9927dca65d 100644 --- a/impeller/renderer/backend/vulkan/context_vk.h +++ b/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/impeller/renderer/backend/vulkan/debug_report_vk.h b/impeller/renderer/backend/vulkan/debug_report_vk.h index a81d0a27a5543..b6ca88f3f4512 100644 --- a/impeller/renderer/backend/vulkan/debug_report_vk.h +++ b/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/impeller/renderer/backend/vulkan/descriptor_pool_vk.h b/impeller/renderer/backend/vulkan/descriptor_pool_vk.h index 8d2fb7c45ccb2..f4965ec224f6a 100644 --- a/impeller/renderer/backend/vulkan/descriptor_pool_vk.h +++ b/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/impeller/renderer/backend/vulkan/device_buffer_vk.h b/impeller/renderer/backend/vulkan/device_buffer_vk.h index 70022dd40d2c7..c2e617dff3b8f 100644 --- a/impeller/renderer/backend/vulkan/device_buffer_vk.h +++ b/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/impeller/renderer/backend/vulkan/device_holder.h b/impeller/renderer/backend/vulkan/device_holder.h index f113cbc331f72..bd26e09e2029b 100644 --- a/impeller/renderer/backend/vulkan/device_holder.h +++ b/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/impeller/renderer/backend/vulkan/fence_waiter_vk.h b/impeller/renderer/backend/vulkan/fence_waiter_vk.h index c58c9e0783fab..eb32e3a6554ab 100644 --- a/impeller/renderer/backend/vulkan/fence_waiter_vk.h +++ b/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/impeller/renderer/backend/vulkan/formats_vk.h b/impeller/renderer/backend/vulkan/formats_vk.h index 42fca4f9a6094..bf0ce5fb6a760 100644 --- a/impeller/renderer/backend/vulkan/formats_vk.h +++ b/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/impeller/renderer/backend/vulkan/limits_vk.h b/impeller/renderer/backend/vulkan/limits_vk.h index 14e2dce906e49..4303d7d94db60 100644 --- a/impeller/renderer/backend/vulkan/limits_vk.h +++ b/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/impeller/renderer/backend/vulkan/pass_bindings_cache.h b/impeller/renderer/backend/vulkan/pass_bindings_cache.h index 22b3a0e463cf0..9eccee0ee0ee0 100644 --- a/impeller/renderer/backend/vulkan/pass_bindings_cache.h +++ b/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/impeller/renderer/backend/vulkan/pipeline_cache_vk.h b/impeller/renderer/backend/vulkan/pipeline_cache_vk.h index 070d636ab092b..398b5f2555732 100644 --- a/impeller/renderer/backend/vulkan/pipeline_cache_vk.h +++ b/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/impeller/renderer/backend/vulkan/pipeline_library_vk.h b/impeller/renderer/backend/vulkan/pipeline_library_vk.h index 923dad397a731..7866b4909d6a0 100644 --- a/impeller/renderer/backend/vulkan/pipeline_library_vk.h +++ b/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/impeller/renderer/backend/vulkan/pipeline_vk.h b/impeller/renderer/backend/vulkan/pipeline_vk.h index 0b6b3b6e036e4..ffe245152c4da 100644 --- a/impeller/renderer/backend/vulkan/pipeline_vk.h +++ b/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/impeller/renderer/backend/vulkan/queue_vk.h b/impeller/renderer/backend/vulkan/queue_vk.h index 8fde3b712ae3a..7345429b6d387 100644 --- a/impeller/renderer/backend/vulkan/queue_vk.h +++ b/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/impeller/renderer/backend/vulkan/render_pass_vk.h b/impeller/renderer/backend/vulkan/render_pass_vk.h index b7164d9d6c1f0..a173aafe35736 100644 --- a/impeller/renderer/backend/vulkan/render_pass_vk.h +++ b/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/impeller/renderer/backend/vulkan/resource_manager_vk.h b/impeller/renderer/backend/vulkan/resource_manager_vk.h index 088314e3e8947..4d8ef36a1c1bd 100644 --- a/impeller/renderer/backend/vulkan/resource_manager_vk.h +++ b/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/impeller/renderer/backend/vulkan/sampler_library_vk.h b/impeller/renderer/backend/vulkan/sampler_library_vk.h index 3be467040bf0d..a18e65ef159a5 100644 --- a/impeller/renderer/backend/vulkan/sampler_library_vk.h +++ b/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/impeller/renderer/backend/vulkan/sampler_vk.h b/impeller/renderer/backend/vulkan/sampler_vk.h index 3cc48a229f2a3..871f3699d4868 100644 --- a/impeller/renderer/backend/vulkan/sampler_vk.h +++ b/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/impeller/renderer/backend/vulkan/shader_function_vk.h b/impeller/renderer/backend/vulkan/shader_function_vk.h index 713a4fded6359..1d7505707d6a9 100644 --- a/impeller/renderer/backend/vulkan/shader_function_vk.h +++ b/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/impeller/renderer/backend/vulkan/shader_library_vk.h b/impeller/renderer/backend/vulkan/shader_library_vk.h index 67e266aa80355..ea3f063a2537d 100644 --- a/impeller/renderer/backend/vulkan/shader_library_vk.h +++ b/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/impeller/renderer/backend/vulkan/shared_object_vk.h b/impeller/renderer/backend/vulkan/shared_object_vk.h index f91f018c94e2a..7b4bbdce8686b 100644 --- a/impeller/renderer/backend/vulkan/shared_object_vk.h +++ b/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/impeller/renderer/backend/vulkan/surface_context_vk.h b/impeller/renderer/backend/vulkan/surface_context_vk.h index 9bb65484802c3..5c8a327685dba 100644 --- a/impeller/renderer/backend/vulkan/surface_context_vk.h +++ b/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/impeller/renderer/backend/vulkan/surface_vk.h b/impeller/renderer/backend/vulkan/surface_vk.h index 510923252f208..fef4187f3e696 100644 --- a/impeller/renderer/backend/vulkan/surface_vk.h +++ b/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/impeller/renderer/backend/vulkan/swapchain_image_vk.h b/impeller/renderer/backend/vulkan/swapchain_image_vk.h index 2eb1dc8d5483d..9ad316a8ec0c0 100644 --- a/impeller/renderer/backend/vulkan/swapchain_image_vk.h +++ b/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/impeller/renderer/backend/vulkan/swapchain_impl_vk.h b/impeller/renderer/backend/vulkan/swapchain_impl_vk.h index f8ce74e120545..87ed948b215f2 100644 --- a/impeller/renderer/backend/vulkan/swapchain_impl_vk.h +++ b/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/impeller/renderer/backend/vulkan/swapchain_vk.h b/impeller/renderer/backend/vulkan/swapchain_vk.h index c69e5df46cd9f..2e724bae8ff29 100644 --- a/impeller/renderer/backend/vulkan/swapchain_vk.h +++ b/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/impeller/renderer/backend/vulkan/test/mock_vulkan.h b/impeller/renderer/backend/vulkan/test/mock_vulkan.h index e48764d5bfeca..4c68492c5cb00 100644 --- a/impeller/renderer/backend/vulkan/test/mock_vulkan.h +++ b/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/impeller/renderer/backend/vulkan/texture_source_vk.h b/impeller/renderer/backend/vulkan/texture_source_vk.h index eaab485655acc..13f475b5dfc2c 100644 --- a/impeller/renderer/backend/vulkan/texture_source_vk.h +++ b/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/impeller/renderer/backend/vulkan/texture_vk.h b/impeller/renderer/backend/vulkan/texture_vk.h index fe3d13890d39e..4df1dcc37b1bb 100644 --- a/impeller/renderer/backend/vulkan/texture_vk.h +++ b/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/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h b/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h index 31d3f447c7d61..1768211fbeac4 100644 --- a/impeller/renderer/backend/vulkan/vertex_descriptor_vk.h +++ b/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/impeller/renderer/backend/vulkan/vk.h b/impeller/renderer/backend/vulkan/vk.h index 9c17b82725c88..ea992ce0e2d9d 100644 --- a/impeller/renderer/backend/vulkan/vk.h +++ b/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/impeller/renderer/backend/vulkan/vma.h b/impeller/renderer/backend/vulkan/vma.h index f33a396997f01..6787bee93c576 100644 --- a/impeller/renderer/backend/vulkan/vma.h +++ b/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/impeller/renderer/blit_command.h b/impeller/renderer/blit_command.h index 90124b58d86c9..7f456f659326b 100644 --- a/impeller/renderer/blit_command.h +++ b/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/impeller/renderer/blit_pass.h b/impeller/renderer/blit_pass.h index 8f6b071be6483..61f53b49dc5f1 100644 --- a/impeller/renderer/blit_pass.h +++ b/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/impeller/renderer/capabilities.h b/impeller/renderer/capabilities.h index 48f12a7d2432d..9f3f15cefe897 100644 --- a/impeller/renderer/capabilities.h +++ b/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/impeller/renderer/command.h b/impeller/renderer/command.h index 6351a4599df9f..426b444cb9c2e 100644 --- a/impeller/renderer/command.h +++ b/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/impeller/renderer/command_buffer.h b/impeller/renderer/command_buffer.h index 61717d2922257..bbc0288cb7cac 100644 --- a/impeller/renderer/command_buffer.h +++ b/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/impeller/renderer/compute_command.h b/impeller/renderer/compute_command.h index 1a2d51503698c..fb2639df664e8 100644 --- a/impeller/renderer/compute_command.h +++ b/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/impeller/renderer/compute_pass.h b/impeller/renderer/compute_pass.h index 37358ded6f8b3..155f36e4b9513 100644 --- a/impeller/renderer/compute_pass.h +++ b/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/impeller/renderer/compute_pipeline_builder.h b/impeller/renderer/compute_pipeline_builder.h index 7a7d34cbcedcf..8029c0ff9ace2 100644 --- a/impeller/renderer/compute_pipeline_builder.h +++ b/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/impeller/renderer/compute_pipeline_descriptor.h b/impeller/renderer/compute_pipeline_descriptor.h index 8a38f12d4f260..a92def4c78fd6 100644 --- a/impeller/renderer/compute_pipeline_descriptor.h +++ b/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/impeller/renderer/compute_tessellator.h b/impeller/renderer/compute_tessellator.h index 0b95c1044cad9..f8ccd0d8dfe2a 100644 --- a/impeller/renderer/compute_tessellator.h +++ b/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/impeller/renderer/context.h b/impeller/renderer/context.h index 9a24e435af1e3..36ad0c2e1899d 100644 --- a/impeller/renderer/context.h +++ b/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/impeller/renderer/pipeline.h b/impeller/renderer/pipeline.h index 1c761c0a6ff03..63d0918b78a7b 100644 --- a/impeller/renderer/pipeline.h +++ b/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/impeller/renderer/pipeline_builder.h b/impeller/renderer/pipeline_builder.h index 163ce66e6f3c6..9b2fadca83e1e 100644 --- a/impeller/renderer/pipeline_builder.h +++ b/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/impeller/renderer/pipeline_descriptor.h b/impeller/renderer/pipeline_descriptor.h index 30149a0524420..460d7e1ee8d4c 100644 --- a/impeller/renderer/pipeline_descriptor.h +++ b/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/impeller/renderer/pipeline_library.h b/impeller/renderer/pipeline_library.h index 3769f800caefb..d97861f5dc5d7 100644 --- a/impeller/renderer/pipeline_library.h +++ b/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/impeller/renderer/pool.h b/impeller/renderer/pool.h index 631284ff874e4..399236fd238b3 100644 --- a/impeller/renderer/pool.h +++ b/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/impeller/renderer/render_pass.h b/impeller/renderer/render_pass.h index 512c152d6e0bf..ff0d6d50c9be6 100644 --- a/impeller/renderer/render_pass.h +++ b/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/impeller/renderer/render_target.h b/impeller/renderer/render_target.h index d808f9feeff1d..dbd115a5c7612 100644 --- a/impeller/renderer/render_target.h +++ b/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/impeller/renderer/renderer.h b/impeller/renderer/renderer.h index 552a49d724e22..1e37761ab4ae5 100644 --- a/impeller/renderer/renderer.h +++ b/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/impeller/renderer/sampler_library.h b/impeller/renderer/sampler_library.h index f022488ce138a..86e98b938b5b6 100644 --- a/impeller/renderer/sampler_library.h +++ b/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/impeller/renderer/shader_function.h b/impeller/renderer/shader_function.h index 280c64d117fd1..d762dd2ea5a6d 100644 --- a/impeller/renderer/shader_function.h +++ b/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/impeller/renderer/shader_key.h b/impeller/renderer/shader_key.h index 802908647b149..77f03cff730b0 100644 --- a/impeller/renderer/shader_key.h +++ b/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/impeller/renderer/shader_library.h b/impeller/renderer/shader_library.h index dd191f4994497..a28817c2d1632 100644 --- a/impeller/renderer/shader_library.h +++ b/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/impeller/renderer/snapshot.h b/impeller/renderer/snapshot.h index 0d9a57471aaaa..849b7ce04ca62 100644 --- a/impeller/renderer/snapshot.h +++ b/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/impeller/renderer/surface.h b/impeller/renderer/surface.h index 3ce7937f76d81..e0e4abe5faa5f 100644 --- a/impeller/renderer/surface.h +++ b/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/impeller/renderer/testing/mocks.h b/impeller/renderer/testing/mocks.h index 4af4bc1191e04..4960a57ef78fd 100644 --- a/impeller/renderer/testing/mocks.h +++ b/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/impeller/renderer/vertex_buffer_builder.h b/impeller/renderer/vertex_buffer_builder.h index 2f92e24c96eec..78a780bae143d 100644 --- a/impeller/renderer/vertex_buffer_builder.h +++ b/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/impeller/renderer/vertex_descriptor.h b/impeller/renderer/vertex_descriptor.h index 72d12e11df61e..5d1143f0ffc93 100644 --- a/impeller/renderer/vertex_descriptor.h +++ b/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/impeller/runtime_stage/runtime_stage.h b/impeller/runtime_stage/runtime_stage.h index 8ee501bbdb650..8b52bdcd50d73 100644 --- a/impeller/runtime_stage/runtime_stage.h +++ b/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/impeller/runtime_stage/runtime_stage_playground.h b/impeller/runtime_stage/runtime_stage_playground.h index f1b35025941dd..86f9cc4bc42df 100644 --- a/impeller/runtime_stage/runtime_stage_playground.h +++ b/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/impeller/scene/animation/animation.h b/impeller/scene/animation/animation.h index 37735412e8f1f..09ebfac3f8817 100644 --- a/impeller/scene/animation/animation.h +++ b/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/impeller/scene/animation/animation_clip.h b/impeller/scene/animation/animation_clip.h index 773284b047b3f..35c3339ae8514 100644 --- a/impeller/scene/animation/animation_clip.h +++ b/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/impeller/scene/animation/animation_player.h b/impeller/scene/animation/animation_player.h index ebc77c3f2e662..44878e1c3803c 100644 --- a/impeller/scene/animation/animation_player.h +++ b/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/impeller/scene/animation/animation_transforms.h b/impeller/scene/animation/animation_transforms.h index b15c9817781d4..59adb64938492 100644 --- a/impeller/scene/animation/animation_transforms.h +++ b/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/impeller/scene/animation/property_resolver.h b/impeller/scene/animation/property_resolver.h index 10df83e43309a..722318d32d88c 100644 --- a/impeller/scene/animation/property_resolver.h +++ b/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/impeller/scene/camera.h b/impeller/scene/camera.h index 0b31e4f89ad28..3f833320dacb8 100644 --- a/impeller/scene/camera.h +++ b/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/impeller/scene/geometry.h b/impeller/scene/geometry.h index 0a4b9c040f876..de8f975633ef5 100644 --- a/impeller/scene/geometry.h +++ b/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/impeller/scene/importer/conversions.h b/impeller/scene/importer/conversions.h index cb11d3c42f147..6c911644261f9 100644 --- a/impeller/scene/importer/conversions.h +++ b/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/impeller/scene/importer/importer.h b/impeller/scene/importer/importer.h index 6766adbce19da..af0934522e428 100644 --- a/impeller/scene/importer/importer.h +++ b/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/impeller/scene/importer/switches.h b/impeller/scene/importer/switches.h index d9b298216cc48..3b5294442ad37 100644 --- a/impeller/scene/importer/switches.h +++ b/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/impeller/scene/importer/types.h b/impeller/scene/importer/types.h index 308527fe33e06..0312618e5aa04 100644 --- a/impeller/scene/importer/types.h +++ b/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/impeller/scene/importer/vertices_builder.h b/impeller/scene/importer/vertices_builder.h index 6022573ab78f7..4244a2563d3cb 100644 --- a/impeller/scene/importer/vertices_builder.h +++ b/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/impeller/scene/material.h b/impeller/scene/material.h index e3132cfb1c7c1..c8954d540aa2b 100644 --- a/impeller/scene/material.h +++ b/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/impeller/scene/mesh.h b/impeller/scene/mesh.h index e72a598f83190..008938324cbde 100644 --- a/impeller/scene/mesh.h +++ b/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/impeller/scene/node.h b/impeller/scene/node.h index b08684af5bb9b..0e2649aef268a 100644 --- a/impeller/scene/node.h +++ b/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/impeller/scene/pipeline_key.h b/impeller/scene/pipeline_key.h index d059a48e47ae0..56f41f3658a26 100644 --- a/impeller/scene/pipeline_key.h +++ b/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/impeller/scene/scene.h b/impeller/scene/scene.h index b5d3b09ecf4be..4cd5c0895e2e6 100644 --- a/impeller/scene/scene.h +++ b/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/impeller/scene/scene_context.h b/impeller/scene/scene_context.h index f85663b426770..24d49249f7ac0 100644 --- a/impeller/scene/scene_context.h +++ b/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/impeller/scene/scene_encoder.h b/impeller/scene/scene_encoder.h index 2cf096ec1ae4f..a3690c52c702a 100644 --- a/impeller/scene/scene_encoder.h +++ b/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/impeller/scene/skin.h b/impeller/scene/skin.h index 5693e6406ddcc..77e663c964f0f 100644 --- a/impeller/scene/skin.h +++ b/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/impeller/shader_archive/multi_arch_shader_archive.h b/impeller/shader_archive/multi_arch_shader_archive.h index abcc7a9e2f575..1a73380b7a6a1 100644 --- a/impeller/shader_archive/multi_arch_shader_archive.h +++ b/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/impeller/shader_archive/multi_arch_shader_archive_writer.h b/impeller/shader_archive/multi_arch_shader_archive_writer.h index 163f9c3c5ce34..f04df91f36f92 100644 --- a/impeller/shader_archive/multi_arch_shader_archive_writer.h +++ b/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/impeller/shader_archive/shader_archive.h b/impeller/shader_archive/shader_archive.h index 8ee325d9c5b6e..a13736d11e330 100644 --- a/impeller/shader_archive/shader_archive.h +++ b/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/impeller/shader_archive/shader_archive_types.h b/impeller/shader_archive/shader_archive_types.h index a8007f3b2ffd0..2e2b6aae631dd 100644 --- a/impeller/shader_archive/shader_archive_types.h +++ b/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/impeller/shader_archive/shader_archive_writer.h b/impeller/shader_archive/shader_archive_writer.h index 7503e48f22ace..85f60432bbd10 100644 --- a/impeller/shader_archive/shader_archive_writer.h +++ b/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/impeller/tessellator/c/tessellator.h b/impeller/tessellator/c/tessellator.h index f79872f931619..ef5bfc950f107 100644 --- a/impeller/tessellator/c/tessellator.h +++ b/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/impeller/tessellator/tessellator.h b/impeller/tessellator/tessellator.h index b283c6c9cbd22..0ce56207fa09e 100644 --- a/impeller/tessellator/tessellator.h +++ b/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/impeller/toolkit/egl/config.h b/impeller/toolkit/egl/config.h index 153aa6aa20c09..45ae789e9ed2b 100644 --- a/impeller/toolkit/egl/config.h +++ b/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/impeller/toolkit/egl/context.h b/impeller/toolkit/egl/context.h index df33b3cf04f76..418ec24f92517 100644 --- a/impeller/toolkit/egl/context.h +++ b/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/impeller/toolkit/egl/display.h b/impeller/toolkit/egl/display.h index 51ff9400dd26d..3e9b6236c676d 100644 --- a/impeller/toolkit/egl/display.h +++ b/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/impeller/toolkit/egl/egl.h b/impeller/toolkit/egl/egl.h index af1bcca52ffb3..fc22e1cdf002d 100644 --- a/impeller/toolkit/egl/egl.h +++ b/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/impeller/toolkit/egl/image.h b/impeller/toolkit/egl/image.h index 2fafe0f994b82..51e3330065c40 100644 --- a/impeller/toolkit/egl/image.h +++ b/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/impeller/toolkit/egl/surface.h b/impeller/toolkit/egl/surface.h index 605f6fb5ac048..a8ca441660733 100644 --- a/impeller/toolkit/egl/surface.h +++ b/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/impeller/toolkit/gles/gles.h b/impeller/toolkit/gles/gles.h index 599e3c9433c97..9cb1609fd5c27 100644 --- a/impeller/toolkit/gles/gles.h +++ b/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/impeller/toolkit/gles/texture.h b/impeller/toolkit/gles/texture.h index b90007b414237..cebef02e61a25 100644 --- a/impeller/toolkit/gles/texture.h +++ b/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/impeller/typographer/backends/skia/glyph_atlas_context_skia.h b/impeller/typographer/backends/skia/glyph_atlas_context_skia.h index ee4894f8c4509..7f59eca6183c2 100644 --- a/impeller/typographer/backends/skia/glyph_atlas_context_skia.h +++ b/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/impeller/typographer/backends/skia/text_frame_skia.h b/impeller/typographer/backends/skia/text_frame_skia.h index e7721a0c6e9c7..fdb9d7693ecbf 100644 --- a/impeller/typographer/backends/skia/text_frame_skia.h +++ b/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/impeller/typographer/backends/skia/typeface_skia.h b/impeller/typographer/backends/skia/typeface_skia.h index 20544b4e13f93..dc14c48f6a8c9 100644 --- a/impeller/typographer/backends/skia/typeface_skia.h +++ b/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/impeller/typographer/backends/skia/typographer_context_skia.h b/impeller/typographer/backends/skia/typographer_context_skia.h index 8db80824625dc..f3c8dd4560de8 100644 --- a/impeller/typographer/backends/skia/typographer_context_skia.h +++ b/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/impeller/typographer/backends/stb/glyph_atlas_context_stb.h b/impeller/typographer/backends/stb/glyph_atlas_context_stb.h index c2c307e758e14..58962570d9297 100644 --- a/impeller/typographer/backends/stb/glyph_atlas_context_stb.h +++ b/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/impeller/typographer/backends/stb/text_frame_stb.h b/impeller/typographer/backends/stb/text_frame_stb.h index 39f8cccc7688a..f37426f2d8c58 100644 --- a/impeller/typographer/backends/stb/text_frame_stb.h +++ b/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/impeller/typographer/backends/stb/typeface_stb.h b/impeller/typographer/backends/stb/typeface_stb.h index 3600ade3deb1c..c0f2c04083fca 100644 --- a/impeller/typographer/backends/stb/typeface_stb.h +++ b/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/impeller/typographer/backends/stb/typographer_context_stb.h b/impeller/typographer/backends/stb/typographer_context_stb.h index 14975ae4fb043..02e81328719ea 100644 --- a/impeller/typographer/backends/stb/typographer_context_stb.h +++ b/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/impeller/typographer/font.h b/impeller/typographer/font.h index bbfc569860b72..4f21748d5e769 100644 --- a/impeller/typographer/font.h +++ b/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/impeller/typographer/font_glyph_pair.h b/impeller/typographer/font_glyph_pair.h index 00b59411d3308..dd2d47e82b4ee 100644 --- a/impeller/typographer/font_glyph_pair.h +++ b/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/impeller/typographer/glyph.h b/impeller/typographer/glyph.h index c9aad01cba317..7e2d688d2b43b 100644 --- a/impeller/typographer/glyph.h +++ b/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/impeller/typographer/glyph_atlas.h b/impeller/typographer/glyph_atlas.h index 94e4e8380a74e..ea4ea295e4845 100644 --- a/impeller/typographer/glyph_atlas.h +++ b/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/impeller/typographer/lazy_glyph_atlas.h b/impeller/typographer/lazy_glyph_atlas.h index 3c14b2359bc8b..a263ea188f0ec 100644 --- a/impeller/typographer/lazy_glyph_atlas.h +++ b/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/impeller/typographer/rectangle_packer.h b/impeller/typographer/rectangle_packer.h index 836849b42e239..9213cae678454 100644 --- a/impeller/typographer/rectangle_packer.h +++ b/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/impeller/typographer/text_frame.h b/impeller/typographer/text_frame.h index d0d2d03e8068c..1089039cb2a14 100644 --- a/impeller/typographer/text_frame.h +++ b/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/impeller/typographer/text_run.h b/impeller/typographer/text_run.h index 340db94d9f40d..6bec4d19187a2 100644 --- a/impeller/typographer/text_run.h +++ b/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/impeller/typographer/typeface.h b/impeller/typographer/typeface.h index 45722cbe7de93..bf5123a46ec40 100644 --- a/impeller/typographer/typeface.h +++ b/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/impeller/typographer/typographer_context.h b/impeller/typographer/typographer_context.h index 696d09309177e..6e50027151189 100644 --- a/impeller/typographer/typographer_context.h +++ b/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_