#include "third_party/blink/renderer/platform/graphics/paint/raster_invalidator.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.h"
#include "third_party/blink/renderer/platform/graphics/paint/display_item_raster_invalidator.h"
#include "third_party/blink/renderer/platform/graphics/paint/geometry_mapper.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_artifact.h"
#include "ui/gfx/geometry/skia_conversions.h"
namespace blink {
void RasterInvalidator::Trace(Visitor* visitor) const { … }
void RasterInvalidator::SetTracksRasterInvalidations(bool should_track) { … }
const PaintChunk& RasterInvalidator::GetOldChunk(wtf_size_t index) const { … }
wtf_size_t RasterInvalidator::MatchNewChunkToOldChunk(
const PaintChunk& new_chunk,
wtf_size_t old_index) const { … }
PaintInvalidationReason RasterInvalidator::ChunkPropertiesChanged(
const PaintChunk& new_chunk,
const PaintChunk& old_chunk,
const PaintChunkInfo& new_chunk_info,
const PaintChunkInfo& old_chunk_info,
const PropertyTreeState& layer_state,
const float absolute_translation_tolerance,
const float other_transform_tolerance) const { … }
static bool ShouldSkipForRasterInvalidation(
const PaintChunkIterator& chunk_it) { … }
static bool ScrollbarNeedsUpdateDisplay(const PaintChunkIterator& chunk_it) { … }
void RasterInvalidator::GenerateRasterInvalidations(
const PaintChunkSubset& new_chunks,
bool layer_offset_or_state_changed,
bool layer_effect_changed,
Vector<PaintChunkInfo>& new_chunks_info) { … }
void RasterInvalidator::IncrementallyInvalidateChunk(
const PaintChunkInfo& old_chunk_info,
const PaintChunkInfo& new_chunk_info,
DisplayItemClientId client_id) { … }
void RasterInvalidator::TrackRasterInvalidation(const gfx::Rect& rect,
DisplayItemClientId client_id,
PaintInvalidationReason reason,
ClientIsOldOrNew old_or_new) { … }
RasterInvalidationTracking& RasterInvalidator::EnsureTracking() { … }
void RasterInvalidator::Generate(
const PaintChunkSubset& new_chunks,
const gfx::Vector2dF& layer_offset,
const gfx::Size& layer_bounds,
const PropertyTreeState& layer_state) { … }
void RasterInvalidator::SetOldPaintArtifact(
const PaintArtifact& old_paint_artifact) { … }
size_t RasterInvalidator::ApproximateUnsharedMemoryUsage() const { … }
void RasterInvalidator::ClearOldStates() { … }
}