Flutter Linux Embedder
FlSubsurfaceEGLTest Class Reference
Inheritance diagram for FlSubsurfaceEGLTest:

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
FlSubsurfaceEGL * CreateEGL ()
 

Protected Attributes

::testing::NiceMock< flutter::testing::MockEpoxy > epoxy
 
FlOpenGLManager * opengl_manager = nullptr
 
FlWaylandDisplay * display = nullptr
 
struct wl_surface * parent_surface = nullptr
 
FlSubsurface * subsurface = nullptr
 

Detailed Description

Definition at line 29 of file fl_subsurface_egl_test.cc.

Member Function Documentation

◆ CreateEGL()

FlSubsurfaceEGL* FlSubsurfaceEGLTest::CreateEGL ( )
inlineprotected

Definition at line 55 of file fl_subsurface_egl_test.cc.

55  {
57  kScale);
58  }
FlOpenGLManager * opengl_manager
FlSubsurfaceEGL * fl_subsurface_egl_new(FlOpenGLManager *opengl_manager, FlSubsurface *subsurface, size_t width, size_t height, gint scale)
constexpr size_t kHeight
constexpr size_t kWidth
constexpr gint kScale

References fl_subsurface_egl_new(), kHeight, kScale, kWidth, opengl_manager, and subsurface.

◆ SetUp()

void FlSubsurfaceEGLTest::SetUp ( )
inlineoverrideprotected

Definition at line 31 of file fl_subsurface_egl_test.cc.

31  {
32  // A driver that supports glBlitFramebuffer, which is the path used when
33  // available.
34  ON_CALL(epoxy, glGetString(GL_VENDOR))
35  .WillByDefault(
36  ::testing::Return(reinterpret_cast<const GLubyte*>("Intel")));
37  ON_CALL(epoxy, epoxy_is_desktop_gl).WillByDefault(::testing::Return(true));
38  ON_CALL(epoxy, epoxy_gl_version).WillByDefault(::testing::Return(30));
39 
41  display = fl_wayland_display_open(fl_mock_wayland_get_display());
42  ASSERT_NE(display, nullptr);
43  parent_surface = fl_mock_wayland_get_surface();
45  ASSERT_NE(subsurface, nullptr);
46  }
struct wl_surface * parent_surface
::testing::NiceMock< flutter::testing::MockEpoxy > epoxy
FlWaylandDisplay * display
FlOpenGLManager * fl_opengl_manager_new()
FlSubsurface * fl_wayland_display_create_subsurface(FlWaylandDisplay *self, struct wl_surface *parent_surface)
FlWaylandDisplay * fl_wayland_display_open(struct wl_display *wl_display)

References display, epoxy, fl_opengl_manager_new(), fl_wayland_display_create_subsurface(), fl_wayland_display_open(), opengl_manager, parent_surface, and subsurface.

◆ TearDown()

void FlSubsurfaceEGLTest::TearDown ( )
inlineoverrideprotected

Definition at line 48 of file fl_subsurface_egl_test.cc.

48  {
49  g_clear_object(&subsurface);
50  g_clear_object(&display);
51  g_clear_object(&opengl_manager);
52  fl_mock_wayland_free_surface(parent_surface);
53  }

References display, opengl_manager, parent_surface, and subsurface.

Member Data Documentation

◆ display

FlWaylandDisplay* FlSubsurfaceEGLTest::display = nullptr
protected

Definition at line 62 of file fl_subsurface_egl_test.cc.

Referenced by SetUp(), and TearDown().

◆ epoxy

::testing::NiceMock<flutter::testing::MockEpoxy> FlSubsurfaceEGLTest::epoxy
protected

Definition at line 60 of file fl_subsurface_egl_test.cc.

Referenced by SetUp().

◆ opengl_manager

FlOpenGLManager* FlSubsurfaceEGLTest::opengl_manager = nullptr
protected

Definition at line 61 of file fl_subsurface_egl_test.cc.

Referenced by CreateEGL(), SetUp(), and TearDown().

◆ parent_surface

struct wl_surface* FlSubsurfaceEGLTest::parent_surface = nullptr
protected

Definition at line 63 of file fl_subsurface_egl_test.cc.

Referenced by SetUp(), and TearDown().

◆ subsurface

FlSubsurface* FlSubsurfaceEGLTest::subsurface = nullptr
protected

Definition at line 64 of file fl_subsurface_egl_test.cc.

Referenced by CreateEGL(), SetUp(), and TearDown().


The documentation for this class was generated from the following file: