MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / to_texture

Method to_texture

src/view/wlr-surface-node.cpp:430–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430std::optional<wf::texture_t> wf::scene::wlr_surface_node_t::to_texture() const
431{
432 if (this->current_state.current_buffer)
433 {
434 return wf::texture_t{current_state.texture, current_state.src_viewport, current_state.transform};
435 }
436
437 return {};
438}
439
440// Idea of handling output enter/leave events: when the event comes, we store the number of enters/leaves
441// for outputs and update them on the next idle. The idea is to cache together multiple events, which may

Callers 1

renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected