mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
committed by
Christian Helmuth
parent
5e862b2cd3
commit
cfd013a01a
@ -98,8 +98,7 @@ struct Capture::Session : Genode::Session
|
||||
|
||||
Rect rects[NUM_RECTS];
|
||||
|
||||
template <typename FN>
|
||||
void for_each_rect(FN const &fn) const
|
||||
void for_each_rect(auto const &fn) const
|
||||
{
|
||||
for (unsigned i = 0; i < NUM_RECTS; i++)
|
||||
if (rects[i].valid())
|
||||
|
@ -83,11 +83,7 @@ class Capture::Connection::Screen
|
||||
size(size), _connection(connection), _ds(rm, _connection.dataspace())
|
||||
{ }
|
||||
|
||||
template <typename FN>
|
||||
void with_texture(FN const &fn) const
|
||||
{
|
||||
fn(_texture);
|
||||
}
|
||||
void with_texture(auto const &fn) const { fn(_texture); }
|
||||
|
||||
void apply_to_surface(Surface<Pixel> &surface)
|
||||
{
|
||||
|
Reference in New Issue
Block a user