chromium/third_party/blink/renderer/core/paint/image_painter_test.cc

// Copyright 2023 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/core/paint/image_painter.h"

#include "cc/paint/paint_op.h"
#include "cc/paint/paint_op_buffer_iterator.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"

namespace blink {

namespace {

const cc::DrawImageRectOp* FirstDrawImageRectOp(const cc::PaintRecord& record) {}

}  // namespace

class ImagePainterSimTest : public SimTest,
                            private ScopedMockOverlayScrollbars {};

// The bitmap image codepath does not support subrect decoding and vetoes some
// optimizations if subrects are used to avoid bleeding (see:
// https://crbug.com/1404998#c12). We should prefer full draw image bounds for
// bitmap images until the bitmap src rect codepaths improve.
TEST_F(ImagePainterSimTest, ClippedBitmapSpriteSheetsUseFullBounds) {}

}  // namespace blink