[Impeller] Remove use of FML_DISALLOW_<FOO> macros in Impeller. (flutter/engine#47307)
Really not convinced this is easier to read but maybe I just need to get used to it. Besides, good to just stick to the style guide uniformly. Followup from https://github.com/flutter/engine/pull/47278#discussion_r1371971876 Can do this for the rest of the engine and remove the macros if this is fine.
This commit is contained in:
@@ -46,7 +46,9 @@ class AiksContext {
|
||||
std::unique_ptr<ContentContext> content_context_;
|
||||
bool is_valid_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AiksContext);
|
||||
AiksContext(const AiksContext&) = delete;
|
||||
|
||||
AiksContext& operator=(const AiksContext&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -35,7 +35,9 @@ class AiksPlayground : public PlaygroundTest {
|
||||
std::shared_ptr<TypographerContext> typographer_context_;
|
||||
AiksInspector inspector_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AiksPlayground);
|
||||
AiksPlayground(const AiksPlayground&) = delete;
|
||||
|
||||
AiksPlayground& operator=(const AiksPlayground&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -42,7 +42,9 @@ class AiksInspector {
|
||||
CaptureElement* selected_element_ = nullptr;
|
||||
std::optional<Picture> last_picture_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AiksInspector);
|
||||
AiksInspector(const AiksInspector&) = delete;
|
||||
|
||||
AiksInspector& operator=(const AiksInspector&) = delete;
|
||||
};
|
||||
|
||||
}; // namespace impeller
|
||||
|
||||
@@ -189,7 +189,9 @@ class Canvas {
|
||||
Scalar corner_radius,
|
||||
const Paint& paint);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Canvas);
|
||||
Canvas(const Canvas&) = delete;
|
||||
|
||||
Canvas& operator=(const Canvas&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -24,7 +24,9 @@ class Image {
|
||||
private:
|
||||
const std::shared_ptr<Texture> texture_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Image);
|
||||
Image(const Image&) = delete;
|
||||
|
||||
Image& operator=(const Image&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -40,7 +40,9 @@ class PaintPassDelegate final : public EntityPassDelegate {
|
||||
private:
|
||||
const Paint paint_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PaintPassDelegate);
|
||||
PaintPassDelegate(const PaintPassDelegate&) = delete;
|
||||
|
||||
PaintPassDelegate& operator=(const PaintPassDelegate&) = delete;
|
||||
};
|
||||
|
||||
/// A delegate that attempts to forward opacity from a save layer to
|
||||
@@ -74,7 +76,10 @@ class OpacityPeepholePassDelegate final : public EntityPassDelegate {
|
||||
private:
|
||||
const Paint paint_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(OpacityPeepholePassDelegate);
|
||||
OpacityPeepholePassDelegate(const OpacityPeepholePassDelegate&) = delete;
|
||||
|
||||
OpacityPeepholePassDelegate& operator=(const OpacityPeepholePassDelegate&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -68,7 +68,9 @@ class Archive {
|
||||
const UnarchiveStep& stepper,
|
||||
PrimaryKey primary_key = std::nullopt);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Archive);
|
||||
Archive(const Archive&) = delete;
|
||||
|
||||
Archive& operator=(const Archive&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -43,7 +43,9 @@ class ArchiveClassRegistration {
|
||||
MemberColumnMap column_map_;
|
||||
bool is_valid_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveClassRegistration);
|
||||
ArchiveClassRegistration(const ArchiveClassRegistration&) = delete;
|
||||
|
||||
ArchiveClassRegistration& operator=(const ArchiveClassRegistration&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -47,7 +47,9 @@ struct ArchiveDatabase::Handle {
|
||||
private:
|
||||
::sqlite3* handle_ = nullptr;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Handle);
|
||||
Handle(const Handle&) = delete;
|
||||
|
||||
Handle& operator=(const Handle&) = delete;
|
||||
};
|
||||
|
||||
ArchiveDatabase::ArchiveDatabase(const std::string& filename)
|
||||
|
||||
@@ -48,7 +48,9 @@ class ArchiveDatabase {
|
||||
|
||||
ArchiveStatement CreateStatement(const std::string& statementString) const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveDatabase);
|
||||
ArchiveDatabase(const ArchiveDatabase&) = delete;
|
||||
|
||||
ArchiveDatabase& operator=(const ArchiveDatabase&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -166,7 +166,9 @@ class ArchiveLocation {
|
||||
const ArchiveDef& otherDef,
|
||||
Archivable& other);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveLocation);
|
||||
ArchiveLocation(const ArchiveLocation&) = delete;
|
||||
|
||||
ArchiveLocation& operator=(const ArchiveLocation&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -41,7 +41,9 @@ struct ArchiveStatement::Handle {
|
||||
private:
|
||||
::sqlite3_stmt* handle_ = nullptr;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Handle);
|
||||
Handle(const Handle&) = delete;
|
||||
|
||||
Handle& operator=(const Handle&) = delete;
|
||||
};
|
||||
|
||||
ArchiveStatement::ArchiveStatement(void* db, const std::string& statememt)
|
||||
|
||||
@@ -90,7 +90,9 @@ class ArchiveStatement {
|
||||
|
||||
bool ColumnIntegral(size_t index, int64_t& item);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveStatement);
|
||||
ArchiveStatement(const ArchiveStatement&) = delete;
|
||||
|
||||
ArchiveStatement& operator=(const ArchiveStatement&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -43,7 +43,9 @@ class ArchiveTransaction {
|
||||
ArchiveStatement& endStatement,
|
||||
ArchiveStatement& rollbackStatement);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveTransaction);
|
||||
ArchiveTransaction(const ArchiveTransaction&) = delete;
|
||||
|
||||
ArchiveTransaction& operator=(const ArchiveTransaction&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -30,7 +30,9 @@ class ArchiveVector : public Archivable {
|
||||
|
||||
ArchiveVector(std::vector<int64_t> keys);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchiveVector);
|
||||
ArchiveVector(const ArchiveVector&) = delete;
|
||||
|
||||
ArchiveVector& operator=(const ArchiveVector&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -29,7 +29,9 @@ class ArchivistFixture : public ::testing::Test {
|
||||
|
||||
void DeleteArchiveFile() const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ArchivistFixture);
|
||||
ArchivistFixture(const ArchivistFixture&) = delete;
|
||||
|
||||
ArchivistFixture& operator=(const ArchivistFixture&) = delete;
|
||||
};
|
||||
|
||||
} // namespace testing
|
||||
|
||||
@@ -47,7 +47,9 @@ class Sample : public Archivable {
|
||||
uint64_t some_data_;
|
||||
PrimaryKey name_ = ++LastSample;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Sample);
|
||||
Sample(const Sample&) = delete;
|
||||
|
||||
Sample& operator=(const Sample&) = delete;
|
||||
};
|
||||
|
||||
const ArchiveDef Sample::kArchiveDefinition = {
|
||||
@@ -95,7 +97,9 @@ class SampleWithVector : public Archivable {
|
||||
|
||||
private:
|
||||
std::vector<Sample> samples_;
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SampleWithVector);
|
||||
SampleWithVector(const SampleWithVector&) = delete;
|
||||
|
||||
SampleWithVector& operator=(const SampleWithVector&) = delete;
|
||||
};
|
||||
|
||||
const ArchiveDef SampleWithVector::kArchiveDefinition = {
|
||||
|
||||
@@ -37,7 +37,9 @@ class Allocation {
|
||||
|
||||
[[nodiscard]] bool ReserveNPOT(size_t reserved);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Allocation);
|
||||
Allocation(const Allocation&) = delete;
|
||||
|
||||
Allocation& operator=(const Allocation&) = delete;
|
||||
};
|
||||
|
||||
std::shared_ptr<fml::Mapping> CreateMappingWithCopy(const uint8_t* contents,
|
||||
|
||||
@@ -27,7 +27,13 @@ class IPLR_CAPABILITY("mutex") Mutex {
|
||||
private:
|
||||
std::mutex mutex_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(Mutex);
|
||||
Mutex(const Mutex&) = delete;
|
||||
|
||||
Mutex(Mutex&&) = delete;
|
||||
|
||||
Mutex& operator=(const Mutex&) = delete;
|
||||
|
||||
Mutex& operator=(Mutex&&) = delete;
|
||||
};
|
||||
|
||||
class IPLR_CAPABILITY("mutex") RWMutex {
|
||||
@@ -48,7 +54,13 @@ class IPLR_CAPABILITY("mutex") RWMutex {
|
||||
private:
|
||||
std::unique_ptr<fml::SharedMutex> mutex_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(RWMutex);
|
||||
RWMutex(const RWMutex&) = delete;
|
||||
|
||||
RWMutex(RWMutex&&) = delete;
|
||||
|
||||
RWMutex& operator=(const RWMutex&) = delete;
|
||||
|
||||
RWMutex& operator=(RWMutex&&) = delete;
|
||||
};
|
||||
|
||||
class IPLR_SCOPED_CAPABILITY Lock {
|
||||
@@ -62,7 +74,13 @@ class IPLR_SCOPED_CAPABILITY Lock {
|
||||
private:
|
||||
Mutex& mutex_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(Lock);
|
||||
Lock(const Lock&) = delete;
|
||||
|
||||
Lock(Lock&&) = delete;
|
||||
|
||||
Lock& operator=(const Lock&) = delete;
|
||||
|
||||
Lock& operator=(Lock&&) = delete;
|
||||
};
|
||||
|
||||
class IPLR_SCOPED_CAPABILITY ReaderLock {
|
||||
@@ -77,7 +95,13 @@ class IPLR_SCOPED_CAPABILITY ReaderLock {
|
||||
private:
|
||||
RWMutex& mutex_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(ReaderLock);
|
||||
ReaderLock(const ReaderLock&) = delete;
|
||||
|
||||
ReaderLock(ReaderLock&&) = delete;
|
||||
|
||||
ReaderLock& operator=(const ReaderLock&) = delete;
|
||||
|
||||
ReaderLock& operator=(ReaderLock&&) = delete;
|
||||
};
|
||||
|
||||
class IPLR_SCOPED_CAPABILITY WriterLock {
|
||||
@@ -91,7 +115,13 @@ class IPLR_SCOPED_CAPABILITY WriterLock {
|
||||
private:
|
||||
RWMutex& mutex_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(WriterLock);
|
||||
WriterLock(const WriterLock&) = delete;
|
||||
|
||||
WriterLock(WriterLock&&) = delete;
|
||||
|
||||
WriterLock& operator=(const WriterLock&) = delete;
|
||||
|
||||
WriterLock& operator=(WriterLock&&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -27,7 +27,13 @@ class ValidationLog {
|
||||
private:
|
||||
std::ostringstream stream_;
|
||||
|
||||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(ValidationLog);
|
||||
ValidationLog(const ValidationLog&) = delete;
|
||||
|
||||
ValidationLog(ValidationLog&&) = delete;
|
||||
|
||||
ValidationLog& operator=(const ValidationLog&) = delete;
|
||||
|
||||
ValidationLog& operator=(ValidationLog&&) = delete;
|
||||
};
|
||||
|
||||
void ImpellerValidationBreak(const char* message);
|
||||
@@ -39,7 +45,9 @@ struct ScopedValidationDisable {
|
||||
|
||||
~ScopedValidationDisable();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ScopedValidationDisable);
|
||||
ScopedValidationDisable(const ScopedValidationDisable&) = delete;
|
||||
|
||||
ScopedValidationDisable& operator=(const ScopedValidationDisable&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -57,7 +57,9 @@ class Compiler {
|
||||
|
||||
std::string GetDependencyNames(const std::string& separator) const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Compiler);
|
||||
Compiler(const Compiler&) = delete;
|
||||
|
||||
Compiler& operator=(const Compiler&) = delete;
|
||||
};
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -33,7 +33,9 @@ class CompilerTest : public ::testing::TestWithParam<TargetPlatform> {
|
||||
private:
|
||||
fml::UniqueFD intermediates_directory_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CompilerTest);
|
||||
CompilerTest(const CompilerTest&) = delete;
|
||||
|
||||
CompilerTest& operator=(const CompilerTest&) = delete;
|
||||
};
|
||||
|
||||
} // namespace testing
|
||||
|
||||
@@ -52,7 +52,9 @@ class Includer final : public shaderc::CompileOptions::IncluderInterface {
|
||||
std::unique_ptr<fml::FileMapping> FindFirstMapping(
|
||||
const char* requested_source);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Includer);
|
||||
Includer(const Includer&) = delete;
|
||||
|
||||
Includer& operator=(const Includer&) = delete;
|
||||
};
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -31,7 +31,9 @@ class AutoLogger {
|
||||
private:
|
||||
std::stringstream& logger_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AutoLogger);
|
||||
AutoLogger(const AutoLogger&) = delete;
|
||||
|
||||
AutoLogger& operator=(const AutoLogger&) = delete;
|
||||
};
|
||||
|
||||
#define COMPILER_ERROR(stream) \
|
||||
|
||||
@@ -169,7 +169,9 @@ class Reflector {
|
||||
return compiler_->type_struct_member_array_stride(struct_type, index);
|
||||
};
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Reflector);
|
||||
Reflector(const Reflector&) = delete;
|
||||
|
||||
Reflector& operator=(const Reflector&) = delete;
|
||||
};
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -51,7 +51,9 @@ class RuntimeStageData {
|
||||
std::shared_ptr<fml::Mapping> shader_;
|
||||
std::shared_ptr<fml::Mapping> sksl_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(RuntimeStageData);
|
||||
RuntimeStageData(const RuntimeStageData&) = delete;
|
||||
|
||||
RuntimeStageData& operator=(const RuntimeStageData&) = delete;
|
||||
};
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -268,7 +268,9 @@ class UniqueIncluder final : public shaderc::CompileOptions::IncluderInterface {
|
||||
FML_CHECK(includer_);
|
||||
}
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(UniqueIncluder);
|
||||
UniqueIncluder(const UniqueIncluder&) = delete;
|
||||
|
||||
UniqueIncluder& operator=(const UniqueIncluder&) = delete;
|
||||
};
|
||||
|
||||
shaderc::CompileOptions SPIRVCompilerOptions::BuildShadercOptions() const {
|
||||
|
||||
@@ -68,7 +68,9 @@ class SPIRVCompiler {
|
||||
|
||||
std::string GetSourcePrefix() const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SPIRVCompiler);
|
||||
SPIRVCompiler(const SPIRVCompiler&) = delete;
|
||||
|
||||
SPIRVCompiler& operator=(const SPIRVCompiler&) = delete;
|
||||
};
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -61,7 +61,9 @@ class Allocator {
|
||||
const TextureDescriptor& desc) = 0;
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Allocator);
|
||||
Allocator(const Allocator&) = delete;
|
||||
|
||||
Allocator& operator=(const Allocator&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -188,7 +188,9 @@ class CapturePlaybackList {
|
||||
size_t cursor_ = 0;
|
||||
std::vector<std::shared_ptr<Type>> values_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CapturePlaybackList);
|
||||
CapturePlaybackList(const CapturePlaybackList&) = delete;
|
||||
|
||||
CapturePlaybackList& operator=(const CapturePlaybackList&) = delete;
|
||||
};
|
||||
|
||||
/// A document of capture data, containing a list of properties and a list
|
||||
@@ -206,7 +208,9 @@ struct CaptureElement final : public CaptureCursorListElement<CaptureElement> {
|
||||
private:
|
||||
explicit CaptureElement(const std::string& label);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CaptureElement);
|
||||
CaptureElement(const CaptureElement&) = delete;
|
||||
|
||||
CaptureElement& operator=(const CaptureElement&) = delete;
|
||||
};
|
||||
|
||||
#ifdef IMPELLER_ENABLE_CAPTURE
|
||||
|
||||
@@ -55,7 +55,9 @@ class DeviceBuffer : public Buffer,
|
||||
size_t offset) = 0;
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DeviceBuffer);
|
||||
DeviceBuffer(const DeviceBuffer&) = delete;
|
||||
|
||||
DeviceBuffer& operator=(const DeviceBuffer&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -134,7 +134,9 @@ class HostBuffer final : public std::enable_shared_from_this<HostBuffer>,
|
||||
|
||||
HostBuffer();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(HostBuffer);
|
||||
HostBuffer(const HostBuffer&) = delete;
|
||||
|
||||
HostBuffer& operator=(const HostBuffer&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -23,7 +23,9 @@ class Sampler {
|
||||
explicit Sampler(SamplerDescriptor desc);
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Sampler);
|
||||
Sampler(const Sampler&) = delete;
|
||||
|
||||
Sampler& operator=(const Sampler&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -68,7 +68,9 @@ class Texture {
|
||||
|
||||
bool IsSliceValid(size_t slice) const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Texture);
|
||||
Texture(const Texture&) = delete;
|
||||
|
||||
Texture& operator=(const Texture&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -229,7 +229,9 @@ class DlDispatcher final : public flutter::DlOpReceiver {
|
||||
CanvasType canvas_;
|
||||
Matrix initial_matrix_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DlDispatcher);
|
||||
DlDispatcher(const DlDispatcher&) = delete;
|
||||
|
||||
DlDispatcher& operator=(const DlDispatcher&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -58,7 +58,9 @@ class DlImageImpeller final : public flutter::DlImage {
|
||||
explicit DlImageImpeller(std::shared_ptr<Texture> texture,
|
||||
OwningContext owning_context = OwningContext::kIO);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DlImageImpeller);
|
||||
DlImageImpeller(const DlImageImpeller&) = delete;
|
||||
|
||||
DlImageImpeller& operator=(const DlImageImpeller&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -32,7 +32,9 @@ class DlPlayground : public PlaygroundTest {
|
||||
SkFont CreateTestFont();
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DlPlayground);
|
||||
DlPlayground(const DlPlayground&) = delete;
|
||||
|
||||
DlPlayground& operator=(const DlPlayground&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -34,7 +34,9 @@ class AnonymousContents final : public Contents {
|
||||
|
||||
AnonymousContents(RenderProc render_proc, CoverageProc coverage_proc);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AnonymousContents);
|
||||
AnonymousContents(const AnonymousContents&) = delete;
|
||||
|
||||
AnonymousContents& operator=(const AnonymousContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -87,7 +87,9 @@ class AtlasContents final : public Contents {
|
||||
SamplerDescriptor sampler_descriptor_ = {};
|
||||
mutable std::optional<Rect> bounding_box_cache_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AtlasContents);
|
||||
AtlasContents(const AtlasContents&) = delete;
|
||||
|
||||
AtlasContents& operator=(const AtlasContents&) = delete;
|
||||
};
|
||||
|
||||
class AtlasTextureContents final : public Contents {
|
||||
@@ -122,7 +124,9 @@ class AtlasTextureContents final : public Contents {
|
||||
bool use_destination_ = false;
|
||||
std::shared_ptr<SubAtlasResult> subatlas_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AtlasTextureContents);
|
||||
AtlasTextureContents(const AtlasTextureContents&) = delete;
|
||||
|
||||
AtlasTextureContents& operator=(const AtlasTextureContents&) = delete;
|
||||
};
|
||||
|
||||
class AtlasColorContents final : public Contents {
|
||||
@@ -151,7 +155,9 @@ class AtlasColorContents final : public Contents {
|
||||
Rect coverage_;
|
||||
std::shared_ptr<SubAtlasResult> subatlas_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AtlasColorContents);
|
||||
AtlasColorContents(const AtlasColorContents&) = delete;
|
||||
|
||||
AtlasColorContents& operator=(const AtlasColorContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -35,7 +35,9 @@ class CheckerboardContents final : public Contents {
|
||||
Color color_ = Color::Red().WithAlpha(0.25);
|
||||
Scalar square_size_ = 12;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CheckerboardContents);
|
||||
CheckerboardContents(const CheckerboardContents&) = delete;
|
||||
|
||||
CheckerboardContents& operator=(const CheckerboardContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -51,7 +51,9 @@ class ClipContents final : public Contents {
|
||||
std::unique_ptr<Geometry> geometry_;
|
||||
Entity::ClipOperation clip_op_ = Entity::ClipOperation::kIntersect;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ClipContents);
|
||||
ClipContents(const ClipContents&) = delete;
|
||||
|
||||
ClipContents& operator=(const ClipContents&) = delete;
|
||||
};
|
||||
|
||||
class ClipRestoreContents final : public Contents {
|
||||
@@ -92,7 +94,9 @@ class ClipRestoreContents final : public Contents {
|
||||
private:
|
||||
std::optional<Rect> restore_coverage_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ClipRestoreContents);
|
||||
ClipRestoreContents(const ClipRestoreContents&) = delete;
|
||||
|
||||
ClipRestoreContents& operator=(const ClipRestoreContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -107,7 +107,9 @@ class ColorSourceContents : public Contents {
|
||||
Scalar opacity_ = 1.0;
|
||||
Scalar inherited_opacity_ = 1.0;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ColorSourceContents);
|
||||
ColorSourceContents(const ColorSourceContents&) = delete;
|
||||
|
||||
ColorSourceContents& operator=(const ColorSourceContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -64,7 +64,9 @@ class ConicalGradientContents final : public ColorSourceContents {
|
||||
std::optional<Point> focus_;
|
||||
Scalar focus_radius_ = 0.0f;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ConicalGradientContents);
|
||||
ConicalGradientContents(const ConicalGradientContents&) = delete;
|
||||
|
||||
ConicalGradientContents& operator=(const ConicalGradientContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -772,7 +772,9 @@ class ContentContext {
|
||||
ContentContextOptions::Equal>
|
||||
pipelines_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Variants);
|
||||
Variants(const Variants&) = delete;
|
||||
|
||||
Variants& operator=(const Variants&) = delete;
|
||||
};
|
||||
|
||||
// These are mutable because while the prototypes are created eagerly, any
|
||||
@@ -920,7 +922,9 @@ class ContentContext {
|
||||
std::shared_ptr<RenderTargetAllocator> render_target_cache_;
|
||||
bool wireframe_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ContentContext);
|
||||
ContentContext(const ContentContext&) = delete;
|
||||
|
||||
ContentContext& operator=(const ContentContext&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -195,7 +195,9 @@ class Contents {
|
||||
std::optional<Rect> coverage_hint_;
|
||||
std::optional<Size> color_source_size_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Contents);
|
||||
Contents(const Contents&) = delete;
|
||||
|
||||
Contents& operator=(const Contents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -95,7 +95,9 @@ class BlendFilterContents : public ColorFilterContents {
|
||||
AdvancedBlendProc advanced_blend_proc_;
|
||||
std::optional<Color> foreground_color_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(BlendFilterContents);
|
||||
BlendFilterContents(const BlendFilterContents&) = delete;
|
||||
|
||||
BlendFilterContents& operator=(const BlendFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -44,7 +44,10 @@ class BorderMaskBlurFilterContents final : public FilterContents {
|
||||
bool inner_blur_factor_ = true;
|
||||
bool outer_blur_factor_ = true;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(BorderMaskBlurFilterContents);
|
||||
BorderMaskBlurFilterContents(const BorderMaskBlurFilterContents&) = delete;
|
||||
|
||||
BorderMaskBlurFilterContents& operator=(const BorderMaskBlurFilterContents&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -48,7 +48,9 @@ class ColorFilterContents : public FilterContents {
|
||||
AbsorbOpacity absorb_opacity_ = AbsorbOpacity::kNo;
|
||||
std::optional<Scalar> alpha_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ColorFilterContents);
|
||||
ColorFilterContents(const ColorFilterContents&) = delete;
|
||||
|
||||
ColorFilterContents& operator=(const ColorFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -34,7 +34,10 @@ class ColorMatrixFilterContents final : public ColorFilterContents {
|
||||
|
||||
ColorMatrix matrix_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ColorMatrixFilterContents);
|
||||
ColorMatrixFilterContents(const ColorMatrixFilterContents&) = delete;
|
||||
|
||||
ColorMatrixFilterContents& operator=(const ColorMatrixFilterContents&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -179,7 +179,9 @@ class FilterContents : public Contents {
|
||||
FilterInput::Vector inputs_;
|
||||
Matrix effect_transform_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(FilterContents);
|
||||
FilterContents(const FilterContents&) = delete;
|
||||
|
||||
FilterContents& operator=(const FilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -51,7 +51,11 @@ class DirectionalGaussianBlurFilterContents final : public FilterContents {
|
||||
Entity::TileMode tile_mode_ = Entity::TileMode::kDecal;
|
||||
bool is_second_pass_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DirectionalGaussianBlurFilterContents);
|
||||
DirectionalGaussianBlurFilterContents(
|
||||
const DirectionalGaussianBlurFilterContents&) = delete;
|
||||
|
||||
DirectionalGaussianBlurFilterContents& operator=(
|
||||
const DirectionalGaussianBlurFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -25,7 +25,10 @@ class LinearToSrgbFilterContents final : public ColorFilterContents {
|
||||
const Rect& coverage,
|
||||
const std::optional<Rect>& coverage_hint) const override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(LinearToSrgbFilterContents);
|
||||
LinearToSrgbFilterContents(const LinearToSrgbFilterContents&) = delete;
|
||||
|
||||
LinearToSrgbFilterContents& operator=(const LinearToSrgbFilterContents&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -32,7 +32,10 @@ class LocalMatrixFilterContents final : public FilterContents {
|
||||
|
||||
Matrix matrix_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(LocalMatrixFilterContents);
|
||||
LocalMatrixFilterContents(const LocalMatrixFilterContents&) = delete;
|
||||
|
||||
LocalMatrixFilterContents& operator=(const LocalMatrixFilterContents&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -45,7 +45,9 @@ class MatrixFilterContents final : public FilterContents {
|
||||
SamplerDescriptor sampler_descriptor_ = {};
|
||||
Entity::RenderingMode rendering_mode_ = Entity::RenderingMode::kDirect;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(MatrixFilterContents);
|
||||
MatrixFilterContents(const MatrixFilterContents&) = delete;
|
||||
|
||||
MatrixFilterContents& operator=(const MatrixFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -43,7 +43,11 @@ class DirectionalMorphologyFilterContents final : public FilterContents {
|
||||
Vector2 direction_;
|
||||
MorphType morph_type_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DirectionalMorphologyFilterContents);
|
||||
DirectionalMorphologyFilterContents(
|
||||
const DirectionalMorphologyFilterContents&) = delete;
|
||||
|
||||
DirectionalMorphologyFilterContents& operator=(
|
||||
const DirectionalMorphologyFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -25,7 +25,10 @@ class SrgbToLinearFilterContents final : public ColorFilterContents {
|
||||
const Rect& coverage,
|
||||
const std::optional<Rect>& coverage_hint) const override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SrgbToLinearFilterContents);
|
||||
SrgbToLinearFilterContents(const SrgbToLinearFilterContents&) = delete;
|
||||
|
||||
SrgbToLinearFilterContents& operator=(const SrgbToLinearFilterContents&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -28,7 +28,9 @@ class YUVToRGBFilterContents final : public FilterContents {
|
||||
|
||||
YUVColorSpace yuv_color_space_ = YUVColorSpace::kBT601LimitedRange;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(YUVToRGBFilterContents);
|
||||
YUVToRGBFilterContents(const YUVToRGBFilterContents&) = delete;
|
||||
|
||||
YUVToRGBFilterContents& operator=(const YUVToRGBFilterContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -37,7 +37,9 @@ class FramebufferBlendContents final : public ColorSourceContents {
|
||||
BlendMode blend_mode_;
|
||||
std::shared_ptr<Contents> child_contents_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(FramebufferBlendContents);
|
||||
FramebufferBlendContents(const FramebufferBlendContents&) = delete;
|
||||
|
||||
FramebufferBlendContents& operator=(const FramebufferBlendContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -65,7 +65,9 @@ class LinearGradientContents final : public ColorSourceContents {
|
||||
Entity::TileMode tile_mode_;
|
||||
Color decal_border_color_ = Color::BlackTransparent();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(LinearGradientContents);
|
||||
LinearGradientContents(const LinearGradientContents&) = delete;
|
||||
|
||||
LinearGradientContents& operator=(const LinearGradientContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -63,7 +63,9 @@ class RadialGradientContents final : public ColorSourceContents {
|
||||
Entity::TileMode tile_mode_;
|
||||
Color decal_border_color_ = Color::BlackTransparent();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(RadialGradientContents);
|
||||
RadialGradientContents(const RadialGradientContents&) = delete;
|
||||
|
||||
RadialGradientContents& operator=(const RadialGradientContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -58,7 +58,9 @@ class SolidColorContents final : public ColorSourceContents {
|
||||
private:
|
||||
Color color_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SolidColorContents);
|
||||
SolidColorContents(const SolidColorContents&) = delete;
|
||||
|
||||
SolidColorContents& operator=(const SolidColorContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -54,7 +54,9 @@ class SolidRRectBlurContents final : public Contents {
|
||||
|
||||
Color color_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SolidRRectBlurContents);
|
||||
SolidRRectBlurContents(const SolidRRectBlurContents&) = delete;
|
||||
|
||||
SolidRRectBlurContents& operator=(const SolidRRectBlurContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -66,7 +66,9 @@ class SweepGradientContents final : public ColorSourceContents {
|
||||
Entity::TileMode tile_mode_;
|
||||
Color decal_border_color_ = Color::BlackTransparent();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(SweepGradientContents);
|
||||
SweepGradientContents(const SweepGradientContents&) = delete;
|
||||
|
||||
SweepGradientContents& operator=(const SweepGradientContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -67,7 +67,9 @@ class TextContents final : public Contents {
|
||||
GlyphAtlas::Type type,
|
||||
const std::shared_ptr<LazyGlyphAtlas>& lazy_atlas) const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(TextContents);
|
||||
TextContents(const TextContents&) = delete;
|
||||
|
||||
TextContents& operator=(const TextContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -88,7 +88,9 @@ class TextureContents final : public Contents {
|
||||
Scalar inherited_opacity_ = 1.0f;
|
||||
bool defer_applying_opacity_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(TextureContents);
|
||||
TextureContents(const TextureContents&) = delete;
|
||||
|
||||
TextureContents& operator=(const TextureContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -76,7 +76,9 @@ class TiledTextureContents final : public ColorSourceContents {
|
||||
Entity::TileMode y_tile_mode_ = Entity::TileMode::kClamp;
|
||||
ColorFilterProc color_filter_ = nullptr;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(TiledTextureContents);
|
||||
TiledTextureContents(const TiledTextureContents&) = delete;
|
||||
|
||||
TiledTextureContents& operator=(const TiledTextureContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -52,7 +52,9 @@ class VerticesContents final : public Contents {
|
||||
BlendMode blend_mode_ = BlendMode::kSource;
|
||||
std::shared_ptr<Contents> src_contents_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(VerticesContents);
|
||||
VerticesContents(const VerticesContents&) = delete;
|
||||
|
||||
VerticesContents& operator=(const VerticesContents&) = delete;
|
||||
};
|
||||
|
||||
class VerticesColorContents final : public Contents {
|
||||
@@ -75,7 +77,9 @@ class VerticesColorContents final : public Contents {
|
||||
const VerticesContents& parent_;
|
||||
Scalar alpha_ = 1.0;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(VerticesColorContents);
|
||||
VerticesColorContents(const VerticesColorContents&) = delete;
|
||||
|
||||
VerticesColorContents& operator=(const VerticesColorContents&) = delete;
|
||||
};
|
||||
|
||||
class VerticesUVContents final : public Contents {
|
||||
@@ -98,7 +102,9 @@ class VerticesUVContents final : public Contents {
|
||||
const VerticesContents& parent_;
|
||||
Scalar alpha_ = 1.0;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(VerticesUVContents);
|
||||
VerticesUVContents(const VerticesUVContents&) = delete;
|
||||
|
||||
VerticesUVContents& operator=(const VerticesUVContents&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -299,7 +299,9 @@ class EntityPass {
|
||||
std::shared_ptr<EntityPassDelegate> delegate_ =
|
||||
EntityPassDelegate::MakeDefault();
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(EntityPass);
|
||||
EntityPass(const EntityPass&) = delete;
|
||||
|
||||
EntityPass& operator=(const EntityPass&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -42,7 +42,10 @@ class DefaultEntityPassDelegate final : public EntityPassDelegate {
|
||||
}
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DefaultEntityPassDelegate);
|
||||
DefaultEntityPassDelegate(const DefaultEntityPassDelegate&) = delete;
|
||||
|
||||
DefaultEntityPassDelegate& operator=(const DefaultEntityPassDelegate&) =
|
||||
delete;
|
||||
};
|
||||
|
||||
std::unique_ptr<EntityPassDelegate> EntityPassDelegate::MakeDefault() {
|
||||
|
||||
@@ -39,7 +39,9 @@ class EntityPassDelegate {
|
||||
const Matrix& effect_transform) const = 0;
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(EntityPassDelegate);
|
||||
EntityPassDelegate(const EntityPassDelegate&) = delete;
|
||||
|
||||
EntityPassDelegate& operator=(const EntityPassDelegate&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -37,7 +37,7 @@ class EntityPassTarget {
|
||||
|
||||
friend InlinePassContext;
|
||||
|
||||
FML_DISALLOW_ASSIGN(EntityPassTarget);
|
||||
EntityPassTarget& operator=(const EntityPassTarget&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -35,7 +35,9 @@ class EntityPlayground : public PlaygroundTest {
|
||||
private:
|
||||
std::shared_ptr<TypographerContext> typographer_context_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(EntityPlayground);
|
||||
EntityPlayground(const EntityPlayground&) = delete;
|
||||
|
||||
EntityPlayground& operator=(const EntityPlayground&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -38,7 +38,9 @@ class CoverGeometry : public Geometry {
|
||||
const Entity& entity,
|
||||
RenderPass& pass) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CoverGeometry);
|
||||
CoverGeometry(const CoverGeometry&) = delete;
|
||||
|
||||
CoverGeometry& operator=(const CoverGeometry&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -44,7 +44,9 @@ class FillPathGeometry : public Geometry {
|
||||
Path path_;
|
||||
std::optional<Rect> inner_rect_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(FillPathGeometry);
|
||||
FillPathGeometry(const FillPathGeometry&) = delete;
|
||||
|
||||
FillPathGeometry& operator=(const FillPathGeometry&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -51,7 +51,9 @@ class PointFieldGeometry : public Geometry {
|
||||
Scalar radius_;
|
||||
bool round_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PointFieldGeometry);
|
||||
PointFieldGeometry(const PointFieldGeometry&) = delete;
|
||||
|
||||
PointFieldGeometry& operator=(const PointFieldGeometry&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -38,7 +38,9 @@ class RectGeometry : public Geometry {
|
||||
|
||||
Rect rect_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(RectGeometry);
|
||||
RectGeometry(const RectGeometry&) = delete;
|
||||
|
||||
RectGeometry& operator=(const RectGeometry&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -88,7 +88,9 @@ class StrokePathGeometry : public Geometry {
|
||||
Cap stroke_cap_;
|
||||
Join stroke_join_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(StrokePathGeometry);
|
||||
StrokePathGeometry(const StrokePathGeometry&) = delete;
|
||||
|
||||
StrokePathGeometry& operator=(const StrokePathGeometry&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -44,7 +44,9 @@ class InlinePassContext {
|
||||
// Whether this context is collapsed into a parent entity pass.
|
||||
bool is_collapsed_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(InlinePassContext);
|
||||
InlinePassContext(const InlinePassContext&) = delete;
|
||||
|
||||
InlinePassContext& operator=(const InlinePassContext&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -39,7 +39,9 @@ class RenderTargetCache : public RenderTargetAllocator {
|
||||
|
||||
std::vector<TextureData> texture_data_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(RenderTargetCache);
|
||||
RenderTargetCache(const RenderTargetCache&) = delete;
|
||||
|
||||
RenderTargetCache& operator=(const RenderTargetCache&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -32,7 +32,9 @@ class GoldenDigest {
|
||||
bool Write(WorkingDirectory* working_directory);
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(GoldenDigest);
|
||||
GoldenDigest(const GoldenDigest&) = delete;
|
||||
|
||||
GoldenDigest& operator=(const GoldenDigest&) = delete;
|
||||
GoldenDigest();
|
||||
struct Entry {
|
||||
std::string test_name;
|
||||
|
||||
@@ -73,7 +73,9 @@ class GoldenPlaygroundTest
|
||||
// This is only a shared_ptr so it can work with a forward declared type.
|
||||
std::shared_ptr<GoldenPlaygroundTestImpl> pimpl_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(GoldenPlaygroundTest);
|
||||
GoldenPlaygroundTest(const GoldenPlaygroundTest&) = delete;
|
||||
|
||||
GoldenPlaygroundTest& operator=(const GoldenPlaygroundTest&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -31,7 +31,9 @@ class MetalScreenshot {
|
||||
private:
|
||||
friend class MetalScreenshotter;
|
||||
explicit MetalScreenshot(CGImageRef cgImage);
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(MetalScreenshot);
|
||||
MetalScreenshot(const MetalScreenshot&) = delete;
|
||||
|
||||
MetalScreenshot& operator=(const MetalScreenshot&) = delete;
|
||||
CGImageRef cg_image_;
|
||||
CFDataRef pixel_data_;
|
||||
};
|
||||
|
||||
@@ -24,7 +24,9 @@ class WorkingDirectory {
|
||||
const std::string& GetPath() const { return path_; }
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(WorkingDirectory);
|
||||
WorkingDirectory(const WorkingDirectory&) = delete;
|
||||
|
||||
WorkingDirectory& operator=(const WorkingDirectory&) = delete;
|
||||
WorkingDirectory();
|
||||
static WorkingDirectory* instance_;
|
||||
std::string path_;
|
||||
|
||||
@@ -22,7 +22,9 @@ class CompressedImageSkia final : public CompressedImage {
|
||||
DecompressedImage Decode() const override;
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CompressedImageSkia);
|
||||
CompressedImageSkia(const CompressedImageSkia&) = delete;
|
||||
|
||||
CompressedImageSkia& operator=(const CompressedImageSkia&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -41,7 +41,9 @@ class PlaygroundImplGLES::ReactorWorker final : public ReactorGLES::Worker {
|
||||
mutable RWMutex mutex_;
|
||||
std::map<std::thread::id, bool> reactions_allowed_ IPLR_GUARDED_BY(mutex_);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ReactorWorker);
|
||||
ReactorWorker(const ReactorWorker&) = delete;
|
||||
|
||||
ReactorWorker& operator=(const ReactorWorker&) = delete;
|
||||
};
|
||||
|
||||
void PlaygroundImplGLES::DestroyWindowHandle(WindowHandle handle) {
|
||||
|
||||
@@ -33,7 +33,9 @@ class PlaygroundImplGLES final : public PlaygroundImpl {
|
||||
std::unique_ptr<Surface> AcquireSurfaceFrame(
|
||||
std::shared_ptr<Context> context) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundImplGLES);
|
||||
PlaygroundImplGLES(const PlaygroundImplGLES&) = delete;
|
||||
|
||||
PlaygroundImplGLES& operator=(const PlaygroundImplGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -42,7 +42,9 @@ class PlaygroundImplMTL final : public PlaygroundImpl {
|
||||
std::unique_ptr<Surface> AcquireSurfaceFrame(
|
||||
std::shared_ptr<Context> context) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundImplMTL);
|
||||
PlaygroundImplMTL(const PlaygroundImplMTL&) = delete;
|
||||
|
||||
PlaygroundImplMTL& operator=(const PlaygroundImplMTL&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -34,7 +34,9 @@ class PlaygroundImplVK final : public PlaygroundImpl {
|
||||
std::unique_ptr<Surface> AcquireSurfaceFrame(
|
||||
std::shared_ptr<Context> context) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundImplVK);
|
||||
PlaygroundImplVK(const PlaygroundImplVK&) = delete;
|
||||
|
||||
PlaygroundImplVK& operator=(const PlaygroundImplVK&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -52,7 +52,9 @@ class ComputePlaygroundTest
|
||||
private:
|
||||
fml::TimeDelta start_time_;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ComputePlaygroundTest);
|
||||
ComputePlaygroundTest(const ComputePlaygroundTest&) = delete;
|
||||
|
||||
ComputePlaygroundTest& operator=(const ComputePlaygroundTest&) = delete;
|
||||
};
|
||||
|
||||
#define INSTANTIATE_COMPUTE_SUITE(playground) \
|
||||
|
||||
@@ -107,7 +107,9 @@ class Playground {
|
||||
|
||||
void SetCursorPosition(Point pos);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(Playground);
|
||||
Playground(const Playground&) = delete;
|
||||
|
||||
Playground& operator=(const Playground&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -38,7 +38,9 @@ class PlaygroundImpl {
|
||||
explicit PlaygroundImpl(PlaygroundSwitches switches);
|
||||
|
||||
private:
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundImpl);
|
||||
PlaygroundImpl(const PlaygroundImpl&) = delete;
|
||||
|
||||
PlaygroundImpl& operator=(const PlaygroundImpl&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -50,7 +50,9 @@ class PlaygroundTest : public Playground,
|
||||
fml::ScopedNSAutoreleasePool autorelease_pool_;
|
||||
#endif
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PlaygroundTest);
|
||||
PlaygroundTest(const PlaygroundTest&) = delete;
|
||||
|
||||
PlaygroundTest& operator=(const PlaygroundTest&) = delete;
|
||||
};
|
||||
|
||||
#define INSTANTIATE_PLAYGROUND_SUITE(playground) \
|
||||
|
||||
@@ -37,7 +37,9 @@ class AllocatorGLES final : public Allocator {
|
||||
// |Allocator|
|
||||
ISize GetMaxTextureSizeSupported() const override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(AllocatorGLES);
|
||||
AllocatorGLES(const AllocatorGLES&) = delete;
|
||||
|
||||
AllocatorGLES& operator=(const AllocatorGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -66,7 +66,9 @@ class BlitPassGLES final : public BlitPass,
|
||||
bool OnGenerateMipmapCommand(std::shared_ptr<Texture> texture,
|
||||
std::string label) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(BlitPassGLES);
|
||||
BlitPassGLES(const BlitPassGLES&) = delete;
|
||||
|
||||
BlitPassGLES& operator=(const BlitPassGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -65,7 +65,9 @@ class BufferBindingsGLES {
|
||||
const Bindings& bindings,
|
||||
ShaderStage stage) const;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(BufferBindingsGLES);
|
||||
BufferBindingsGLES(const BufferBindingsGLES&) = delete;
|
||||
|
||||
BufferBindingsGLES& operator=(const BufferBindingsGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -46,7 +46,9 @@ class CommandBufferGLES final : public CommandBuffer {
|
||||
// |CommandBuffer|
|
||||
std::shared_ptr<ComputePass> OnCreateComputePass() override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(CommandBufferGLES);
|
||||
CommandBufferGLES(const CommandBufferGLES&) = delete;
|
||||
|
||||
CommandBufferGLES& operator=(const CommandBufferGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -90,7 +90,9 @@ class ContextGLES final : public Context,
|
||||
// |Context|
|
||||
void Shutdown() override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(ContextGLES);
|
||||
ContextGLES(const ContextGLES&) = delete;
|
||||
|
||||
ContextGLES& operator=(const ContextGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -42,7 +42,9 @@ class DescriptionGLES {
|
||||
std::set<std::string> extensions_;
|
||||
bool is_valid_ = false;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DescriptionGLES);
|
||||
DescriptionGLES(const DescriptionGLES&) = delete;
|
||||
|
||||
DescriptionGLES& operator=(const DescriptionGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -58,7 +58,9 @@ class DeviceBufferGLES final
|
||||
// |DeviceBuffer|
|
||||
bool SetLabel(const std::string& label, Range range) override;
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(DeviceBufferGLES);
|
||||
DeviceBufferGLES(const DeviceBufferGLES&) = delete;
|
||||
|
||||
DeviceBufferGLES& operator=(const DeviceBufferGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
@@ -48,7 +48,9 @@ class PipelineGLES final
|
||||
std::weak_ptr<PipelineLibrary> library,
|
||||
const PipelineDescriptor& desc);
|
||||
|
||||
FML_DISALLOW_COPY_AND_ASSIGN(PipelineGLES);
|
||||
PipelineGLES(const PipelineGLES&) = delete;
|
||||
|
||||
PipelineGLES& operator=(const PipelineGLES&) = delete;
|
||||
};
|
||||
|
||||
} // namespace impeller
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user