1 /*
2  * Copyright 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 namespace android::scheduler {
20 // FrameRateCompatibility specifies how we should interpret the frame rate associated with
21 // the layer.
22 enum class FrameRateCompatibility {
23     Default, // Layer didn't specify any specific handling strategy
24 
25     Min, // Layer needs the minimum frame rate.
26 
27     Exact, // Layer needs the exact frame rate.
28 
29     ExactOrMultiple, // Layer needs the exact frame rate (or a multiple of it) to present the
30                      // content properly. Any other value will result in a pull down.
31 
32     Gte, // Layer needs greater than or equal to the frame rate.
33 
34     NoVote, // Layer doesn't have any requirements for the refresh rate and
35             // should not be considered when the display refresh rate is determined.
36 
37     ftl_last = NoVote
38 };
39 
40 } // namespace android::scheduler
41