blob: e4fd28577a88721c62539b2692e9db075de54410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_EXO_WAYLAND_CLIENTS_SIMPLE_H_
#define COMPONENTS_EXO_WAYLAND_CLIENTS_SIMPLE_H_
#include "base/time/time.h"
#include "components/exo/wayland/clients/client_base.h"
namespace exo {
namespace wayland {
namespace clients {
class Simple : public wayland::clients::ClientBase {
public:
Simple();
struct PresentationFeedback {
// Total presentation latency of all presented frames.
base::TimeDelta total_presentation_latency;
// Number of presented frames.
uint32_t num_frames_presented = 0;
};
void Run(int frames,
const bool log_vsync_timing_updates = false,
PresentationFeedback* feedback = nullptr);
private:
DISALLOW_COPY_AND_ASSIGN(Simple);
};
} // namespace clients
} // namespace wayland
} // namespace exo
#endif // COMPONENTS_EXO_WAYLAND_CLIENTS_SIMPLE_H_
|