#include "third_party/blink/renderer/platform/graphics/paint/foreign_layer_display_item.h"
#include <utility>
#include "cc/layers/layer.h"
#include "cc/layers/picture_layer.h"
#include "third_party/blink/renderer/platform/graphics/compositing/layers_as_json.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_controller.h"
namespace blink {
ForeignLayerDisplayItem::ForeignLayerDisplayItem(
DisplayItemClientId client_id,
Type type,
scoped_refptr<cc::Layer> layer,
const gfx::Point& origin,
RasterEffectOutset outset,
PaintInvalidationReason paint_invalidation_reason)
: … { … }
bool ForeignLayerDisplayItem::EqualsForUnderInvalidationImpl(
const ForeignLayerDisplayItem& other) const { … }
#if DCHECK_IS_ON()
void ForeignLayerDisplayItem::PropertiesAsJSONImpl(JSONObject& json) const { … }
#endif
void RecordForeignLayer(GraphicsContext& context,
const DisplayItemClient& client,
DisplayItem::Type type,
scoped_refptr<cc::Layer> layer,
const gfx::Point& origin,
const PropertyTreeStateOrAlias* properties) { … }
}