Flutter Engine
 
Loading...
Searching...
No Matches
mock_renderable.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
6
9};
10
11static void mock_renderable_iface_init(FlRenderableInterface* iface);
12
13G_DEFINE_TYPE_WITH_CODE(FlMockRenderable,
14 fl_mock_renderable,
15 g_object_get_type(),
16 G_IMPLEMENT_INTERFACE(fl_renderable_get_type(),
18
19static void mock_renderable_present_layers(FlRenderable* renderable,
21 size_t layers_count) {}
22
23static void mock_renderable_iface_init(FlRenderableInterface* iface) {
24 iface->present_layers = mock_renderable_present_layers;
25}
26
27static void fl_mock_renderable_class_init(FlMockRenderableClass* klass) {}
28
29static void fl_mock_renderable_init(FlMockRenderable* self) {}
30
31// Creates a sub renderable.
32FlMockRenderable* fl_mock_renderable_new() {
33 return FL_MOCK_RENDERABLE(
34 g_object_new(fl_mock_renderable_get_type(), nullptr));
35}
const FlutterLayer size_t layers_count
const FlutterLayer ** layers
G_DEFINE_TYPE_WITH_CODE(FlMockRenderable, fl_mock_renderable, g_object_get_type(), G_IMPLEMENT_INTERFACE(fl_renderable_get_type(), mock_renderable_iface_init)) static void mock_renderable_present_layers(FlRenderable *renderable
static void mock_renderable_iface_init(FlRenderableInterface *iface)