#include "components/viz/service/hit_test/hit_test_aggregator.h"
#include "base/trace_event/trace_event.h"
#include "components/viz/common/hit_test/hit_test_region_list.h"
#include "components/viz/service/hit_test/hit_test_aggregator_delegate.h"
#include "components/viz/service/surfaces/latest_local_surface_id_lookup_delegate.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace viz {
HitTestAggregator::HitTestAggregator(
const HitTestManager* hit_test_manager,
HitTestAggregatorDelegate* delegate,
LatestLocalSurfaceIdLookupDelegate* local_surface_id_lookup_delegate,
const FrameSinkId& frame_sink_id,
uint32_t initial_region_size,
uint32_t max_region_size)
: … { … }
HitTestAggregator::~HitTestAggregator() = default;
void HitTestAggregator::Aggregate(const SurfaceId& display_surface_id) { … }
void HitTestAggregator::SendHitTestData() { … }
std::optional<int64_t> HitTestAggregator::GetTraceIdIfUpdated(
const SurfaceId& surface_id,
uint64_t active_frame_index) { … }
void HitTestAggregator::AppendRoot(const SurfaceId& surface_id) { … }
size_t HitTestAggregator::AppendRegion(size_t region_index,
const HitTestRegion& region) { … }
void HitTestAggregator::SetRegionAt(size_t index,
const FrameSinkId& frame_sink_id,
uint32_t flags,
uint32_t async_hit_test_reasons,
const gfx::Rect& rect,
const gfx::Transform& transform,
int32_t child_count) { … }
}