blob: 2a72e52d5151975d076cdc5938107995571d7e05 [file] [log] [blame]
// Copyright 2022 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/service/display/overlay_processor_strategy.h"
#include "components/viz/common/display/overlay_strategy.h"
namespace viz {
// Default implementation of whether a strategy would remove the output surface
// as overlay plane.
bool OverlayProcessorStrategy::RemoveOutputSurfaceAsOverlay() {
return false;
}
OverlayStrategy OverlayProcessorStrategy::GetUMAEnum() const {
return OverlayStrategy::kUnknown;
}
gfx::RectF OverlayProcessorStrategy::GetPrimaryPlaneDisplayRect(
const std::optional<OverlayCandidate>& primary_plane) {
return primary_plane ? primary_plane->display_rect : gfx::RectF();
}
} // namespace viz