| Flutter Linux Embedder |

fl_compositor.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "fl_compositor.h"
6
7 G_DEFINE_QUARK(fl_compositor_error_quark, fl_compositor_error)
8
9 G_DEFINE_TYPE(FlCompositor, fl_compositor, G_TYPE_OBJECT)
10
11 static void fl_compositor_class_init(FlCompositorClass* klass) {}
12
13 static void fl_compositor_init(FlCompositor* self) {}
14
15 FlutterRendererType fl_compositor_get_renderer_type(FlCompositor* self) {
16 g_return_val_if_fail(FL_IS_COMPOSITOR(self),
17 static_cast<FlutterRendererType>(0));
18 return FL_COMPOSITOR_GET_CLASS(self)->get_renderer_type(self);
19 }
20
21 void fl_compositor_wait_for_frame(FlCompositor* self,
22 int target_width,
23 int target_height) {
24 g_return_if_fail(FL_IS_COMPOSITOR(self));
25 FL_COMPOSITOR_GET_CLASS(self)->wait_for_frame(self, target_width,
26 target_height);
27 }
28
29 gboolean fl_compositor_present_layers(FlCompositor* self,
30 const FlutterLayer** layers,
31 size_t layers_count) {
32 g_return_val_if_fail(FL_IS_COMPOSITOR(self), FALSE);
33 return FL_COMPOSITOR_GET_CLASS(self)->present_layers(self, layers,
34 layers_count);
35 }
G_DEFINE_TYPE
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
Definition: fl_basic_message_channel.cc:37
G_DEFINE_QUARK
G_DEFINE_QUARK(fl_binary_messenger_codec_error_quark, fl_binary_messenger_codec_error) G_DECLARE_FINAL_TYPE(FlBinaryMessengerImpl
fl_compositor_wait_for_frame
void fl_compositor_wait_for_frame(FlCompositor *self, int target_width, int target_height)
Definition: fl_compositor.cc:21
fl_compositor_class_init
static void fl_compositor_class_init(FlCompositorClass *klass)
Definition: fl_compositor.cc:11
fl_compositor_get_renderer_type
FlutterRendererType fl_compositor_get_renderer_type(FlCompositor *self)
Definition: fl_compositor.cc:15
fl_compositor_present_layers
gboolean fl_compositor_present_layers(FlCompositor *self, const FlutterLayer **layers, size_t layers_count)
Definition: fl_compositor.cc:29
fl_compositor_init
static void fl_compositor_init(FlCompositor *self)
Definition: fl_compositor.cc:13
fl_compositor.h