19 #ifndef MIR_GRAPHICS_ANDROID_HWC_LAYERS_H_ 20 #define MIR_GRAPHICS_ANDROID_HWC_LAYERS_H_ 25 #include <hardware/hwcomposer.h> 28 #include <initializer_list> 86 std::shared_ptr<LayerAdapter>
const&,
87 std::shared_ptr<hwc_display_contents_1_t>
const& list,
91 std::shared_ptr<LayerAdapter>
const&,
92 std::shared_ptr<hwc_display_contents_1_t>
const& list,
97 std::shared_ptr<Buffer>
const& buffer);
109 std::shared_ptr<Buffer>
const& buffer);
111 bool is_overlay()
const;
112 bool needs_gl_render()
const;
113 void set_acquirefence();
114 void release_buffer();
115 std::shared_ptr<Buffer> buffer();
118 std::shared_ptr<LayerAdapter> layer_adapter;
119 hwc_layer_1_t* hwc_layer;
120 std::shared_ptr<hwc_display_contents_1_t> hwc_list;
121 hwc_rect_t visible_rect;
122 std::shared_ptr<Buffer> associated_buffer;
Definition: hwc_layers.h:62
All things Mir.
Definition: atomic_callback.h:25
struct MirBufferPackage NativeBuffer
Definition: native_buffer.h:35
Definition: hwc_layers.h:45
LayerType
Definition: hwc_layers.h:42
Definition: hwc_layers.h:82
LayerAdapter & operator=(LayerAdapter const &)=delete
virtual ~LayerAdapter()=default
Definition: hwc_layers.h:46
Definition: hwc_layers.h:47
Definition: hwc_layers.h:44
Definition: hwc_layers.h:50
virtual bool needs_fb_target() const =0
Definition: rectangle.h:33
Definition: hwc_layers.h:69
Definition: android_input_receiver.h:36
Definition: hwc_layers.h:76
virtual void fill_source_crop(hwc_layer_1_t &, geometry::Rectangle const &crop_size) const =0