chromium/third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/platform/graphics/compositing/chunk_to_layer_mapper.h"

#include "base/logging.h"
#include "third_party/blink/renderer/platform/graphics/paint/geometry_mapper.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_chunk.h"
#include "ui/gfx/geometry/rect_conversions.h"

namespace blink {

ChunkToLayerMapper::ChunkToLayerMapper(const PropertyTreeState& layer_state,
                                       const gfx::Vector2dF& layer_offset)
    :{}

void ChunkToLayerMapper::SwitchToChunk(const PaintChunk& chunk) {}

void ChunkToLayerMapper::SwitchToChunkWithState(
    const PaintChunk& chunk,
    const PropertyTreeState& new_chunk_state) {}

gfx::Rect ChunkToLayerMapper::MapVisualRect(const gfx::Rect& rect) const {}

// This is called when the fast path doesn't apply if there is any filter that
// moves pixels. GeometryMapper::LocalToAncestorVisualRect() will apply the
// visual effects of the filters, though slowly.
gfx::Rect ChunkToLayerMapper::MapUsingGeometryMapper(
    const gfx::Rect& rect) const {}

gfx::Rect ChunkToLayerMapper::MapVisualRectFromState(
    const gfx::Rect& rect,
    const PropertyTreeState& state) const {}

void ChunkToLayerMapper::InflateForRasterEffectOutset(gfx::RectF& rect) const {}

}  // namespace blink