|
SkImageInfo | read_pixels_info (SkImage *image) |
|
static void | assert_equal (skiatest::Reporter *reporter, GrDirectContext *dContextA, SkImage *a, const SkIRect *subsetA, SkImage *b) |
|
static void | draw_image_test_pattern (SkCanvas *canvas) |
|
static sk_sp< SkImage > | create_image () |
|
static sk_sp< SkData > | create_image_data (SkImageInfo *info) |
|
static sk_sp< SkImage > | create_data_image () |
|
static sk_sp< SkImage > | create_image_large (int maxTextureSize) |
|
static sk_sp< SkImage > | create_picture_image () |
|
static sk_sp< SkImage > | create_rasterproc_image (RasterDataHolder *dataHolder) |
|
static sk_sp< SkImage > | create_codec_image () |
|
static sk_sp< SkImage > | create_gpu_image (GrRecordingContext *rContext, bool withMips=false, skgpu::Budgeted budgeted=skgpu::Budgeted::kYes) |
|
static void | test_encode (skiatest::Reporter *reporter, GrDirectContext *dContext, SkImage *image) |
|
| DEF_TEST (ImageEncode, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImageEncode_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_TEST (Image_MakeFromRasterBitmap, reporter) |
|
| DEF_TEST (Image_Serialize_Encoding_Failure, reporter) |
|
| DEF_TEST (Image_RetainSnapshot, reporter) |
|
static void | make_bitmap_mutable (SkBitmap *bm) |
|
static void | make_bitmap_immutable (SkBitmap *bm) |
|
| DEF_TEST (image_newfrombitmap, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (SkImage_Ganesh2Cpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (SkImage_makeTextureImage, reporter, contextInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (SkImage_makeNonTextureImage, reporter, contextInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (GrContext_colorTypeSupportedAsImage, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (UnpremulTextureImage, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST (AbandonedContextImage, reporter, options, CtsEnforcement::kApiLevel_T) |
|
| DEF_TEST (ImageEmpty, reporter) |
|
| DEF_TEST (ImageDataRef, reporter) |
|
static bool | has_pixels (const SkPMColor pixels[], int count, SkPMColor expected) |
|
static void | image_test_read_pixels (GrDirectContext *dContext, skiatest::Reporter *reporter, SkImage *image) |
|
| DEF_TEST (ImageReadPixels, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImageReadPixels_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
static void | check_legacy_bitmap (skiatest::Reporter *reporter, GrDirectContext *dContext, const SkImage *image, const SkBitmap &bitmap) |
|
static void | test_legacy_bitmap (skiatest::Reporter *reporter, GrDirectContext *dContext, const SkImage *image) |
|
| DEF_TEST (ImageLegacyBitmap, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImageLegacyBitmap_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
static void | test_peek (skiatest::Reporter *reporter, SkImage *image, bool expectPeekSuccess) |
|
| DEF_TEST (ImagePeek, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImagePeek_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_GL_CONTEXT (SkImage_NewFromTextureRelease, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
static void | test_cross_context_image (skiatest::Reporter *reporter, const GrContextOptions &options, const char *testName, const std::function< sk_sp< SkImage >(GrDirectContext *)> &imageMaker) |
|
| DEF_GANESH_TEST (SkImage_MakeCrossContextFromPixmapRelease, reporter, options, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST (SkImage_CrossContextGrayAlphaConfigs, reporter, options, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_GL_CONTEXT (makeBackendTexture, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImageBackendAccessAbandoned_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
static sk_sp< SkImage > | create_picture_image (sk_sp< SkColorSpace > space) |
|
| DEF_TEST (Image_ColorSpace, r) |
|
| DEF_TEST (Image_makeColorSpace, r) |
|
static void | make_all_premul (SkBitmap *bm) |
|
static bool | equal (const SkBitmap &a, const SkBitmap &b) |
|
| DEF_TEST (image_roundtrip_encode, reporter) |
|
| DEF_TEST (image_roundtrip_premul, reporter) |
|
| DEF_TEST (image_from_encoded_alphatype_override, reporter) |
|
static void | check_scaled_pixels (skiatest::Reporter *reporter, SkPixmap *pmap, uint32_t expected) |
|
static void | test_scale_pixels (skiatest::Reporter *reporter, const SkImage *image, uint32_t expected) |
|
| DEF_TEST (ImageScalePixels, reporter) |
|
| DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ImageScalePixels_Gpu, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
static sk_sp< SkImage > | any_image_will_do () |
|
| DEF_TEST (Image_nonfinite_dst, reporter) |
|
static sk_sp< SkImage > | make_yuva_image (GrDirectContext *dContext) |
|
| DEF_GANESH_TEST_FOR_ALL_CONTEXTS (ImageFlush, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) |
|
constexpr SkM44 | gCentripetalCatmulRom (0.0f/2, -1.0f/2, 2.0f/2, -1.0f/2, 2.0f/2, 0.0f/2, -5.0f/2, 3.0f/2, 0.0f/2, 1.0f/2, 4.0f/2, -3.0f/2, 0.0f/2, 0.0f/2, -1.0f/2, 1.0f/2) |
|
constexpr SkM44 | gMitchellNetravali (1.0f/18, -9.0f/18, 15.0f/18, -7.0f/18, 16.0f/18, 0.0f/18, -36.0f/18, 21.0f/18, 1.0f/18, 9.0f/18, 27.0f/18, -21.0f/18, 0.0f/18, 0.0f/18, -6.0f/18, 7.0f/18) |
|
| DEF_TEST (image_cubicresampler, reporter) |
|
| DEF_TEST (image_subset_encode_skbug_7752, reporter) |
|