Commit ce92ac74 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Merge SurfaceInterfacePrivate::commit() and SurfaceInterfacePrivate::surface_commit()

This removes an unnecessary layer of indirection.
parent c2f0db4a
......@@ -317,7 +317,11 @@ void SurfaceInterfacePrivate::surface_set_input_region(Resource *resource, struc
void SurfaceInterfacePrivate::surface_commit(Resource *resource)
{
Q_UNUSED(resource)
commit();
if (subSurface) {
commitSubSurface();
} else {
applyState(&pending);
}
}
void SurfaceInterfacePrivate::surface_set_buffer_transform(Resource *resource, int32_t transform)
......@@ -667,15 +671,6 @@ void SurfaceInterfacePrivate::applyState(SurfaceState *next)
Q_EMIT q->committed();
}
void SurfaceInterfacePrivate::commit()
{
if (subSurface) {
commitSubSurface();
} else {
applyState(&pending);
}
}
void SurfaceInterfacePrivate::commitSubSurface()
{
if (subSurface->isSynchronized()) {
......
......@@ -99,7 +99,6 @@ public:
void commitToCache();
void commitFromCache();
void commit();
void commitSubSurface();
QMatrix4x4 buildSurfaceToBufferMatrix(const SurfaceState *state);
void applyState(SurfaceState *next);
......
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