#include "ui/views/paint_info.h"
#include "base/feature_list.h"
#include "ui/views/views_features.h"
namespace views {
namespace {
gfx::Rect GetSnappedRecordingBoundsInternal(
const gfx::Rect& paint_recording_bounds,
float device_scale_factor,
const gfx::Size& parent_size,
const gfx::Rect& child_bounds) { … }
gfx::Rect GetViewsLayerRecordingBounds(const ui::PaintContext& context,
const gfx::Rect& child_bounds) { … }
}
PaintInfo PaintInfo::CreateRootPaintInfo(const ui::PaintContext& root_context,
const gfx::Size& size) { … }
PaintInfo PaintInfo::CreateChildPaintInfo(const PaintInfo& parent_paint_info,
const gfx::Rect& bounds,
const gfx::Size& parent_size,
ScaleType scale_type,
bool is_layer,
bool needs_paint) { … }
PaintInfo::~PaintInfo() = default;
bool PaintInfo::IsPixelCanvas() const { … }
bool PaintInfo::ShouldPaint() const { … }
PaintInfo::PaintInfo(const PaintInfo& other)
: … { … }
PaintInfo::PaintInfo(const ui::PaintContext& root_context,
const gfx::Size& size)
: … { … }
PaintInfo::PaintInfo(const PaintInfo& parent_paint_info,
const gfx::Rect& bounds,
const gfx::Size& parent_size,
ScaleType scale_type,
bool is_layer,
bool needs_paint)
: … { … }
gfx::Rect PaintInfo::GetSnappedRecordingBounds(
const gfx::Size& parent_size,
const gfx::Rect& child_bounds) const { … }
}