summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-08-24 18:18:19 -0700
committer Ady Abraham <adyabr@google.com> 2020-09-16 10:04:12 -0700
commit74e17562e4166e11c2e4f33126088c5ed35ea0e7 (patch)
tree0f2c1593ecb62de6dd3cf3425c90f9a5aaa8dc89 /services/surfaceflinger/Layer.cpp
parent934e82a98dd5a528bef61e035db412963f9ab5f3 (diff)
SurfaceFlinger: Shared timeline plumbing
Add plumbing to get shared timeline data from Surface Flinger to HWUI and back. Bug: 162890382 Bug: 162888881 Test: SF unit tests Change-Id: Ifb76e6bf28d43c051e6c8ff568437ec9a106b865
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index eced6bdbe2..152c044ceb 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1435,6 +1435,10 @@ bool Layer::setFrameRate(FrameRate frameRate) {
return true;
}
+void Layer::setFrameTimelineVsync(int64_t frameTimelineVsyncId) {
+ mFrameTimelineVsyncId = frameTimelineVsyncId;
+}
+
Layer::FrameRate Layer::getFrameRateForLayerTree() const {
const auto frameRate = getDrawingState().frameRate;
if (frameRate.rate > 0 || frameRate.type == FrameRateCompatibility::NoVote) {