Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion impeller/aiks/aiks_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
namespace impeller {

struct Picture;
class RenderPass;

class AiksContext {
public:
Expand Down
3 changes: 1 addition & 2 deletions impeller/aiks/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "impeller/aiks/paint.h"
#include "impeller/aiks/picture.h"
#include "impeller/core/sampler_descriptor.h"
#include "impeller/entity/entity.h"
#include "impeller/entity/entity_pass.h"
#include "impeller/entity/geometry/geometry.h"
#include "impeller/entity/geometry/vertices_geometry.h"
Expand All @@ -26,8 +27,6 @@

namespace impeller {

class Entity;

struct CanvasStackEntry {
Matrix transform;
// |cull_rect| is conservative screen-space bounds of the clipped output area
Expand Down
2 changes: 0 additions & 2 deletions impeller/aiks/paint_pass_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace impeller {

class EntityPass;

class PaintPassDelegate final : public EntityPassDelegate {
public:
explicit PaintPassDelegate(Paint paint);
Expand Down
1 change: 0 additions & 1 deletion impeller/core/allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace impeller {

class Context;
class DeviceBuffer;
class Texture;

//------------------------------------------------------------------------------
/// @brief An object that allocates device memory.
Expand Down
8 changes: 8 additions & 0 deletions impeller/core/sampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

#pragma once

#include <unordered_map>

#include "impeller/base/comparable.h"
#include "impeller/core/sampler_descriptor.h"

namespace impeller {
Expand All @@ -27,4 +30,9 @@ class Sampler {
Sampler& operator=(const Sampler&) = delete;
};

using SamplerMap = std::unordered_map<SamplerDescriptor,
std::shared_ptr<const Sampler>,
ComparableHash<SamplerDescriptor>,
ComparableEqual<SamplerDescriptor>>;

} // namespace impeller
8 changes: 0 additions & 8 deletions impeller/core/sampler_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

#pragma once

#include <unordered_map>

#include "impeller/base/comparable.h"
#include "impeller/core/formats.h"

namespace impeller {

class Sampler;
class Context;

struct SamplerDescriptor final : public Comparable<SamplerDescriptor> {
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion impeller/renderer/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>

#include "flutter/fml/macros.h"
#include "impeller/core/allocator.h"
#include "impeller/core/capture.h"
#include "impeller/core/formats.h"
#include "impeller/core/host_buffer.h"
Expand All @@ -20,7 +21,6 @@ class ShaderLibrary;
class SamplerLibrary;
class CommandBuffer;
class PipelineLibrary;
class Allocator;

//------------------------------------------------------------------------------
/// @brief To do anything rendering related with Impeller, you need a
Expand Down
4 changes: 1 addition & 3 deletions impeller/renderer/sampler_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

#pragma once

#include <unordered_map>

#include "flutter/fml/macros.h"
#include "impeller/core/sampler.h"
#include "impeller/core/sampler_descriptor.h"

namespace impeller {
Expand Down