Flutter Engine
The Flutter Engine
Functions
mock_renderer.h File Reference
#include "flutter/shell/platform/linux/fl_renderer.h"

Go to the source code of this file.

Functions

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE (FlMockRenderer, fl_mock_renderer, FL, MOCK_RENDERER, FlRenderer) typedef gdouble(*FlMockRendererGetRefreshRate)(FlRenderer *renderer)
 
FlMockRenderer * fl_mock_renderer_new (FlMockRendererGetRefreshRate get_refresh_rate=nullptr)
 

Function Documentation

◆ fl_mock_renderer_new()

FlMockRenderer * fl_mock_renderer_new ( FlMockRendererGetRefreshRate  get_refresh_rate = nullptr)

Definition at line 44 of file mock_renderer.cc.

45 {
46 FlMockRenderer* fl_mock_renderer = FL_MOCK_RENDERER(
47 g_object_new_valist(fl_mock_renderer_get_type(), nullptr, nullptr));
48 fl_mock_renderer->get_refresh_rate = get_refresh_rate;
49 return fl_mock_renderer;
50}

◆ G_DECLARE_FINAL_TYPE()

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE ( FlMockRenderer  ,
fl_mock_renderer  ,
FL  ,
MOCK_RENDERER  ,
FlRenderer   
)