Flutter Engine
The Flutter Engine
|
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMallocPixelRef.h"
#include "include/core/SkPixelRef.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTo.h"
#include "src/base/SkRandom.h"
#include "tests/Test.h"
#include "tools/ToolUtils.h"
#include <cstddef>
#include <initializer_list>
Go to the source code of this file.
Functions | |
static void | test_peekpixels (skiatest::Reporter *reporter) |
static void | test_bigalloc (skiatest::Reporter *reporter) |
static void | test_allocpixels (skiatest::Reporter *reporter) |
static void | test_bigwidth (skiatest::Reporter *reporter) |
DEF_TEST (Bitmap, reporter) | |
DEF_TEST (Bitmap_setColorSpace, r) | |
DEF_TEST (Bitmap_getColor_Swizzle, r) | |
static void | test_erasecolor_premul (skiatest::Reporter *reporter, SkColorType ct, SkColor input, SkColor expected) |
DEF_TEST (Bitmap_eraseColor_Premul, r) | |
DEF_TEST (Bitmap_compute_is_opaque, r) | |
DEF_TEST (Bitmap_erase_f16_erase_getColor, r) | |
DEF_TEST (Bitmap_erase_srgb, r) | |
DEF_TEST (Bitmap_clear_pixelref_keep_info, r) | |
DEF_TEST (Bitmap_erase, r) | |
static void | check_alphas (skiatest::Reporter *reporter, const SkBitmap &bm, bool(*pred)(float expected, float actual), SkColorType ct) |
static bool | unit_compare (float expected, float actual, float tol=1.0f/(1<< 12)) |
static float | unit_discretize (float value, float scale) |
DEF_TEST (getalphaf, reporter) | |
DEF_TEST (bitmap_zerowidth_crbug_1103827, reporter) | |
|
static |
Definition at line 359 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap | , |
reporter | |||
) |
Definition at line 157 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_clear_pixelref_keep_info | , |
r | |||
) |
Definition at line 320 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_compute_is_opaque | , |
r | |||
) |
Definition at line 265 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_erase | , |
r | |||
) |
Definition at line 329 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_erase_f16_erase_getColor | , |
r | |||
) |
Definition at line 283 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_erase_srgb | , |
r | |||
) |
Definition at line 307 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_eraseColor_Premul | , |
r | |||
) |
This test checks that eraseColor premultiplies the color correctly.
Definition at line 255 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_getColor_Swizzle | , |
r | |||
) |
This test checks that getColor works for both swizzles.
Definition at line 225 of file BitmapTest.cpp.
DEF_TEST | ( | Bitmap_setColorSpace | , |
r | |||
) |
Definition at line 177 of file BitmapTest.cpp.
DEF_TEST | ( | bitmap_zerowidth_crbug_1103827 | , |
reporter | |||
) |
Definition at line 472 of file BitmapTest.cpp.
DEF_TEST | ( | getalphaf | , |
reporter | |||
) |
Definition at line 397 of file BitmapTest.cpp.
|
static |
Definition at line 68 of file BitmapTest.cpp.
|
static |
Definition at line 56 of file BitmapTest.cpp.
|
static |
Definition at line 140 of file BitmapTest.cpp.
|
static |
Definition at line 243 of file BitmapTest.cpp.
|
static |
Definition at line 31 of file BitmapTest.cpp.
|
static |
Definition at line 378 of file BitmapTest.cpp.
|
static |
Definition at line 388 of file BitmapTest.cpp.