chromium/third_party/blink/renderer/platform/graphics/paint/drawing_display_item_test.cc

// Copyright 2017 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/paint/drawing_display_item.h"

#include "cc/paint/display_item_list.h"
#include "cc/paint/paint_flags.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_canvas.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_recorder.h"
#include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h"
#include "third_party/blink/renderer/platform/testing/fake_display_item_client.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/skia/include/core/SkTypes.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/skia_conversions.h"

namespace blink {
namespace {

_;

class DrawingDisplayItemTest : public testing::Test {};

static PaintRecord CreateRectRecord(const gfx::RectF& record_bounds,
                                    SkColor4f color = SkColors::kBlack) {}

static PaintRecord CreateRectRecordWithTranslate(
    const gfx::RectF& record_bounds,
    float dx,
    float dy,
    SkColor4f color = SkColors::kBlack) {}

TEST_F(DrawingDisplayItemTest, DrawsContent) {}

TEST_F(DrawingDisplayItemTest, EmptyPaintRecord) {}

TEST_F(DrawingDisplayItemTest, EqualsForUnderInvalidation) {}

TEST_F(DrawingDisplayItemTest, SolidColorRect) {}

TEST_F(DrawingDisplayItemTest, NonSolidColorSnappedRect) {}

TEST_F(DrawingDisplayItemTest, NonSolidColorOval) {}

// Checks that DrawingDisplayItem::RectKnownToBeOpaque() doesn't cover any
// non-opaque (including antialiased pixels) around the rounded corners.
static void CheckOpaqueRectPixels(const DrawingDisplayItem& item,
                                  SkBitmap& bitmap) {}

TEST_F(DrawingDisplayItemTest, OpaqueRectForDrawRRectUniform) {}

TEST_F(DrawingDisplayItemTest, OpaqueRectForDrawRRectNonUniform) {}

TEST_F(DrawingDisplayItemTest, DrawEmptyImage) {}

}  // namespace
}  // namespace blink