Commit 798cfae3 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
callback.

CCBUG: 428499
parent f0e06fa7
Pipeline #49479 passed with stage
in 6 minutes and 55 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