Loading core/java/android/view/ViewRootImpl.java +13 −0 Original line number Diff line number Diff line Loading @@ -2449,6 +2449,19 @@ public final class ViewRootImpl implements ViewParent, if (updateBoundsLayer(t)) { applyTransactionOnDraw(t); } // Set the frame rate selection strategy to FRAME_RATE_SELECTION_STRATEGY_SELF // This strategy ensures that the frame rate specifications do not cascade down to // the descendant layers. This is particularly important for applications like Chrome, // where child surfaces should adhere to default behavior instead of no preference if (sToolkitSetFrameRateReadOnlyFlagValue) { try { mFrameRateTransaction.setFrameRateSelectionStrategy(sc, sc.FRAME_RATE_SELECTION_STRATEGY_SELF).applyAsyncUnsafe(); } catch (Exception e) { Log.e(mTag, "Unable to set frame rate selection strategy ", e); } } } private void destroySurface() { Loading Loading
core/java/android/view/ViewRootImpl.java +13 −0 Original line number Diff line number Diff line Loading @@ -2449,6 +2449,19 @@ public final class ViewRootImpl implements ViewParent, if (updateBoundsLayer(t)) { applyTransactionOnDraw(t); } // Set the frame rate selection strategy to FRAME_RATE_SELECTION_STRATEGY_SELF // This strategy ensures that the frame rate specifications do not cascade down to // the descendant layers. This is particularly important for applications like Chrome, // where child surfaces should adhere to default behavior instead of no preference if (sToolkitSetFrameRateReadOnlyFlagValue) { try { mFrameRateTransaction.setFrameRateSelectionStrategy(sc, sc.FRAME_RATE_SELECTION_STRATEGY_SELF).applyAsyncUnsafe(); } catch (Exception e) { Log.e(mTag, "Unable to set frame rate selection strategy ", e); } } } private void destroySurface() { Loading