Flutter Engine
The Flutter Engine
mock_renderer.h
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#ifndef FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_RENDERER_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_RENDERER_H_
7
8#include "flutter/shell/platform/linux/fl_renderer.h"
9
10G_BEGIN_DECLS
11
12G_DECLARE_FINAL_TYPE(FlMockRenderer,
13 fl_mock_renderer,
14 FL,
15 MOCK_RENDERER,
16 FlRenderer)
17
18typedef gdouble (*FlMockRendererGetRefreshRate)(FlRenderer* renderer);
19
20FlMockRenderer* fl_mock_renderer_new(
21 FlMockRendererGetRefreshRate get_refresh_rate = nullptr);
22
23G_END_DECLS
24
25#endif // FLUTTER_SHELL_PLATFORM_LINUX_TESTING_MOCK_RENDERER_H_
FlMockRenderer * fl_mock_renderer_new(FlMockRendererGetRefreshRate get_refresh_rate=nullptr)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlMockRenderer, fl_mock_renderer, FL, MOCK_RENDERER, FlRenderer) typedef gdouble(*FlMockRendererGetRefreshRate)(FlRenderer *renderer)