scenes/xrender: Remove SceneXRenderShadow::buildQuads()

It's effectively the same as Shadow::buildQuads().
This commit is contained in:
Vlad Zahorodnii 2021-05-21 13:00:54 +03:00
parent 86ce04a7fc
commit 1a464530bd
2 changed files with 0 additions and 13 deletions

View file

@ -960,18 +960,6 @@ void SceneXRenderShadow::layoutShadowRects(QRect& top, QRect& topRight,
bottomRight = QRect(bottomRightQuad.left(), bottomRightQuad.top(), (bottomRightQuad.right()-bottomRightQuad.left()), (bottomRightQuad.bottom()-bottomRightQuad.top()));
}
void SceneXRenderShadow::buildQuads()
{
Shadow::buildQuads();
if (shadowQuads().count() == 0) {
return;
}
QRect stlr, str, strr, srr, sbrr, sbr, sblr, slr;
layoutShadowRects(str, strr, srr, sbrr, sbr, sblr, slr, stlr);
}
bool SceneXRenderShadow::prepareBackend()
{
if (hasDecorationShadow()) {

View file

@ -157,7 +157,6 @@ public:
xcb_render_picture_t picture(ShadowElements element) const;
protected:
void buildQuads() override;
bool prepareBackend() override;
private:
XRenderPicture* m_pictures[ShadowElementsCount];