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 gboolean fl_compositor_present_layers(FlCompositor* self,
16  const FlutterLayer** layers,
17  size_t layers_count) {
18  g_return_val_if_fail(FL_IS_COMPOSITOR(self), FALSE);
19  return FL_COMPOSITOR_GET_CLASS(self)->present_layers(self, layers,
20  layers_count);
21 }
22 
23 void fl_compositor_get_frame_size(FlCompositor* self,
24  size_t* width,
25  size_t* height) {
26  g_return_if_fail(FL_IS_COMPOSITOR(self));
27  return FL_COMPOSITOR_GET_CLASS(self)->get_frame_size(self, width, height);
28 }
29 
30 gboolean fl_compositor_render(FlCompositor* self,
31  cairo_t* cr,
32  GdkWindow* window,
33  gboolean wait_for_frame) {
34  g_return_val_if_fail(FL_IS_COMPOSITOR(self), FALSE);
35  return FL_COMPOSITOR_GET_CLASS(self)->render(self, cr, window,
36  wait_for_frame);
37 }
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
G_DEFINE_QUARK(fl_binary_messenger_codec_error_quark, fl_binary_messenger_codec_error) G_DECLARE_FINAL_TYPE(FlBinaryMessengerImpl
gboolean fl_compositor_render(FlCompositor *self, cairo_t *cr, GdkWindow *window, gboolean wait_for_frame)
void fl_compositor_get_frame_size(FlCompositor *self, size_t *width, size_t *height)
static void fl_compositor_class_init(FlCompositorClass *klass)
gboolean fl_compositor_present_layers(FlCompositor *self, const FlutterLayer **layers, size_t layers_count)
static void fl_compositor_init(FlCompositor *self)
const FlutterLayer size_t layers_count
const FlutterLayer ** layers
self height
self width