Flutter Engine
mock_renderer.cc File Reference
#include "flutter/shell/platform/linux/testing/mock_renderer.h"

Go to the source code of this file.

Classes

struct  _FlMockRenderer
 

Functions

static gboolean fl_mock_renderer_create_contexts (FlRenderer *renderer, GtkWidget *widget, GdkGLContext **visible, GdkGLContext **resource, GError **error)
 
static gboolean fl_mock_renderer_create_backing_store (FlRenderer *renderer, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out)
 
static gboolean fl_mock_renderer_collect_backing_store (FlRenderer *self, const FlutterBackingStore *backing_store)
 
static gboolean fl_mock_renderer_present_layers (FlRenderer *self, const FlutterLayer **layers, size_t layers_count)
 
static void fl_mock_renderer_class_init (FlMockRendererClass *klass)
 
static void fl_mock_renderer_init (FlMockRenderer *self)
 
FlMockRenderer * fl_mock_renderer_new ()
 

Function Documentation

◆ fl_mock_renderer_class_init()

static void fl_mock_renderer_class_init ( FlMockRendererClass *  klass)
static

Definition at line 44 of file mock_renderer.cc.

References fl_mock_renderer_collect_backing_store(), fl_mock_renderer_create_backing_store(), fl_mock_renderer_create_contexts(), and fl_mock_renderer_present_layers().

44  {
45  FL_RENDERER_CLASS(klass)->create_contexts = fl_mock_renderer_create_contexts;
46  FL_RENDERER_CLASS(klass)->create_backing_store =
48  FL_RENDERER_CLASS(klass)->collect_backing_store =
50  FL_RENDERER_CLASS(klass)->present_layers = fl_mock_renderer_present_layers;
51 }
static gboolean fl_mock_renderer_present_layers(FlRenderer *self, const FlutterLayer **layers, size_t layers_count)
static gboolean fl_mock_renderer_collect_backing_store(FlRenderer *self, const FlutterBackingStore *backing_store)
static gboolean fl_mock_renderer_create_backing_store(FlRenderer *renderer, const FlutterBackingStoreConfig *config, FlutterBackingStore *backing_store_out)
static gboolean fl_mock_renderer_create_contexts(FlRenderer *renderer, GtkWidget *widget, GdkGLContext **visible, GdkGLContext **resource, GError **error)

◆ fl_mock_renderer_collect_backing_store()

static gboolean fl_mock_renderer_collect_backing_store ( FlRenderer *  self,
const FlutterBackingStore backing_store 
)
static

Definition at line 31 of file mock_renderer.cc.

References TRUE.

Referenced by fl_mock_renderer_class_init().

33  {
34  return TRUE;
35 }

◆ fl_mock_renderer_create_backing_store()

static gboolean fl_mock_renderer_create_backing_store ( FlRenderer *  renderer,
const FlutterBackingStoreConfig config,
FlutterBackingStore backing_store_out 
)
static

Definition at line 23 of file mock_renderer.cc.

References TRUE.

Referenced by fl_mock_renderer_class_init().

26  {
27  return TRUE;
28 }

◆ fl_mock_renderer_create_contexts()

static gboolean fl_mock_renderer_create_contexts ( FlRenderer *  renderer,
GtkWidget *  widget,
GdkGLContext **  visible,
GdkGLContext **  resource,
GError **  error 
)
static

Definition at line 14 of file mock_renderer.cc.

References TRUE.

Referenced by fl_mock_renderer_class_init().

18  {
19  return TRUE;
20 }

◆ fl_mock_renderer_init()

static void fl_mock_renderer_init ( FlMockRenderer *  self)
static

Definition at line 53 of file mock_renderer.cc.

53 {}

◆ fl_mock_renderer_new()

FlMockRenderer* fl_mock_renderer_new ( )

Definition at line 56 of file mock_renderer.cc.

Referenced by make_mock_engine(), and make_mock_engine_with_project().

56  {
57  return FL_MOCK_RENDERER(g_object_new(fl_mock_renderer_get_type(), nullptr));
58 }

◆ fl_mock_renderer_present_layers()

static gboolean fl_mock_renderer_present_layers ( FlRenderer *  self,
const FlutterLayer **  layers,
size_t  layers_count 
)
static

Definition at line 38 of file mock_renderer.cc.

References TRUE.

Referenced by fl_mock_renderer_class_init().

40  {
41  return TRUE;
42 }