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
cc / slim / constants.h [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_SLIM_CONSTANTS_H_
#define CC_SLIM_CONSTANTS_H_
#include <cstdint>
// This file contains constants that may turn into settings in the future.
namespace cc::slim {
// Wait for this number of conseuctive begin frame that are not needed before
// stop requesting begin frames. This is to avoid situations where slim keep
// togging begin frame request every frame.
inline constexpr uint32_t kNumUnneededBeginFrameBeforeStop = 4u;
// Max texture size using software mode. This is an arbitrary limit but is meant
// to be similar to the limits on max GPU texture size.
inline constexpr int kSoftwareMaxTextureSize = 16 * 1024;
// Keep tracking of layer occlusion if both x and y dimensions are greater than
// this.
inline constexpr int kMinimumOcclusionTrackingDimension = 160;
} // namespace cc::slim
#endif // CC_SLIM_CONSTANTS_H_