Home
last modified time | relevance | path

Searched refs:GRSurface (Results 1 – 16 of 16) sorted by relevance

/bootable/recovery/recovery_ui/include/recovery_ui/
Dscreen_ui.h32 class GRSurface; variable
63 virtual void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx,
70 virtual void DrawTextIcon(int x, int y, const GRSurface* surface) const = 0;
170 GraphicMenu(const GRSurface* graphic_headers, const std::vector<const GRSurface*>& graphic_items,
179 static bool Validate(size_t max_width, size_t max_height, const GRSurface* graphic_headers,
180 const std::vector<const GRSurface*>& graphic_items);
184 const GRSurface* surface);
188 std::unique_ptr<GRSurface> graphic_headers_;
189 std::vector<std::unique_ptr<GRSurface>> graphic_items_;
272 virtual std::unique_ptr<Menu> CreateMenu(const GRSurface* graphic_header,
[all …]
Dvr_ui.h36 void DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx,
41 void DrawTextIcon(int x, int y, const GRSurface* surface) const override;
Dwear_ui.h35 std::vector<std::unique_ptr<GRSurface>> progress_frames_;
36 std::vector<std::unique_ptr<GRSurface>> rtl_progress_frames_;
/bootable/recovery/minui/include/minui/
Dminui.h35 class GRSurface {
39 virtual ~GRSurface() = default;
45 static std::unique_ptr<GRSurface> Create(size_t width, size_t height, size_t row_bytes,
49 std::unique_ptr<GRSurface> Clone() const;
56 return const_cast<const uint8_t*>(const_cast<GRSurface*>(this)->data()); in data()
69 GRSurface(size_t width, size_t height, size_t row_bytes, size_t pixel_bytes) in GRSurface() function
83 DISALLOW_COPY_AND_ASSIGN(GRSurface);
87 GRSurface* texture;
139 void gr_texticon(int x, int y, const GRSurface* icon);
149 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy);
[all …]
/bootable/recovery/tests/unit/
Dminui_test.cpp28 auto surface = GRSurface::Create(9, 11, 9, 1); in TEST()
30 ASSERT_EQ(0, reinterpret_cast<uintptr_t>(surface->data()) % GRSurface::kSurfaceDataAlignment); in TEST()
32 ASSERT_EQ(0, surface->data_size() % GRSurface::kSurfaceDataAlignment); in TEST()
37 ASSERT_FALSE(GRSurface::Create(9, 11, 0, 1)); in TEST()
38 ASSERT_FALSE(GRSurface::Create(9, 0, 9, 1)); in TEST()
39 ASSERT_FALSE(GRSurface::Create(0, 11, 9, 1)); in TEST()
40 ASSERT_FALSE(GRSurface::Create(9, 11, 9, 0)); in TEST()
41 ASSERT_FALSE(GRSurface::Create(9, 101, std::numeric_limits<size_t>::max() / 100, 1)); in TEST()
45 auto image = GRSurface::Create(50, 10, 50, 1); in TEST()
Dscreen_ui_test.cpp54 void DrawSurface(const GRSurface* /* surface */, int /* sx */, int /* sy */, int /* w */, in DrawSurface() argument
57 void DrawTextIcon(int /* x */, int /* y */, const GRSurface* /* surface */) const override {} in DrawTextIcon()
234 auto image = GRSurface::Create(50, 50, 50, 1); in TEST_F()
236 std::vector<const GRSurface*> items = { in TEST_F()
261 auto image = GRSurface::Create(50, 50, 50, 1); in TEST_F()
263 std::vector<const GRSurface*> items = { in TEST_F()
272 auto wide_surface = GRSurface::Create(300, 50, 300, 1); in TEST_F()
Dresources_test.cpp75 GRSurface** frames; in TEST()
/bootable/recovery/minui/
Dgraphics_fbdev.h31 class GRSurfaceFbdev : public GRSurface {
42 using GRSurface::GRSurface;
56 GRSurface* Init() override;
57 GRSurface* Flip() override;
Dresources.cpp43 std::unique_ptr<GRSurface> GRSurface::Create(size_t width, size_t height, size_t row_bytes, in Create()
49 auto result = std::unique_ptr<GRSurface>(new GRSurface(width, height, row_bytes, pixel_bytes)); in Create()
59 std::unique_ptr<GRSurface> GRSurface::Clone() const { in Clone()
60 auto result = GRSurface::Create(width, height, row_bytes, pixel_bytes); in Clone()
211 int res_create_display_surface(const char* name, GRSurface** pSurface) { in res_create_display_surface()
221 auto surface = GRSurface::Create(width, height, width * 4, 4); in res_create_display_surface()
246 GRSurface*** pSurface) { in res_create_multi_display_surface()
274 GRSurface** surface = nullptr; in res_create_multi_display_surface()
287 surface = static_cast<GRSurface**>(calloc(*frames, sizeof(GRSurface*))); in res_create_multi_display_surface()
293 auto created_surface = GRSurface::Create(width, height / *frames, width * 4, 4); in res_create_multi_display_surface()
[all …]
Dgraphics_drm.h29 class GRSurfaceDrm : public GRSurface {
45 : GRSurface(width, height, row_bytes, pixel_bytes), drm_fd_(drm_fd), handle(handle) {} in GRSurfaceDrm()
59 GRSurface* Init() override;
60 GRSurface* Flip() override;
Dgraphics.h31 virtual GRSurface* Init() = 0;
35 virtual GRSurface* Flip() = 0;
Dgraphics.cpp41 static GRSurface* gr_draw = nullptr;
167 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt()
234 void gr_texticon(int x, int y, const GRSurface* icon) { in gr_texticon()
306 void gr_blit(const GRSurface* source, int sx, int sy, int w, int h, int dx, int dy) { in gr_blit()
348 unsigned int gr_get_width(const GRSurface* surface) { in gr_get_width()
355 unsigned int gr_get_height(const GRSurface* surface) { in gr_get_height()
Dgraphics_fbdev.cpp71 GRSurface* MinuiBackendFbdev::Init() { in Init()
152 GRSurface* MinuiBackendFbdev::Flip() { in Flip()
Dgraphics_drm.cpp333 GRSurface* MinuiBackendDrm::Init() { in Init()
423 GRSurface* MinuiBackendDrm::Flip() { in Flip()
424 GRSurface* surface = NULL; in Flip()
/bootable/recovery/recovery_ui/
Dscreen_ui.cpp206 GraphicMenu::GraphicMenu(const GRSurface* graphic_headers, in GraphicMenu()
207 const std::vector<const GRSurface*>& graphic_items, in GraphicMenu()
266 bool GraphicMenu::Validate(size_t max_width, size_t max_height, const GRSurface* graphic_headers, in Validate()
267 const std::vector<const GRSurface*>& graphic_items) { in Validate()
285 const GRSurface* surface) { in ValidateGraphicSurface()
354 const GRSurface* ScreenRecoveryUI::GetCurrentFrame() const { in GetCurrentFrame()
361 const GRSurface* ScreenRecoveryUI::GetCurrentText() const { in GetCurrentText()
536 std::unordered_map<std::string, std::unique_ptr<GRSurface>> surfaces; in SelectAndShowBackgroundText()
617 void ScreenRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, in DrawSurface()
635 void ScreenRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon()
[all …]
Dvr_ui.cpp37 void VrRecoveryUI::DrawSurface(const GRSurface* surface, int sx, int sy, int w, int h, int dx, in DrawSurface()
43 void VrRecoveryUI::DrawTextIcon(int x, int y, const GRSurface* surface) const { in DrawTextIcon()