#include <vsync_waiter_embedder.h>
Definition at line 13 of file vsync_waiter_embedder.h.
◆ VsyncCallback
◆ VsyncWaiterEmbedder()
Definition at line 9 of file vsync_waiter_embedder.cc.
12 :
VsyncWaiter(task_runners), vsync_callback_(vsync_callback) {
14}
VsyncWaiter(const TaskRunners &task_runners)
#define FML_DCHECK(condition)
◆ ~VsyncWaiterEmbedder()
flutter::VsyncWaiterEmbedder::~VsyncWaiterEmbedder |
( |
| ) |
|
|
overridedefault |
◆ OnEmbedderVsync()
Definition at line 26 of file vsync_waiter_embedder.cc.
30 {
31 if (baton == 0) {
32 return false;
33 }
34
35
36
37
39 [frame_start_time, frame_target_time, baton]() {
40 std::weak_ptr<VsyncWaiter>* weak_waiter =
41 reinterpret_cast<std::weak_ptr<VsyncWaiter>*>(baton);
42 auto vsync_waiter = weak_waiter->lock();
43 delete weak_waiter;
44 if (vsync_waiter) {
45 vsync_waiter->FireCallback(frame_start_time, frame_target_time);
46 }
47 },
48 frame_start_time);
49
50 return true;
51}
fml::RefPtr< fml::TaskRunner > GetUITaskRunner() const
virtual void PostTaskForTime(const fml::closure &task, fml::TimePoint target_time)
The documentation for this class was generated from the following files: