6#include "flutter/display_list/skia/dl_sk_paint_dispatcher.h"
8#include "flutter/display_list/skia/dl_sk_dispatcher.h"
9#include "flutter/display_list/testing/dl_test_snippets.h"
10#include "flutter/display_list/utils/dl_receiver_utils.h"
11#include "gtest/gtest.h"
40TEST(DisplayListUtils, OverRestore) {
50TEST(DisplayListUtils, SetColorSourceDithersIfGradient) {
59TEST(DisplayListUtils, SetColorSourceDoesNotDitherIfNotGradient) {
78TEST(DisplayListUtils, SkDispatcherSetColorSourceDithersIfGradient) {
90TEST(DisplayListUtils, SkDispatcherSetColorSourceDoesNotDitherIfNotGradient) {
static std::shared_ptr< DlLinearGradientColorSource > MakeLinear(const SkPoint start_point, const SkPoint end_point, uint32_t stop_count, const DlColor *colors, const float *stops, DlTileMode tile_mode, const SkMatrix *matrix=nullptr)
Internal API for rendering recorded display lists to backends.
virtual void setColorSource(const DlColorSource *source)=0
Backend implementation of |DlOpReceiver| for |SkCanvas|.
const SkPaint * safe_paint(bool use_attributes)
const SkPaint & paint(bool uses_shader=true)
void save_opacity(SkScalar opacity_for_children)
static const auto kTestLinearGradient
static const DlImageColorSource kTestSource1(TestImage1, DlTileMode::kClamp, DlTileMode::kMirror, kLinearSampling)
static constexpr float kTestStops[kTestStopCount]
static constexpr DlColor kTestColors[kTestStopCount]
TEST(DisplayListComplexity, EmptyDisplayList)
static constexpr SkPoint Make(float x, float y)
static constexpr DlColor kBlue()
#define EXPECT_TRUE(handle)