Commit 6f5e8e7a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Introduce SurfaceInterface::hasFrameCallbacks()

The new method can be used to check if the surface has a pending frame

CCBUG: 428499

(cherry picked from commit 798cfae3)
parent 389ac518
Pipeline #49480 passed with stage
in 7 minutes and 10 seconds
......@@ -422,6 +422,11 @@ void SurfaceInterface::frameRendered(quint32 msec)
bool SurfaceInterface::hasFrameCallbacks() const
return !d->current.frameCallbacks.isEmpty();
QMatrix4x4 SurfaceInterfacePrivate::buildSurfaceToBufferMatrix(const State *state)
// The order of transforms is reversed, i.e. the viewport transform is the first one.
......@@ -159,6 +159,7 @@ public:
QMatrix4x4 surfaceToBufferMatrix() const;
void frameRendered(quint32 msec);
bool hasFrameCallbacks() const;
QRegion damage() const;
QRegion opaque() const;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment