Remove some trivial forward declares from Impeller (flutter/engine#48635)
Towards https://github.com/flutter/flutter/issues/133417#issuecomment-1839273553 I'll request a test exemption for this as it's a semantics-only refactor. There are still a bunch of other forward declares in Impeller that make things confusing for tooling, but some of those will require less trivial changes to interfaces.
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
namespace impeller {
|
namespace impeller {
|
||||||
|
|
||||||
struct Picture;
|
struct Picture;
|
||||||
class RenderPass;
|
|
||||||
|
|
||||||
class AiksContext {
|
class AiksContext {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include "impeller/aiks/paint.h"
|
#include "impeller/aiks/paint.h"
|
||||||
#include "impeller/aiks/picture.h"
|
#include "impeller/aiks/picture.h"
|
||||||
#include "impeller/core/sampler_descriptor.h"
|
#include "impeller/core/sampler_descriptor.h"
|
||||||
|
#include "impeller/entity/entity.h"
|
||||||
#include "impeller/entity/entity_pass.h"
|
#include "impeller/entity/entity_pass.h"
|
||||||
#include "impeller/entity/geometry/geometry.h"
|
#include "impeller/entity/geometry/geometry.h"
|
||||||
#include "impeller/entity/geometry/vertices_geometry.h"
|
#include "impeller/entity/geometry/vertices_geometry.h"
|
||||||
@@ -26,8 +27,6 @@
|
|||||||
|
|
||||||
namespace impeller {
|
namespace impeller {
|
||||||
|
|
||||||
class Entity;
|
|
||||||
|
|
||||||
struct CanvasStackEntry {
|
struct CanvasStackEntry {
|
||||||
Matrix transform;
|
Matrix transform;
|
||||||
// |cull_rect| is conservative screen-space bounds of the clipped output area
|
// |cull_rect| is conservative screen-space bounds of the clipped output area
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
namespace impeller {
|
namespace impeller {
|
||||||
|
|
||||||
class EntityPass;
|
|
||||||
|
|
||||||
class PaintPassDelegate final : public EntityPassDelegate {
|
class PaintPassDelegate final : public EntityPassDelegate {
|
||||||
public:
|
public:
|
||||||
explicit PaintPassDelegate(Paint paint);
|
explicit PaintPassDelegate(Paint paint);
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ namespace impeller {
|
|||||||
|
|
||||||
class Context;
|
class Context;
|
||||||
class DeviceBuffer;
|
class DeviceBuffer;
|
||||||
class Texture;
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/// @brief An object that allocates device memory.
|
/// @brief An object that allocates device memory.
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#include "impeller/base/comparable.h"
|
||||||
#include "impeller/core/sampler_descriptor.h"
|
#include "impeller/core/sampler_descriptor.h"
|
||||||
|
|
||||||
namespace impeller {
|
namespace impeller {
|
||||||
@@ -27,4 +30,9 @@ class Sampler {
|
|||||||
Sampler& operator=(const Sampler&) = delete;
|
Sampler& operator=(const Sampler&) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using SamplerMap = std::unordered_map<SamplerDescriptor,
|
||||||
|
std::shared_ptr<const Sampler>,
|
||||||
|
ComparableHash<SamplerDescriptor>,
|
||||||
|
ComparableEqual<SamplerDescriptor>>;
|
||||||
|
|
||||||
} // namespace impeller
|
} // namespace impeller
|
||||||
|
|||||||
@@ -4,14 +4,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <unordered_map>
|
|
||||||
|
|
||||||
#include "impeller/base/comparable.h"
|
#include "impeller/base/comparable.h"
|
||||||
#include "impeller/core/formats.h"
|
#include "impeller/core/formats.h"
|
||||||
|
|
||||||
namespace impeller {
|
namespace impeller {
|
||||||
|
|
||||||
class Sampler;
|
|
||||||
class Context;
|
class Context;
|
||||||
|
|
||||||
struct SamplerDescriptor final : public Comparable<SamplerDescriptor> {
|
struct SamplerDescriptor final : public Comparable<SamplerDescriptor> {
|
||||||
@@ -49,9 +46,4 @@ struct SamplerDescriptor final : public Comparable<SamplerDescriptor> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
using SamplerMap = std::unordered_map<SamplerDescriptor,
|
|
||||||
std::shared_ptr<const Sampler>,
|
|
||||||
ComparableHash<SamplerDescriptor>,
|
|
||||||
ComparableEqual<SamplerDescriptor>>;
|
|
||||||
|
|
||||||
} // namespace impeller
|
} // namespace impeller
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "flutter/fml/macros.h"
|
#include "flutter/fml/macros.h"
|
||||||
|
#include "impeller/core/allocator.h"
|
||||||
#include "impeller/core/capture.h"
|
#include "impeller/core/capture.h"
|
||||||
#include "impeller/core/formats.h"
|
#include "impeller/core/formats.h"
|
||||||
#include "impeller/core/host_buffer.h"
|
#include "impeller/core/host_buffer.h"
|
||||||
@@ -20,7 +21,6 @@ class ShaderLibrary;
|
|||||||
class SamplerLibrary;
|
class SamplerLibrary;
|
||||||
class CommandBuffer;
|
class CommandBuffer;
|
||||||
class PipelineLibrary;
|
class PipelineLibrary;
|
||||||
class Allocator;
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/// @brief To do anything rendering related with Impeller, you need a
|
/// @brief To do anything rendering related with Impeller, you need a
|
||||||
|
|||||||
@@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <unordered_map>
|
#include "impeller/core/sampler.h"
|
||||||
|
|
||||||
#include "flutter/fml/macros.h"
|
|
||||||
#include "impeller/core/sampler_descriptor.h"
|
#include "impeller/core/sampler_descriptor.h"
|
||||||
|
|
||||||
namespace impeller {
|
namespace impeller {
|
||||||
|
|||||||
Reference in New Issue
Block a user