Revert "[GPU] Make Processor optional for GraphicsSystem setup"

The Processor is still required in many places, including the GPU command processor worker thread

This reverts commit fd03d886e9.
This commit is contained in:
Triang3l
2022-07-06 22:43:40 +03:00
parent 2507837e8d
commit 3ee68d79ea
9 changed files with 13 additions and 18 deletions

View File

@@ -43,13 +43,12 @@ class GraphicsSystem {
virtual std::string name() const = 0;
Memory* memory() const { return memory_; }
// The Processor is optional and may be null (needed only for interrupts).
cpu::Processor* processor() const { return processor_; }
kernel::KernelState* kernel_state() const { return kernel_state_; }
ui::GraphicsProvider* provider() const { return provider_.get(); }
ui::Presenter* presenter() const { return presenter_.get(); }
virtual X_STATUS Setup(Memory* memory, cpu::Processor* processor,
virtual X_STATUS Setup(cpu::Processor* processor,
kernel::KernelState* kernel_state,
ui::WindowedAppContext* app_context,
bool is_surface_required);