Clean image types
This commit is contained in:
parent
e7683cd94e
commit
c6d03f16d0
18 changed files with 169 additions and 107 deletions
|
@ -7,6 +7,8 @@
|
|||
#include "SharedMemory.h"
|
||||
#include "WaylandBuffer.h"
|
||||
|
||||
#include "IPlatformWindow.h"
|
||||
|
||||
struct wl_surface;
|
||||
struct xdg_surface;
|
||||
struct xdg_toplevel;
|
||||
|
@ -14,7 +16,7 @@ struct xdg_toplevel;
|
|||
class WaylandEglInterface;
|
||||
class WaylandEglWindowInterface;
|
||||
|
||||
class WaylandSurface
|
||||
class WaylandSurface : public IPlatformWindow
|
||||
{
|
||||
|
||||
public:
|
||||
|
@ -28,9 +30,24 @@ public:
|
|||
|
||||
wl_buffer* drawFrame();
|
||||
|
||||
void drawCheckerboard(int width, int height, int offset);
|
||||
void show() const
|
||||
{
|
||||
map();
|
||||
}
|
||||
|
||||
void map() const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void clear() const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
void paint(mt::Screen* screen) override;
|
||||
|
||||
mt::Window* mWindow{nullptr};
|
||||
|
||||
wl_surface* mSurface{nullptr};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue