summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-09-11 14:58:45 -0700
committerLajos Molnar <lajos@google.com>2014-09-18 17:03:20 -0700
commit67d8bd66aaf04805cb8f2616ba964141b865e3b9 (patch)
treedd9b895d2b143726b92abe10f3634dde28f4e49b /include/ui
parent5bbf73ced30c168176fbcf87b15021ecca2fb90e (diff)
downloadframeworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.zip
frameworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.tar.gz
frameworks_native-67d8bd66aaf04805cb8f2616ba964141b865e3b9.tar.bz2
surfaceflinger: add getDisplayStats() method
This is used by media service to schedule video frames at the proper time, based on precise vsync timings. Bug: 14659809 Change-Id: I1a90603f3dc09dca9aa4f90a3aa845fab56e0a5e
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/DisplayStatInfo.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/ui/DisplayStatInfo.h b/include/ui/DisplayStatInfo.h
new file mode 100644
index 0000000..0549a83
--- /dev/null
+++ b/include/ui/DisplayStatInfo.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ANDROID_UI_DISPLAY_STAT_INFO_H
+#define ANDROID_UI_DISPLAY_STAT_INFO_H
+
+#include <utils/Timers.h>
+
+namespace android {
+
+struct DisplayStatInfo {
+ nsecs_t vsyncTime;
+ nsecs_t vsyncPeriod;
+};
+
+}; // namespace android
+
+#endif // ANDROID_COMPOSER_DISPLAY_STAT_INFO_H