Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 66120bc

Browse files
committed
Removed ReactorGLES::Ref typdef
1 parent 7f464aa commit 66120bc

21 files changed

+56
-51
lines changed

impeller/renderer/backend/gles/allocator_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace impeller {
1515

16-
AllocatorGLES::AllocatorGLES(ReactorGLES::Ref reactor)
16+
AllocatorGLES::AllocatorGLES(std::shared_ptr<ReactorGLES> reactor)
1717
: reactor_(std::move(reactor)), is_valid_(true) {}
1818

1919
// |Allocator|

impeller/renderer/backend/gles/allocator_gles.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class AllocatorGLES final : public Allocator {
1818
private:
1919
friend class ContextGLES;
2020

21-
ReactorGLES::Ref reactor_;
21+
std::shared_ptr<ReactorGLES> reactor_;
2222
bool is_valid_ = false;
2323

24-
explicit AllocatorGLES(ReactorGLES::Ref reactor);
24+
explicit AllocatorGLES(std::shared_ptr<ReactorGLES> reactor);
2525

2626
// |Allocator|
2727
bool IsValid() const;

impeller/renderer/backend/gles/blit_pass_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace impeller {
1616

17-
BlitPassGLES::BlitPassGLES(ReactorGLES::Ref reactor)
17+
BlitPassGLES::BlitPassGLES(std::shared_ptr<ReactorGLES> reactor)
1818
: reactor_(std::move(reactor)),
1919
is_valid_(reactor_ && reactor_->IsValid()) {}
2020

impeller/renderer/backend/gles/blit_pass_gles.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class BlitPassGLES final : public BlitPass,
2525
friend class CommandBufferGLES;
2626

2727
std::vector<std::unique_ptr<BlitEncodeGLES>> commands_;
28-
ReactorGLES::Ref reactor_;
28+
std::shared_ptr<ReactorGLES> reactor_;
2929
std::string label_;
3030
bool is_valid_ = false;
3131

32-
explicit BlitPassGLES(ReactorGLES::Ref reactor);
32+
explicit BlitPassGLES(std::shared_ptr<ReactorGLES> reactor);
3333

3434
// |BlitPass|
3535
bool IsValid() const override;

impeller/renderer/backend/gles/command_buffer_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace impeller {
1212

1313
CommandBufferGLES::CommandBufferGLES(std::weak_ptr<const Context> context,
14-
ReactorGLES::Ref reactor)
14+
std::shared_ptr<ReactorGLES> reactor)
1515
: CommandBuffer(std::move(context)),
1616
reactor_(std::move(reactor)),
1717
is_valid_(reactor_ && reactor_->IsValid()) {}

impeller/renderer/backend/gles/command_buffer_gles.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ class CommandBufferGLES final : public CommandBuffer {
1919
private:
2020
friend class ContextGLES;
2121

22-
ReactorGLES::Ref reactor_;
22+
std::shared_ptr<ReactorGLES> reactor_;
2323
bool is_valid_ = false;
2424

2525
CommandBufferGLES(std::weak_ptr<const Context> context,
26-
ReactorGLES::Ref reactor);
26+
std::shared_ptr<ReactorGLES> reactor);
2727

2828
// |CommandBuffer|
2929
void SetLabel(std::string_view label) const override;

impeller/renderer/backend/gles/context_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Context::BackendType ContextGLES::GetBackendType() const {
8181
return Context::BackendType::kOpenGLES;
8282
}
8383

84-
const ReactorGLES::Ref& ContextGLES::GetReactor() const {
84+
const std::shared_ptr<ReactorGLES>& ContextGLES::GetReactor() const {
8585
return reactor_;
8686
}
8787

impeller/renderer/backend/gles/context_gles.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ContextGLES final : public Context,
3434
// |Context|
3535
BackendType GetBackendType() const override;
3636

37-
const ReactorGLES::Ref& GetReactor() const;
37+
const std::shared_ptr<ReactorGLES>& GetReactor() const;
3838

3939
std::optional<ReactorGLES::WorkerID> AddReactorWorker(
4040
const std::shared_ptr<ReactorGLES::Worker>& worker);
@@ -44,7 +44,7 @@ class ContextGLES final : public Context,
4444
std::shared_ptr<GPUTracerGLES> GetGPUTracer() const { return gpu_tracer_; }
4545

4646
private:
47-
ReactorGLES::Ref reactor_;
47+
std::shared_ptr<ReactorGLES> reactor_;
4848
std::shared_ptr<ShaderLibraryGLES> shader_library_;
4949
std::shared_ptr<PipelineLibraryGLES> pipeline_library_;
5050
std::shared_ptr<SamplerLibraryGLES> sampler_library_;

impeller/renderer/backend/gles/device_buffer_gles.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace impeller {
1414

1515
DeviceBufferGLES::DeviceBufferGLES(DeviceBufferDescriptor desc,
16-
ReactorGLES::Ref reactor,
16+
std::shared_ptr<ReactorGLES> reactor,
1717
std::shared_ptr<Allocation> backing_store)
1818
: DeviceBuffer(desc),
1919
reactor_(std::move(reactor)),

impeller/renderer/backend/gles/device_buffer_gles.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DeviceBufferGLES final
2020
public BackendCast<DeviceBufferGLES, DeviceBuffer> {
2121
public:
2222
DeviceBufferGLES(DeviceBufferDescriptor desc,
23-
ReactorGLES::Ref reactor,
23+
std::shared_ptr<ReactorGLES> reactor,
2424
std::shared_ptr<Allocation> backing_store);
2525

2626
// |DeviceBuffer|
@@ -41,7 +41,7 @@ class DeviceBufferGLES final
4141
void Flush(std::optional<Range> range = std::nullopt) const override;
4242

4343
private:
44-
ReactorGLES::Ref reactor_;
44+
std::shared_ptr<ReactorGLES> reactor_;
4545
HandleGLES handle_;
4646
mutable std::shared_ptr<Allocation> backing_store_;
4747
mutable std::optional<Range> dirty_range_ = std::nullopt;

0 commit comments

Comments
 (0)