#include "components/viz/service/display/display_damage_tracker.h"
#include "base/feature_list.h"
#include "base/observer_list.h"
#include "base/trace_event/trace_event.h"
#include "components/viz/service/display/surface_aggregator.h"
#include "components/viz/service/surfaces/surface.h"
#include "components/viz/service/surfaces/surface_manager.h"
namespace viz {
namespace {
BASE_FEATURE(…);
bool ShouldAccumulateInteraction(
SurfaceObserver::HandleInteraction handle_interaction) { … }
}
DisplayDamageTracker::DisplayDamageTracker(SurfaceManager* surface_manager,
SurfaceAggregator* aggregator)
: … { … }
DisplayDamageTracker::~DisplayDamageTracker() { … }
void DisplayDamageTracker::SetDisplayBeginFrameSourceId(
uint64_t begin_frame_source_id) { … }
void DisplayDamageTracker::SetDelegate(Delegate* delegate) { … }
void DisplayDamageTracker::SetRootFrameMissing(bool missing) { … }
void DisplayDamageTracker::SetNewRootSurface(const SurfaceId& root_surface_id) { … }
void DisplayDamageTracker::SetRootSurfaceDamaged() { … }
bool DisplayDamageTracker::IsRootSurfaceValid() const { … }
void DisplayDamageTracker::DisplayResized() { … }
void DisplayDamageTracker::ProcessSurfaceDamage(
const SurfaceId& surface_id,
const BeginFrameAck& ack,
bool display_damaged,
HandleInteraction handle_interaction) { … }
bool DisplayDamageTracker::SurfaceHasUnackedFrame(
const SurfaceId& surface_id) const { … }
bool DisplayDamageTracker::HasPendingSurfaces(
const BeginFrameArgs& begin_frame_args) { … }
bool DisplayDamageTracker::HasDamageDueToInteraction() { … }
void DisplayDamageTracker::DidFinishFrame() { … }
void DisplayDamageTracker::OnSurfaceMarkedForDestruction(
const SurfaceId& surface_id) { … }
bool DisplayDamageTracker::CheckForDisplayDamage(const SurfaceId& surface_id) { … }
bool DisplayDamageTracker::OnSurfaceDamaged(
const SurfaceId& surface_id,
const BeginFrameAck& ack,
HandleInteraction handle_interaction) { … }
bool DisplayDamageTracker::CheckBeginFrameSourceId(uint64_t source_id) { … }
void DisplayDamageTracker::OnSurfaceDamageExpected(const SurfaceId& surface_id,
const BeginFrameArgs& args) { … }
void DisplayDamageTracker::UpdateRootFrameMissing() { … }
void DisplayDamageTracker::RunDrawCallbacks() { … }
void DisplayDamageTracker::NotifyDisplayDamaged(SurfaceId surface_id) { … }
void DisplayDamageTracker::NotifyRootFrameMissing(bool missing) { … }
void DisplayDamageTracker::NotifyPendingSurfacesChanged() { … }
}