#include "pdf/paint_aggregator.h"
#include <stddef.h>
#include <stdint.h>
#include "base/check.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
namespace chrome_pdf {
namespace {
bool IsNegative(int32_t num) { … }
}
PaintAggregator::PaintUpdate::PaintUpdate() = default;
PaintAggregator::PaintUpdate::PaintUpdate(const PaintUpdate& that) = default;
PaintAggregator::PaintUpdate::~PaintUpdate() = default;
PaintAggregator::InternalPaintUpdate::InternalPaintUpdate()
: … { … }
PaintAggregator::InternalPaintUpdate::~InternalPaintUpdate() = default;
gfx::Rect PaintAggregator::InternalPaintUpdate::GetScrollDamage() const { … }
PaintAggregator::PaintAggregator() = default;
bool PaintAggregator::HasPendingUpdate() const { … }
void PaintAggregator::ClearPendingUpdate() { … }
PaintAggregator::PaintUpdate PaintAggregator::GetPendingUpdate() { … }
void PaintAggregator::SetIntermediateResults(
const std::vector<PaintReadyRect>& ready,
const std::vector<gfx::Rect>& pending) { … }
std::vector<PaintReadyRect> PaintAggregator::GetReadyRects() const { … }
void PaintAggregator::InvalidateRect(const gfx::Rect& rect) { … }
void PaintAggregator::ScrollRect(const gfx::Rect& clip_rect,
const gfx::Vector2d& amount) { … }
gfx::Rect PaintAggregator::ScrollPaintRect(const gfx::Rect& paint_rect,
const gfx::Vector2d& amount) const { … }
void PaintAggregator::InvalidateScrollRect() { … }
void PaintAggregator::InvalidateRectInternal(const gfx::Rect& rect_old,
bool check_scroll) { … }
}