Flutter Engine
The Flutter Engine
Namespaces | Functions | Variables
dl_color_source_unittests.cc File Reference
#include <memory>
#include <vector>
#include "display_list/dl_color.h"
#include "flutter/display_list/dl_sampling_options.h"
#include "flutter/display_list/effects/dl_color_source.h"
#include "flutter/display_list/effects/dl_runtime_effect.h"
#include "flutter/display_list/image/dl_image.h"
#include "flutter/display_list/testing/dl_test_equality.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkSurface.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Functions

static sk_sp< DlImage > flutter::testing::MakeTestImage (int w, int h, SkColor color)
 
 flutter::testing::TEST (DisplayListColorSource, ColorConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, ColorShared)
 
 flutter::testing::TEST (DisplayListColorSource, ColorAsColor)
 
 flutter::testing::TEST (DisplayListColorSource, ColorContents)
 
 flutter::testing::TEST (DisplayListColorSource, ColorEquals)
 
 flutter::testing::TEST (DisplayListColorSource, ColorNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, ImageConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, ImageShared)
 
 flutter::testing::TEST (DisplayListColorSource, ImageAsImage)
 
 flutter::testing::TEST (DisplayListColorSource, ImageContents)
 
 flutter::testing::TEST (DisplayListColorSource, AlphaImageContents)
 
 flutter::testing::TEST (DisplayListColorSource, ImageEquals)
 
 flutter::testing::TEST (DisplayListColorSource, ImageNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientShared)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientAsLinear)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, AlphaLinearGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientEquals)
 
 flutter::testing::TEST (DisplayListColorSource, LinearGradientNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientShared)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientAsRadial)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, AlphaRadialGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientEquals)
 
 flutter::testing::TEST (DisplayListColorSource, RadialGradientNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientShared)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientAsConical)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, AlphaConicalGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientEquals)
 
 flutter::testing::TEST (DisplayListColorSource, ConicalGradientNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientConstructor)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientShared)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientAsSweep)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, AlphaSweepGradientContents)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientEquals)
 
 flutter::testing::TEST (DisplayListColorSource, SweepGradientNotEquals)
 
 flutter::testing::TEST (DisplayListColorSource, RuntimeEffect)
 

Variables

static const sk_sp< DlRuntimeEffect > flutter::testing::kTestRuntimeEffect1
 
static const sk_sp< DlRuntimeEffect > flutter::testing::kTestRuntimeEffect2
 
static const sk_sp< DlImage > flutter::testing::kTestImage1 = MakeTestImage(10, 10, SK_ColorGREEN)
 
static const sk_sp< DlImage > flutter::testing::kTestAlphaImage1
 
static const SkMatrix flutter::testing::kTestMatrix1
 
static const SkMatrix flutter::testing::kTestMatrix2
 
static constexpr int flutter::testing::kTestStopCount = 3
 
static constexpr DlColor flutter::testing::kTestColors [kTestStopCount]
 
static const DlColor flutter::testing::kTestAlphaColors [kTestStopCount]
 
static constexpr float flutter::testing::kTestStops [kTestStopCount]
 
static constexpr float flutter::testing::kTestStops2 [kTestStopCount]
 
static constexpr SkPoint flutter::testing::kTestPoints [2]
 
static constexpr SkPoint flutter::testing::kTestPoints2 [2]