Lines Matching refs:frameRate

105 TimeStats::SetFrameRateVote frameRateToSetFrameRateVotePayload(Layer::FrameRate frameRate) {  in frameRateToSetFrameRateVotePayload()  argument
108 const auto frameRateCompatibility = [frameRate] { in frameRateToSetFrameRateVotePayload()
109 switch (frameRate.vote.type) { in frameRateToSetFrameRateVotePayload()
119 const auto seamlessness = [frameRate] { in frameRateToSetFrameRateVotePayload()
120 switch (frameRate.vote.seamlessness) { in frameRateToSetFrameRateVotePayload()
130 return TimeStats::SetFrameRateVote{.frameRate = frameRate.vote.rate.getValue(), in frameRateToSetFrameRateVotePayload()
1244 const auto frameRate = [&] { in propagateFrameRateForLayerTree() local
1249 if (mDrawingState.frameRate.isValid()) { in propagateFrameRateForLayerTree()
1250 return mDrawingState.frameRate; in propagateFrameRateForLayerTree()
1257 *transactionNeeded |= setFrameRateForLayerTreeLegacy(frameRate, now); in propagateFrameRateForLayerTree()
1265 child->propagateFrameRateForLayerTree(canPropagateFrameRate ? frameRate in propagateFrameRateForLayerTree()
1272 if (!frameRate.isValid() && childrenHaveFrameRate) { in propagateFrameRateForLayerTree()
1282 frameRate.vote.rate.isValid() && frameRate.vote.type == FrameRateCompatibility::Default; in propagateFrameRateForLayerTree()
1283 const auto layerVotedWithNoVote = frameRate.vote.type == FrameRateCompatibility::NoVote; in propagateFrameRateForLayerTree()
1284 const auto layerVotedWithCategory = frameRate.category != FrameRateCategory::Default; in propagateFrameRateForLayerTree()
1286 frameRate.vote.rate.isValid() && frameRate.vote.type == FrameRateCompatibility::Exact; in propagateFrameRateForLayerTree()
1310 if (mDrawingState.frameRate.vote == frameRateVote) { in setFrameRate()
1315 mDrawingState.frameRate.vote = frameRateVote; in setFrameRate()
1325 if (mDrawingState.frameRate.category == category && in setFrameRateCategory()
1326 mDrawingState.frameRate.categorySmoothSwitchOnly == smoothSwitchOnly) { in setFrameRateCategory()
1331 mDrawingState.frameRate.category = category; in setFrameRateCategory()
1332 mDrawingState.frameRate.categorySmoothSwitchOnly = smoothSwitchOnly; in setFrameRateCategory()
1486 bool Layer::setFrameRateForLayerTreeLegacy(FrameRate frameRate, nsecs_t now) { in setFrameRateForLayerTreeLegacy() argument
1487 if (mDrawingState.frameRateForLayerTree == frameRate) { in setFrameRateForLayerTreeLegacy()
1491 mDrawingState.frameRateForLayerTree = frameRate; in setFrameRateForLayerTreeLegacy()
1505 bool Layer::setFrameRateForLayerTree(FrameRate frameRate, const scheduler::LayerProps& layerProps, in setFrameRateForLayerTree() argument
1507 if (mDrawingState.frameRateForLayerTree == frameRate) { in setFrameRateForLayerTree()
1511 mDrawingState.frameRateForLayerTree = frameRate; in setFrameRateForLayerTree()
1618 const auto frameRate = getFrameRateForLayerTree(); in miniDumpLegacy() local
1619 if (frameRate.vote.rate.isValid() || frameRate.vote.type != FrameRateCompatibility::Default) { in miniDumpLegacy()
1620 StringAppendF(&result, "%s %15s %17s", to_string(frameRate.vote.rate).c_str(), in miniDumpLegacy()
1621 ftl::enum_string(frameRate.vote.type).c_str(), in miniDumpLegacy()
1622 ftl::enum_string(frameRate.vote.seamlessness).c_str()); in miniDumpLegacy()
1653 const auto frameRate = snapshot.frameRate; in miniDump() local
1655 if (frameRate.vote.rate.isValid()) { in miniDump()
1656 StringAppendF(&frameRateStr, "%.2f", frameRate.vote.rate.getValue()); in miniDump()
1658 if (frameRate.vote.rate.isValid() || frameRate.vote.type != FrameRateCompatibility::Default) { in miniDump()
1660 ftl::enum_string(frameRate.vote.type).c_str(), in miniDump()
1661 ftl::enum_string(frameRate.vote.seamlessness).c_str()); in miniDump()
1662 } else if (frameRate.category != FrameRateCategory::Default) { in miniDump()
1664 (std::string("Cat::") + ftl::enum_string(frameRate.category)).c_str(), in miniDump()
1665 ftl::enum_string(frameRate.vote.seamlessness).c_str()); in miniDump()