chromium/components/viz/service/frame_sinks/eviction_handler.h

// 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.

#ifndef COMPONENTS_VIZ_SERVICE_FRAME_SINKS_EVICTION_HANDLER_H_
#define COMPONENTS_VIZ_SERVICE_FRAME_SINKS_EVICTION_HANDLER_H_

#include <memory>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "components/viz/common/frame_sinks/copy_output_result.h"
#include "components/viz/common/resources/resource_id.h"
#include "components/viz/common/surfaces/local_surface_id.h"
#include "components/viz/common/surfaces/surface_id.h"
#include "components/viz/service/frame_sinks/surface_resource_holder.h"

namespace viz {
class CompositorFrameSinkSupport;
class Display;

// Handles eviction of `RootCompositorFrameSinkImpl` by either pushing empty
// solid color content or taking a snapshot then pushing that through the
// graphics pipeline to deref all surfaces.
class EvictionHandler : public ReservedResourceDelegate {};

}  // namespace viz

#endif  // COMPONENTS_VIZ_SERVICE_FRAME_SINKS_EVICTION_HANDLER_H_