blob: 33dad740bb4440587c01fc47c2bd2d2a4c9ca0d7 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/viz/common/quads/frame_interval_inputs.h"
namespace viz {
std::string ContentFrameIntervalTypeToString(ContentFrameIntervalType type) {
switch (type) {
case ContentFrameIntervalType::kVideo:
return "video";
case ContentFrameIntervalType::kAnimatingImage:
return "animating_image";
case ContentFrameIntervalType::kScrollBarFadeOutAnimation:
return "scrollbar_fade_out";
case ContentFrameIntervalType::kCompositorScroll:
return "compositor_scroll";
}
}
FrameIntervalInputs::FrameIntervalInputs() = default;
FrameIntervalInputs::FrameIntervalInputs(const FrameIntervalInputs& other) =
default;
FrameIntervalInputs::~FrameIntervalInputs() = default;
} // namespace viz