hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.
This commit is contained in:
parent
da7e9553de
commit
5e5933256b
28 changed files with 65 additions and 59 deletions
|
@ -34,7 +34,7 @@ const Layer& Display::GetLayer(std::size_t index) const {
|
|||
}
|
||||
|
||||
std::shared_ptr<Kernel::KReadableEvent> Display::GetVSyncEvent() const {
|
||||
return vsync_event->GetReadableEvent();
|
||||
return SharedFrom(vsync_event->GetReadableEvent());
|
||||
}
|
||||
|
||||
void Display::SignalVSyncEvent() {
|
||||
|
|
|
@ -674,7 +674,7 @@ private:
|
|||
// TODO(Subv): Find out what this actually is.
|
||||
IPC::ResponseBuilder rb{ctx, 2, 1};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushCopyObjects(buffer_queue.GetBufferWaitEvent());
|
||||
rb.PushCopyObjects(buffer_queue.GetBufferWaitEvent().get());
|
||||
}
|
||||
|
||||
NVFlinger::NVFlinger& nv_flinger;
|
||||
|
@ -1209,7 +1209,7 @@ private:
|
|||
|
||||
IPC::ResponseBuilder rb{ctx, 2, 1};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushCopyObjects(vsync_event);
|
||||
rb.PushCopyObjects(vsync_event.get());
|
||||
}
|
||||
|
||||
void ConvertScalingMode(Kernel::HLERequestContext& ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue