blob: 0d28d7445ff6f3b328c02289a020219119a81f27 (
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
|
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_GL_FEATURES_H_
#define UI_GL_GL_FEATURES_H_
#include "base/feature_list.h"
#include "build/build_config.h"
#include "ui/gl/gl_export.h"
namespace features {
// Controls if GPU should synchronize presentation with vsync.
GL_EXPORT bool UseGpuVsync();
#if BUILDFLAG(IS_ANDROID)
// Use new Android 13 API to obtain and target a frame deadline.
GL_EXPORT BASE_DECLARE_FEATURE(kAndroidFrameDeadline);
#endif
// All features in alphabetical order. The features should be documented
// alongside the definition of their values in the .cc file.
GL_EXPORT BASE_DECLARE_FEATURE(kDefaultPassthroughCommandDecoder);
GL_EXPORT bool IsAndroidFrameDeadlineEnabled();
GL_EXPORT bool UsePassthroughCommandDecoder();
} // namespace features
#endif // UI_GL_GL_FEATURES_H_
|