/third_party/skia/tests/ |
D | PremulAlphaRoundTripTest.cpp | 53 uint32_t* pixels = bmp.getAddr32(0, a); in fill_surface() 83 const uint32_t* pixels1 = readBmp1.getAddr32(0, y); in test_premul_alpha_roundtrip() 84 const uint32_t* pixels2 = readBmp2.getAddr32(0, y); in test_premul_alpha_roundtrip() 177 uint32_t* srcPixels = src.getAddr32(0, 0); in DEF_TEST() 203 SkDebugf("Src : %08x\n", *src.getAddr32(x, y)); in DEF_TEST() 204 SkDebugf(" -> : %08x\n", *surf.getAddr32(x, y)); in DEF_TEST() 205 SkDebugf(" <- : %08x\n", *read1.getAddr32(x, y)); in DEF_TEST() 206 SkDebugf(" -> : %08x\n", *surf2.getAddr32(x, y)); in DEF_TEST() 207 SkDebugf(" <- : %08x\n", *read2.getAddr32(x, y)); in DEF_TEST() 212 const uint32_t* pixels1 = read1.getAddr32(0, 0); in DEF_TEST() [all …]
|
D | ShaderImageFilterTest.cpp | 55 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); in test_unscaled() 56 const SkPMColor* paintPtr = paintResult.getAddr32(0, y); in test_unscaled() 105 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); in test_scaled() 106 const SkPMColor* paintPtr = paintResult.getAddr32(0, y); in test_scaled()
|
D | QuickRejectTest.cpp | 28 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap() 32 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); in test_drawBitmap() 36 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap() 40 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap()
|
D | ImageTest.cpp | 210 const bool sameMutable = pm.addr32(0, 0) == bm.getAddr32(0, 0); in DEF_TEST() 219 const bool sameImmutable = pm.addr32(0, 0) == bm.getAddr32(0, 0); in DEF_TEST() 519 *bmp.getAddr32(x, y) = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 539 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 541 *bmp.getAddr32(x, y), *unpremul.getAddr32(x, y), x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 556 uint32_t origColor = *bmp.getAddr32(x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 563 uint32_t read = *premul.getAddr32(x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 574 *bmp.getAddr32(x, y), *premul.getAddr32(x, y), origColor, x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 742 REPORTER_ASSERT(reporter, imageColor == *bitmap.getAddr32(0, 0)); in check_legacy_bitmap() 1221 *srgbBitmap.getAddr32(0, 0) = SkSwizzle_RGBA_to_PMColor(0xFF604020); in DEF_TEST() [all …]
|
D | Skbug6653.cpp | 85 uint32_t pixelA = *b4.getAddr32(x, y); in test_bug_6653() 86 uint32_t pixelB = *b5.getAddr32(x, y); in test_bug_6653()
|
D | ImageFilterTest.cpp | 441 uint32_t pixel = *result.getAddr32(0, 0); in DEF_TEST() 566 int diffs = memcmp(positiveResultBM1.getAddr32(0, y), in test_negative_blur_sigma() 567 negativeResultBM1.getAddr32(0, y), in test_negative_blur_sigma() 573 diffs = memcmp(positiveResultBM1.getAddr32(0, y), in test_negative_blur_sigma() 574 negativeResultBM2.getAddr32(0, y), in test_negative_blur_sigma() 580 diffs = memcmp(positiveResultBM1.getAddr32(0, y), in test_negative_blur_sigma() 581 positiveResultBM2.getAddr32(0, y), in test_negative_blur_sigma() 658 int diffs = memcmp(normalResultBM.getAddr32(0, y), in test_morphology_radius_with_mirror_ctm() 659 mirrorXResultBM.getAddr32(0, y), in test_morphology_radius_with_mirror_ctm() 665 diffs = memcmp(normalResultBM.getAddr32(0, y), in test_morphology_radius_with_mirror_ctm() [all …]
|
D | AnnotationTest.cpp | 48 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); in DEF_TEST() 50 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); in DEF_TEST()
|
D | GrAHardwareBufferTest.cpp | 80 const uint32_t srcPixel = *expectedBitmap.getAddr32(x, y); in check_read() 81 const uint32_t dstPixel = *actualBitmap.getAddr32(x, y); in check_read()
|
/third_party/skia/tools/skdiff/ |
D | skdiff.cpp | 177 SkPMColor c0 = *dr->fBase.fBitmap.getAddr32(x, y); in compute_diff() 178 SkPMColor c1 = *dr->fComparison.fBitmap.getAddr32(x, y); in compute_diff() 205 *dr->fDifference.fBitmap.getAddr32(x, y) = outputDifference; in compute_diff() 206 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_WHITE; in compute_diff() 208 *dr->fDifference.fBitmap.getAddr32(x, y) = 0; in compute_diff() 209 *dr->fWhite.fBitmap.getAddr32(x, y) = PMCOLOR_BLACK; in compute_diff()
|
/third_party/skia/samplecode/ |
D | SampleAARectModes.cpp | 61 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader() 62 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, in make_bg_shader()
|
D | SampleHairModes.cpp | 61 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader() 62 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCC, 0xCC, 0xCC); in make_bg_shader()
|
/third_party/skia/gm/ |
D | simple_magnification.cpp | 59 *bm.getAddr32(1, 1) = SkPackARGB32(0xFF, 0x00, 0xFF, 0x00); in make_image() 60 *bm.getAddr32(2, 1) = SkPackARGB32(0xFF, 0x00, 0x00, 0xFF); in make_image() 61 *bm.getAddr32(1, 2) = SkPackARGB32(0xFF, 0x00, 0xFF, 0xFF); in make_image() 62 *bm.getAddr32(2, 2) = SkPackARGB32(0xFF, 0x88, 0x88, 0x88); in make_image()
|
D | hairmodes.cpp | 73 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader() 74 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCE, 0xCF, 0xCE); in make_bg_shader()
|
D | aarectmodes.cpp | 121 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader() 122 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCE, in make_bg_shader()
|
D | bitmapfilters.cpp | 33 *bm->getAddr32(0, 0) = colorsPM[0]; in make_bm() 34 *bm->getAddr32(1, 0) = colorsPM[1]; in make_bm() 35 *bm->getAddr32(0, 1) = colorsPM[2]; in make_bm() 36 *bm->getAddr32(1, 1) = colorsPM[3]; in make_bm()
|
D | strokedlines.cpp | 164 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in onOnceBeforeDraw() 165 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = 0x0; in onOnceBeforeDraw()
|
D | rectangletexture.cpp | 84 *bmp.getAddr32(0, 0) = 0xFF0000FF; in makeImagePixels() 85 *bmp.getAddr32(1, 0) = 0xFF00FF00; in makeImagePixels() 86 *bmp.getAddr32(0, 1) = 0xFFFF0000; in makeImagePixels() 87 *bmp.getAddr32(1, 1) = 0xFFFFFFFF; in makeImagePixels()
|
D | bleed.cpp | 53 uint32_t* scanline = bitmap.getAddr32(0, 0); in make_ringed_image() 57 scanline = bitmap.getAddr32(0, 1); in make_ringed_image() 65 scanline = bitmap.getAddr32(0, y); in make_ringed_image() 79 scanline = bitmap.getAddr32(0, y); in make_ringed_image() 92 scanline = bitmap.getAddr32(0, height - 2); in make_ringed_image() 99 scanline = bitmap.getAddr32(0, height - 1); in make_ringed_image()
|
D | bitmappremul.cpp | 42 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_gradient() 65 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_stripes()
|
D | tinybitmap.cpp | 29 *bm.getAddr32(0, 0) = SkPackARGB32(0x80, 0x80, 0, 0); in onDraw()
|
/third_party/skia/docs/examples/ |
D | Bitmap_getAddr32.cpp | 7 uint32_t* row0 = source.getAddr32(0, 0); in draw() 8 uint32_t* row1 = source.getAddr32(0, 1); in draw()
|
D | UnpremulGPU.cpp | 12 *(premulBitmap.getAddr32(x, y)) = 0x80808080; in draw() 22 *(unpremulBitmap.getAddr32(x, y)) = 0x80FFFFFF; in draw()
|
D | Canvas_readPixels_3.cpp | 11 SkDebugf("pixel = %08x\n", bitmap.getAddr32(0, 0)[0]); in draw()
|
/third_party/skia/experimental/sorttoy/ |
D | Cmds.cpp | 165 *dstBM->getAddr32(x, y) = c; in rasterize() 167 SkColor4f bot = SkColor4f::FromColor(*dstBM->getAddr32(x, y)); in rasterize() 175 *dstBM->getAddr32(x, y) = result.toSkColor(); in rasterize()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkMatrixConvolutionImageFilter.cpp | 104 return *src.getAddr32(x, y); in fetch() 113 return *src.getAddr32(x, y); in fetch() 128 return *src.getAddr32(x, y); in fetch() 138 return *src.getAddr32(x, y); in fetch() 244 SkPMColor* dptr = result->getAddr32(rect.fLeft - offset.fX, y - offset.fY); in filterPixels()
|