14 {
15 constexpr int kWidth = 100;
17
22 g_autoptr(FlBackingStoreProvider) backing_store_provider =
24
27
31
37
38 std::array<const FlutterLayer*, 1> layers = {&layer};
39
40 constexpr GLuint kFakeTextureName = 123;
41 glBindTexture(GL_TEXTURE_2D, kFakeTextureName);
42
44 layers.size());
46
47 GLuint texture_2d_binding;
48 glGetIntegerv(GL_TEXTURE_BINDING_2D,
49 reinterpret_cast<GLint*>(&texture_2d_binding));
50 EXPECT_EQ(texture_2d_binding, kFakeTextureName);
51
52 g_object_ref_sink(view);
53}
@ kFlutterLayerContentTypeBackingStore
@ kFlutterBackingStoreTypeOpenGL
FlBackingStoreProvider * fl_backing_store_provider_new(int width, int height)
gboolean fl_renderer_present_layers(FlRenderer *self, const FlutterLayer **layers, size_t layers_count)
gboolean fl_renderer_start(FlRenderer *self, FlView *view)
void fl_renderer_render(FlRenderer *self, int width, int height)
void fl_renderer_wait_for_frame(FlRenderer *self, int target_width, int target_height)
G_MODULE_EXPORT FlView * fl_view_new(FlDartProject *project)
FlutterBackingStoreType type
Specifies the type of backing store.
FlutterOpenGLBackingStore open_gl
The description of the OpenGL backing store.
FlutterLayerContentType type
const FlutterBackingStore * backing_store
FlutterSize size
The size of the layer (in physical pixels).
FlutterOpenGLFramebuffer framebuffer
void * user_data
User data to be returned on the invocation of the destruction callback.