Merge SurfaceInterfacePrivate::commit() and SurfaceInterfacePrivate::surface_commit()
This removes an unnecessary layer of indirection.
This commit is contained in:
parent
c2f0db4a92
commit
ce92ac7451
2 changed files with 5 additions and 11 deletions
|
@ -317,7 +317,11 @@ void SurfaceInterfacePrivate::surface_set_input_region(Resource *resource, struc
|
||||||
void SurfaceInterfacePrivate::surface_commit(Resource *resource)
|
void SurfaceInterfacePrivate::surface_commit(Resource *resource)
|
||||||
{
|
{
|
||||||
Q_UNUSED(resource)
|
Q_UNUSED(resource)
|
||||||
commit();
|
if (subSurface) {
|
||||||
|
commitSubSurface();
|
||||||
|
} else {
|
||||||
|
applyState(&pending);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceInterfacePrivate::surface_set_buffer_transform(Resource *resource, int32_t transform)
|
void SurfaceInterfacePrivate::surface_set_buffer_transform(Resource *resource, int32_t transform)
|
||||||
|
@ -667,15 +671,6 @@ void SurfaceInterfacePrivate::applyState(SurfaceState *next)
|
||||||
Q_EMIT q->committed();
|
Q_EMIT q->committed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceInterfacePrivate::commit()
|
|
||||||
{
|
|
||||||
if (subSurface) {
|
|
||||||
commitSubSurface();
|
|
||||||
} else {
|
|
||||||
applyState(&pending);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void SurfaceInterfacePrivate::commitSubSurface()
|
void SurfaceInterfacePrivate::commitSubSurface()
|
||||||
{
|
{
|
||||||
if (subSurface->isSynchronized()) {
|
if (subSurface->isSynchronized()) {
|
||||||
|
|
|
@ -99,7 +99,6 @@ public:
|
||||||
void commitToCache();
|
void commitToCache();
|
||||||
void commitFromCache();
|
void commitFromCache();
|
||||||
|
|
||||||
void commit();
|
|
||||||
void commitSubSurface();
|
void commitSubSurface();
|
||||||
QMatrix4x4 buildSurfaceToBufferMatrix(const SurfaceState *state);
|
QMatrix4x4 buildSurfaceToBufferMatrix(const SurfaceState *state);
|
||||||
void applyState(SurfaceState *next);
|
void applyState(SurfaceState *next);
|
||||||
|
|
Loading…
Reference in a new issue