Home
last modified time | relevance | path

Searched refs:getAddr32 (Results 1 – 25 of 148) sorted by relevance

123456

/external/skia/tools/skdiff/
Dskdiff.cpp177 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()
/external/skqp/tools/skdiff/
Dskdiff.cpp177 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()
/external/skia/samplecode/
DSampleAARectModes.cpp61 *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()
DSampleHairModes.cpp61 *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()
/external/skia/gm/
Dsimple_magnification.cpp59 *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()
Dhairmodes.cpp73 *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()
Daarectmodes.cpp121 *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()
Dbitmapfilters.cpp34 *bm->getAddr32(0, 0) = colorsPM[0]; in make_bm()
35 *bm->getAddr32(1, 0) = colorsPM[1]; in make_bm()
36 *bm->getAddr32(0, 1) = colorsPM[2]; in make_bm()
37 *bm->getAddr32(1, 1) = colorsPM[3]; in make_bm()
/external/skqp/gm/
Dsimple_magnification.cpp45 *bm.getAddr32(1, 1) = SkPackARGB32(0xFF, 0x00, 0xFF, 0x00); in make_image()
46 *bm.getAddr32(2, 1) = SkPackARGB32(0xFF, 0x00, 0x00, 0xFF); in make_image()
47 *bm.getAddr32(1, 2) = SkPackARGB32(0xFF, 0x00, 0xFF, 0xFF); in make_image()
48 *bm.getAddr32(2, 2) = SkPackARGB32(0xFF, 0x88, 0x88, 0x88); in make_image()
Dhairmodes.cpp61 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader()
62 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCE, 0xCF, 0xCE); in make_bg_shader()
Daarectmodes.cpp109 *bm.getAddr32(0, 0) = *bm.getAddr32(1, 1) = 0xFFFFFFFF; in make_bg_shader()
110 *bm.getAddr32(1, 0) = *bm.getAddr32(0, 1) = SkPackARGB32(0xFF, 0xCE, in make_bg_shader()
Dshapes_as_paths.cpp60 *highlight.getAddr32(x, y) = SkPackARGB32(0xA0, 0xA0, 0x00, 0x00); in draw_diff()
72 *highlight.getAddr32(maxDiffX, maxDiffY) = yellow; in draw_diff()
73 *highlight.getAddr32(SkTMax(maxDiffX - 1, 0), maxDiffY) = yellow; in draw_diff()
74 *highlight.getAddr32(maxDiffX, SkTMax(maxDiffY - 1, 0)) = yellow; in draw_diff()
75 *highlight.getAddr32(SkTMin(maxDiffX + 1, w - 1), maxDiffY) = yellow; in draw_diff()
76 *highlight.getAddr32(maxDiffX, SkTMin(maxDiffY + 1, h - 1)) = yellow; in draw_diff()
Dbitmapfilters.cpp22 *bm->getAddr32(0, 0) = colorsPM[0]; in make_bm()
23 *bm->getAddr32(1, 0) = colorsPM[1]; in make_bm()
24 *bm->getAddr32(0, 1) = colorsPM[2]; in make_bm()
25 *bm->getAddr32(1, 1) = colorsPM[3]; in make_bm()
/external/skqp/samplecode/
DSampleHairModes.cpp61 *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()
DSampleAARectModes.cpp61 *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()
DSampleHairline.cpp49 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { in check_bitmap_margin()
53 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { in check_bitmap_margin()
57 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) { in check_bitmap_margin()
61 if (!check_zeros(bm.getAddr32(right, 0), bm.height(), in check_bitmap_margin()
207 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes()); in onDrawContent()
DSampleLitAtlas.cpp231 *atlas.getAddr32(x, y) = SK_ColorTRANSPARENT; in MakeAtlas()
234 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0x88, 0x88, 0xFF); in MakeAtlas()
247 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0); in MakeAtlas()
249 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0xFF, 0, 0); in MakeAtlas()
263 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0xFF, 0); in MakeAtlas()
281 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0); in MakeAtlas()
283 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0, 0xFF); in MakeAtlas()
310 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0xFF, 0xFF); in MakeAtlas()
312 *atlas.getAddr32(x, y) = SkPackARGB32(0, 0, 0, 0); in MakeAtlas()
/external/skia/tests/
DShaderImageFilterTest.cpp55 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()
DQuickRejectTest.cpp28 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()
DPremulAlphaRoundTripTest.cpp51 uint32_t* pixels = bmp.getAddr32(0, a); in fill_surface()
81 const uint32_t* pixels1 = readBmp1.getAddr32(0, y); in test_premul_alpha_roundtrip()
82 const uint32_t* pixels2 = readBmp2.getAddr32(0, y); in test_premul_alpha_roundtrip()
DImageTest.cpp210 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 …]
/external/skqp/tests/
DPaintImageFilterTest.cpp53 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); in test_unscaled()
54 const SkPMColor* paintPtr = paintResult.getAddr32(0, y); in test_unscaled()
101 const SkPMColor* filterPtr = filterResult.getAddr32(0, y); in test_scaled()
102 const SkPMColor* paintPtr = paintResult.getAddr32(0, y); in test_scaled()
DQuickRejectTest.cpp69 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap()
73 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); in test_drawBitmap()
77 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap()
81 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); in test_drawBitmap()
89 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); in test_drawBitmap()
DImageTest.cpp204 const bool sameMutable = pm.addr32(0, 0) == bm.getAddr32(0, 0); in DEF_TEST()
213 const bool sameImmutable = pm.addr32(0, 0) == bm.getAddr32(0, 0); in DEF_TEST()
514 *bmp.getAddr32(x, y) = in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
536 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
538 *bmp.getAddr32(x, y), *unpremul.getAddr32(x, y), x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
555 uint32_t origColor = SkPreMultiplyColor(*bmp.getAddr32(x, y)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
560 uint32_t read = *premul.getAddr32(x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
571 *bmp.getAddr32(x, y), *premul.getAddr32(x, y), x, y); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
734 REPORTER_ASSERT(reporter, imageColor == *bitmap.getAddr32(0, 0)); in check_legacy_bitmap()
1197 *srgbBitmap.getAddr32(0, 0) = SkSwizzle_RGBA_to_PMColor(0xFF604020); in DEF_TEST()
[all …]
/external/skia/docs/examples/
DBitmap_getAddr32.cpp7 uint32_t* row0 = source.getAddr32(0, 0); in draw()
8 uint32_t* row1 = source.getAddr32(0, 1); in draw()

123456