#include "cc/trees/debug_rect_history.h"
#include <stddef.h>
#include "base/memory/ptr_util.h"
#include "cc/base/math_util.h"
#include "cc/layers/heads_up_display_layer_impl.h"
#include "cc/layers/layer_impl.h"
#include "cc/layers/layer_list_iterator.h"
#include "cc/layers/render_surface_impl.h"
#include "cc/paint/display_item_list.h"
#include "cc/trees/damage_tracker.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/scroll_node.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace cc {
std::unique_ptr<DebugRectHistory> DebugRectHistory::Create() { … }
DebugRectHistory::DebugRectHistory() = default;
DebugRectHistory::~DebugRectHistory() = default;
void DebugRectHistory::SaveDebugRectsForCurrentFrame(
LayerTreeImpl* tree_impl,
HeadsUpDisplayLayerImpl* hud_layer,
const RenderSurfaceList& render_surface_list,
const LayerTreeDebugState& debug_state) { … }
void DebugRectHistory::SaveLayoutShiftRects(HeadsUpDisplayLayerImpl* hud) { … }
void DebugRectHistory::SavePaintRects(LayerTreeImpl* tree_impl) { … }
void DebugRectHistory::SavePropertyChangedRects(LayerTreeImpl* tree_impl,
LayerImpl* hud_layer) { … }
void DebugRectHistory::SaveSurfaceDamageRects(
const RenderSurfaceList& render_surface_list) { … }
void DebugRectHistory::SaveScreenSpaceRects(
const RenderSurfaceList& render_surface_list) { … }
void DebugRectHistory::SaveTouchEventHandlerRects(LayerTreeImpl* tree_impl) { … }
void DebugRectHistory::SaveWheelEventHandlerRects(LayerTreeImpl* tree_impl) { … }
void DebugRectHistory::SaveScrollEventHandlerRects(LayerTreeImpl* tree_impl) { … }
void DebugRectHistory::SaveMainThreadScrollHitTestRects(
LayerTreeImpl* tree_impl) { … }
void DebugRectHistory::SaveMainThreadScrollRepaintOrRasterInducingScrollRects(
LayerTreeImpl* tree_impl,
DebugRectType type) { … }
}