core: support offline web applet
This commit is contained in:
parent
8a146469c0
commit
68303ed601
32 changed files with 470 additions and 58 deletions
|
@ -198,6 +198,16 @@ bool Nvnflinger::CloseLayer(u64 layer_id) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void Nvnflinger::SetLayerVisibility(u64 layer_id, bool visible) {
|
||||
const auto lock_guard = Lock();
|
||||
|
||||
for (auto& display : displays) {
|
||||
if (auto* layer = display.FindLayer(layer_id); layer) {
|
||||
layer->SetVisibility(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Nvnflinger::DestroyLayer(u64 layer_id) {
|
||||
const auto lock_guard = Lock();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue