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

Method get_texture

src/render.cpp:197–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197wlr_texture*wf::auxilliary_buffer_t::get_texture()
198{
199 wf::dassert(buffer.get_buffer(), "No buffer allocated yet!");
200 if (!texture)
201 {
202 texture = wlr_texture_from_buffer(wf::get_core().renderer, buffer.get_buffer());
203 }
204
205 return texture;
206}
207
208wf::render_buffer_t wf::auxilliary_buffer_t::get_renderbuffer() const
209{

Callers 1

blitMethod · 0.45

Calls 2

dassertFunction · 0.85
get_bufferMethod · 0.45

Tested by

no test coverage detected