Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2420b30 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Turn on hole punch for PIP with caching" into sc-dev am: c8451025 am:...

Merge "Turn on hole punch for PIP with caching" into sc-dev am: c8451025 am: db845f1e am: 7a52193d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/14704339

Change-Id: I70a00598cf85245d4fa631bc663912380e00018f
parents 82adab51 7a52193d
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -30,10 +30,11 @@
namespace android::compositionengine::impl::planner {

Planner::Planner()
      : mFlattener(base::GetBoolProperty(std::string("debug.sf.enable_hole_punch_pip"), false)) {
    // Implicitly, layer caching must also be enabled.
      // Implicitly, layer caching must also be enabled for the hole punch or
      // predictor to have any effect.
      // E.g., setprop debug.sf.enable_layer_caching 1, or
      // adb shell service call SurfaceFlinger 1040 i32 1 [i64 <display ID>]
      : mFlattener(base::GetBoolProperty(std::string("debug.sf.enable_hole_punch_pip"), true)) {
    mPredictorEnabled =
            base::GetBoolProperty(std::string("debug.sf.enable_planner_prediction"), false);
}