#include "third_party/blink/renderer/platform/graphics/paint/drawing_display_item.h"
#include "base/logging.h"
#include "cc/paint/display_item_list.h"
#include "cc/paint/paint_op_buffer_iterator.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/logging_canvas.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_canvas.h"
#include "third_party/blink/renderer/platform/wtf/size_assertions.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkData.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/skia_conversions.h"
namespace blink {
namespace {
SkBitmap RecordToBitmap(const PaintRecord& record, const gfx::Rect& bounds) { … }
bool BitmapsEqual(const PaintRecord& record1,
const PaintRecord& record2,
const gfx::Rect& bounds) { … }
bool PaintFlagsMayChangeColorOrMovePixelsExceptShader(
const cc::PaintFlags& flags) { … }
bool IsDrawAreaAnalysisCandidate(const cc::PaintOp& op) { … }
}
bool DrawingDisplayItem::EqualsForUnderInvalidationImpl(
const DrawingDisplayItem& other) const { … }
DrawingDisplayItem::BackgroundColorInfo DrawingDisplayItem::BackgroundColor()
const { … }
gfx::Rect DrawingDisplayItem::CalculateRectKnownToBeOpaque() const { … }
gfx::Rect DrawingDisplayItem::CalculateRectKnownToBeOpaqueForRecord(
const PaintRecord& record) const { … }
gfx::Rect DrawingDisplayItem::TightenVisualRect(const gfx::Rect& visual_rect,
const PaintRecord& record) { … }
}