chromium/third_party/blink/renderer/platform/scheduler/common/features.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/scheduler/common/features.h"

#include "base/command_line.h"
#include "components/miracle_parameter/common/public/miracle_parameter.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/switches.h"

namespace blink {
namespace scheduler {

namespace {

enum class PolicyOverride {};

bool g_intensive_wake_up_throttling_policy_override_cached_ =;

// Returns the IntensiveWakeUpThrottling policy settings. This is checked once
// on first access and cached. Note that that this is *not* thread-safe!
PolicyOverride GetIntensiveWakeUpThrottlingPolicyOverride() {}

}  // namespace

void ClearIntensiveWakeUpThrottlingPolicyOverrideCacheForTesting() {}

bool IsIntensiveWakeUpThrottlingEnabled() {}

// If a policy override is specified then stick to the published defaults so
// that admins get consistent behaviour that clients can't override. Otherwise
// use the base::FeatureParams.

base::TimeDelta GetIntensiveWakeUpThrottlingGracePeriod(bool loading) {}

// TODO(crbug.com/1475915): convert this param value to TimeDelta instead of int
// after the experiment.
MIRACLE_PARAMETER_FOR_INT(
    GetLoadingPhaseBufferTimeAfterFirstMeaningfulPaintMillis,
    features::kLoadingPhaseBufferTimeAfterFirstMeaningfulPaint,
    "LoadingPhaseBufferTimeAfterFirstMeaningfulPaintMillis",
    0)

base::TimeDelta GetLoadingPhaseBufferTimeAfterFirstMeaningfulPaint() {}

BASE_FEATURE();

BASE_FEATURE();

const base::FeatureParam<CompositorTQPolicyDuringThreadedScroll>::Option
    kCompositorTQPolicyDuringThreadedScrollOptions[] =;

const base::FeatureParam<CompositorTQPolicyDuringThreadedScroll>
    kCompositorTQPolicyDuringThreadedScroll{};

}  // namespace scheduler
}  // namespace blink