• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016 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 #ifndef ANDROID_GUI_FRAMETIMESTAMPS_H
18 #define ANDROID_GUI_FRAMETIMESTAMPS_H
19 
20 #include <utils/Timers.h>
21 #include <utils/Flattenable.h>
22 
23 namespace android {
24 
25 struct FrameTimestamps : public LightFlattenablePod<FrameTimestamps> {
FrameTimestampsFrameTimestamps26     FrameTimestamps() :
27         frameNumber(0),
28         postedTime(0),
29         acquireTime(0),
30         refreshStartTime(0),
31         glCompositionDoneTime(0),
32         displayRetireTime(0),
33         releaseTime(0) {}
34 
35     uint64_t frameNumber;
36     nsecs_t postedTime;
37     nsecs_t acquireTime;
38     nsecs_t refreshStartTime;
39     nsecs_t glCompositionDoneTime;
40     nsecs_t displayRetireTime;
41     nsecs_t releaseTime;
42 };
43 
44 } // namespace android
45 #endif
46