summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Steven Thomas <steventhomas@google.com> 2020-01-17 01:09:32 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-01-17 01:09:32 +0000
commitf3363964cc3a989e7dd7b15f27923fce90142faa (patch)
tree3ef3b6d874ba3823d543239d2329c086992a61ae /libs/gui/LayerState.cpp
parent2b55c3bf500565beae8058ab694f5e19149e3347 (diff)
parent3172e2028b191ed485385f02a443b1f9b0d730f9 (diff)
Merge "Add plumbing for upcoming setFrameRate() api"
Diffstat (limited to 'libs/gui/LayerState.cpp')
-rw-r--r--libs/gui/LayerState.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/gui/LayerState.cpp b/libs/gui/LayerState.cpp
index 8b448ff3f6..39b4d4bbb6 100644
--- a/libs/gui/LayerState.cpp
+++ b/libs/gui/LayerState.cpp
@@ -110,9 +110,8 @@ status_t layer_state_t::write(Parcel& output) const
}
}
output.writeFloat(shadowRadius);
-
output.writeInt32(frameRateSelectionPriority);
-
+ output.writeFloat(frameRate);
return NO_ERROR;
}
@@ -191,9 +190,8 @@ status_t layer_state_t::read(const Parcel& input)
listeners.emplace_back(listener, callbackIds);
}
shadowRadius = input.readFloat();
-
frameRateSelectionPriority = input.readInt32();
-
+ frameRate = input.readFloat();
return NO_ERROR;
}
@@ -420,6 +418,10 @@ void layer_state_t::merge(const layer_state_t& other) {
what |= eFrameRateSelectionPriority;
frameRateSelectionPriority = other.frameRateSelectionPriority;
}
+ if (other.what & eFrameRateChanged) {
+ what |= eFrameRateChanged;
+ frameRate = other.frameRate;
+ }
if ((other.what & what) != other.what) {
ALOGE("Unmerged SurfaceComposer Transaction properties. LayerState::merge needs updating? "
"other.what=0x%" PRIu64 " what=0x%" PRIu64,