Flutter Engine
Loading...
Searching...
No Matches
vsync_waiter_embedder.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_EMBEDDER_VSYNC_WAITER_EMBEDDER_H_
6
#define FLUTTER_SHELL_PLATFORM_EMBEDDER_VSYNC_WAITER_EMBEDDER_H_
7
8
#include "
flutter/fml/macros.h
"
9
#include "
flutter/shell/common/vsync_waiter.h
"
10
11
namespace
flutter
{
12
13
class
VsyncWaiterEmbedder
final :
public
VsyncWaiter
{
14
public
:
15
using
VsyncCallback
= std::function<void(intptr_t)>;
16
17
VsyncWaiterEmbedder
(
const
VsyncCallback
&
callback
,
18
const
flutter::TaskRunners
& task_runners);
19
20
~VsyncWaiterEmbedder
()
override
;
21
22
static
bool
OnEmbedderVsync
(
const
flutter::TaskRunners
& task_runners,
23
intptr_t baton,
24
fml::TimePoint
frame_start_time,
25
fml::TimePoint
frame_target_time);
26
27
private
:
28
const
VsyncCallback
vsync_callback_;
29
30
// |VsyncWaiter|
31
void
AwaitVSync()
override
;
32
33
FML_DISALLOW_COPY_AND_ASSIGN
(
VsyncWaiterEmbedder
);
34
};
35
36
}
// namespace flutter
37
38
#endif
// FLUTTER_SHELL_PLATFORM_EMBEDDER_VSYNC_WAITER_EMBEDDER_H_
flutter::TaskRunners
Definition
task_runners.h:15
flutter::VsyncWaiterEmbedder
Definition
vsync_waiter_embedder.h:13
flutter::VsyncWaiterEmbedder::OnEmbedderVsync
static bool OnEmbedderVsync(const flutter::TaskRunners &task_runners, intptr_t baton, fml::TimePoint frame_start_time, fml::TimePoint frame_target_time)
Definition
vsync_waiter_embedder.cc:26
flutter::VsyncWaiterEmbedder::~VsyncWaiterEmbedder
~VsyncWaiterEmbedder() override
flutter::VsyncWaiterEmbedder::VsyncCallback
std::function< void(intptr_t)> VsyncCallback
Definition
vsync_waiter_embedder.h:15
flutter::VsyncWaiter
Definition
vsync_waiter.h:24
flutter::VsyncWaiter::VsyncWaiterEmbedder
friend class VsyncWaiterEmbedder
Definition
vsync_waiter.h:42
fml::TimePoint
Definition
time_point.h:22
vsync_waiter.h
callback
FlutterDesktopBinaryReply callback
Definition
flutter_windows_view_unittests.cc:52
macros.h
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
shell
platform
embedder
vsync_waiter_embedder.h
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8