backends/wayland: rename framePending to setPendingFrame
It's more clear about what the method does
This commit is contained in:
parent
881858f8dd
commit
749b80ab49
4 changed files with 4 additions and 4 deletions
|
@ -345,7 +345,7 @@ std::unique_ptr<SurfaceTexture> WaylandEglBackend::createSurfaceTextureWayland(S
|
||||||
void WaylandEglBackend::present(Output *output, const std::shared_ptr<OutputFrame> &frame)
|
void WaylandEglBackend::present(Output *output, const std::shared_ptr<OutputFrame> &frame)
|
||||||
{
|
{
|
||||||
m_outputs[output].primaryLayer->present();
|
m_outputs[output].primaryLayer->present();
|
||||||
static_cast<WaylandOutput *>(output)->framePending(frame);
|
static_cast<WaylandOutput *>(output)->setPendingFrame(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputLayer *WaylandEglBackend::primaryLayer(Output *output)
|
OutputLayer *WaylandEglBackend::primaryLayer(Output *output)
|
||||||
|
|
|
@ -145,7 +145,7 @@ WaylandOutput::~WaylandOutput()
|
||||||
m_surface.reset();
|
m_surface.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WaylandOutput::framePending(const std::shared_ptr<OutputFrame> &frame)
|
void WaylandOutput::setPendingFrame(const std::shared_ptr<OutputFrame> &frame)
|
||||||
{
|
{
|
||||||
m_frame = frame;
|
m_frame = frame;
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ public:
|
||||||
void updateDpmsMode(DpmsMode dpmsMode);
|
void updateDpmsMode(DpmsMode dpmsMode);
|
||||||
void updateEnabled(bool enabled);
|
void updateEnabled(bool enabled);
|
||||||
|
|
||||||
void framePending(const std::shared_ptr<OutputFrame> &frame);
|
void setPendingFrame(const std::shared_ptr<OutputFrame> &frame);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handleConfigure(const QSize &size, KWayland::Client::XdgShellSurface::States states, quint32 serial);
|
void handleConfigure(const QSize &size, KWayland::Client::XdgShellSurface::States states, quint32 serial);
|
||||||
|
|
|
@ -167,7 +167,7 @@ GraphicsBufferAllocator *WaylandQPainterBackend::graphicsBufferAllocator() const
|
||||||
void WaylandQPainterBackend::present(Output *output, const std::shared_ptr<OutputFrame> &frame)
|
void WaylandQPainterBackend::present(Output *output, const std::shared_ptr<OutputFrame> &frame)
|
||||||
{
|
{
|
||||||
m_outputs[output].primaryLayer->present();
|
m_outputs[output].primaryLayer->present();
|
||||||
static_cast<WaylandOutput *>(output)->framePending(frame);
|
static_cast<WaylandOutput *>(output)->setPendingFrame(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
OutputLayer *WaylandQPainterBackend::primaryLayer(Output *output)
|
OutputLayer *WaylandQPainterBackend::primaryLayer(Output *output)
|
||||||
|
|
Loading…
Reference in a new issue