lib/third_party/tracing/extras/chrome/cc/input_latency_async_slice.js
function(slice, flowEvents) {
      var fromOtherInputs = false;

      slice.iterateEntireHierarchy(function(subsequentSlice) {
        if (fromOtherInputs)
          return;

        subsequentSlice.inFlowEvents.forEach(function(inflow) {
          if (fromOtherInputs)
            return;

          if (inflow.category.indexOf('input') > -1) {
            if (flowEvents.indexOf(inflow) === -1)
              fromOtherInputs = true;
          }
        }, this);
      }, this);

      return fromOtherInputs;
    }
function(slice, flowEvents) {
      var fromOtherInputs = false;

      slice.iterateEntireHierarchy(function(subsequentSlice) {
        if (fromOtherInputs)
          return;

        subsequentSlice.inFlowEvents.forEach(function(inflow) {
          if (fromOtherInputs)
            return;

          if (inflow.category.indexOf('input') > -1) {
            if (flowEvents.indexOf(inflow) === -1)
              fromOtherInputs = true;
          }
        }, this);
      }, this);

      return fromOtherInputs;
    }
function ( slice , flowEvents ) { var fromOtherInputs = false ; slice . iterateEntireHierarchy ( function ( subsequentSlice ) { if ( fromOtherInputs ) return ; subsequentSlice . inFlowEvents . forEach ( function ( inflow ) { if ( fromOtherInputs ) return ; if ( inflow . category . indexOf ( 'input' ) > - 1 ) { if ( flowEvents . indexOf ( inflow ) === - 1 ) fromOtherInputs = true ; } } , this ) ; } , this ) ; return fromOtherInputs ; }
Return true if the slice hierarchy is tracked by LatencyInfo of other input latency events. If the slice hierarchy is tracked by both, this function still returns true.
Return true if the slice hierarchy is tracked by LatencyInfo of other input latency events . If the slice hierarchy is tracked by both this function still returns true .