Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 610 Lines • ▼ Show 20 Line(s) | 569 | { | |||
---|---|---|---|---|---|
611 | m_cursorTexture->render(QRegion(cursorRect), cursorRect); | 611 | m_cursorTexture->render(QRegion(cursorRect), cursorRect); | ||
612 | m_cursorTexture->unbind(); | 612 | m_cursorTexture->unbind(); | ||
613 | 613 | | |||
614 | cursor->markAsRendered(); | 614 | cursor->markAsRendered(); | ||
615 | 615 | | |||
616 | glDisable(GL_BLEND); | 616 | glDisable(GL_BLEND); | ||
617 | } | 617 | } | ||
618 | 618 | | |||
619 | void SceneOpenGL::aboutToStartPainting(const QRegion &damage) | ||||
620 | { | ||||
621 | m_backend->aboutToStartPainting(damage); | ||||
622 | } | ||||
623 | | ||||
619 | qint64 SceneOpenGL::paint(const QRegion &damage, const QList<Toplevel *> &toplevels) | 624 | qint64 SceneOpenGL::paint(const QRegion &damage, const QList<Toplevel *> &toplevels) | ||
620 | { | 625 | { | ||
621 | // actually paint the frame, flushed with the NEXT frame | 626 | // actually paint the frame, flushed with the NEXT frame | ||
622 | createStackingOrder(toplevels); | 627 | createStackingOrder(toplevels); | ||
623 | 628 | | |||
624 | // After this call, updateRegion will contain the damaged region in the | 629 | // After this call, updateRegion will contain the damaged region in the | ||
625 | // back buffer. This is the region that needs to be posted to repair | 630 | // back buffer. This is the region that needs to be posted to repair | ||
626 | // the front buffer. It doesn't include the additional damage returned | 631 | // the front buffer. It doesn't include the additional damage returned | ||
▲ Show 20 Lines • Show All 2096 Lines • Show Last 20 Lines |