Home
last modified time | relevance | path

Searched refs:DEV_W (Results 1 – 14 of 14) sorted by relevance

/external/skqp/tests/
DWritePixelsTest.cpp24 static const int DEV_W = 100, DEV_H = 100; variable
25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
29 SkASSERT(x >= 0 && x < DEV_W); in get_canvas_color()
115 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_surface()
117 for (int x = 0; x < DEV_W; ++x) { in fill_surface()
224 if (surf->width() != DEV_W || surf->height() != DEV_H) { in check_write()
232 for (int cx = 0; cx < DEV_W; ++cx) { in check_write()
261 const char* pad = reinterpret_cast<const char*>(canvasPixels + DEV_W); in check_write()
262 for (size_t px = 0; px < canvasRowBytes - 4 * DEV_W; ++px) { in check_write()
330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels()
[all …]
DReadPixelsTest.cpp25 static const int DEV_W = 100, DEV_H = 100; variable
26 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
27 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1,
31 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
106 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
109 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
311 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10),
313 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4),
319 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4),
321 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4),
[all …]
DGrAHardwareBufferTest.cpp26 static const int DEV_W = 16, DEV_H = 16; variable
29 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
61 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
64 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
78 for (int x = 0; x < DEV_W && result; ++x) { in check_read()
122 hwbDesc.width = DEV_W; in basic_draw_test_helper()
153 int nextLineStep = DEV_W; in basic_draw_test_helper()
156 src += (DEV_H-1)*DEV_W; in basic_draw_test_helper()
160 memcpy(dst, src, DEV_W * bbp); in basic_draw_test_helper()
178 SkImageInfo imageInfo = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in basic_draw_test_helper()
[all …]
DFloatingPointTextureTest.cpp26 static const int DEV_W = 100, DEV_H = 100; variable
49 auto fpProxy = sk_gpu_test::MakeTextureProxyFromData(context, true, DEV_W, DEV_H, colorType, in runFPTest()
61 sContext.get(), 0, 0, DEV_W, DEV_H, colorType, nullptr, readBuffer.begin(), 0); in runFPTest()
68 static const int RGBA32F_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4;
77 static const int RG32F_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 2;
85 static const int HALF_ALPHA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 1 /*alpha-only*/;
94 static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/;
DPackedConfigsTextureTest.cpp22 static const int DEV_W = 10, DEV_H = 10; variable
46 for (int i = 0; i < DEV_W; ++i) { in check_4444()
77 for (int i = 0; i < DEV_W; ++i) { in check_565()
112 SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in run_test()
115 auto proxy = sk_gpu_test::MakeTextureProxyFromData(context, false, DEV_W, DEV_H, in run_test()
138 static const int CONTROL_ARRAY_SIZE = DEV_W * DEV_H;
DVkDrawableTest.cpp30 static const int DEV_W = 16, DEV_H = 16; variable
221 const SkImageInfo ii = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in draw_drawable_test()
228 sk_sp<TestDrawable> drawable(new TestDrawable(gpu->vkInterface(), childContext, DEV_W, DEV_H)); in draw_drawable_test()
233 SkIRect rect = SkIRect::MakeLTRB(0, DEV_H/2, DEV_W, DEV_H); in draw_drawable_test()
245 for (int cx = 0; cx < DEV_W && !failureFound; ++cx) { in draw_drawable_test()
246 SkPMColor canvasPixel = canvasPixels[cy * DEV_W + cx]; in draw_drawable_test()
248 if (cx < DEV_W / 2) { in draw_drawable_test()
DVkHardwareBufferTest.cpp40 static const int DEV_W = 16, DEV_H = 16; variable
265 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForRead()
293 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForWrite()
623 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); in checkOptimalHardwareBuffer()
698 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer()
812 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead()
970 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite()
988 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
1020 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
1023 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
[all …]
/external/skia/tests/
DWritePixelsTest.cpp24 static const int DEV_W = 100, DEV_H = 100; variable
25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
29 SkASSERT(x >= 0 && x < DEV_W); in get_canvas_color()
115 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_surface()
117 for (int x = 0; x < DEV_W; ++x) { in fill_surface()
224 if (surf->width() != DEV_W || surf->height() != DEV_H) { in check_write()
232 for (int cx = 0; cx < DEV_W; ++cx) { in check_write()
261 const char* pad = reinterpret_cast<const char*>(canvasPixels + DEV_W); in check_write()
262 for (size_t px = 0; px < canvasRowBytes - 4 * DEV_W; ++px) { in check_write()
330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels()
[all …]
DGrAHardwareBufferTest.cpp26 static const int DEV_W = 16, DEV_H = 16; variable
29 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
61 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
64 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
78 for (int x = 0; x < DEV_W && result; ++x) { in check_read()
122 hwbDesc.width = DEV_W; in basic_draw_test_helper()
153 int nextLineStep = DEV_W; in basic_draw_test_helper()
156 src += (DEV_H-1)*DEV_W; in basic_draw_test_helper()
160 memcpy(dst, src, DEV_W * bbp); in basic_draw_test_helper()
178 SkImageInfo imageInfo = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in basic_draw_test_helper()
[all …]
DReadPixelsTest.cpp28 static const int DEV_W = 100, DEV_H = 100; variable
29 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H);
30 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1,
34 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
109 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
112 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
285 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10),
287 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4),
293 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4),
295 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4),
[all …]
DFloatingPointTextureTest.cpp27 static const int DEV_W = 100, DEV_H = 100; variable
52 {colorType, kPremul_SkAlphaType, nullptr, DEV_W, DEV_H}, in runFPTest()
66 bool result = sContext->readPixels({colorType, kPremul_SkAlphaType, nullptr, DEV_W, DEV_H}, in runFPTest()
74 static const int HALF_ALPHA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 1 /*alpha-only*/;
83 static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/;
DPackedConfigsTextureTest.cpp23 static const int DEV_W = 10, DEV_H = 10; variable
47 for (int i = 0; i < DEV_W; ++i) { in check_4444()
78 for (int i = 0; i < DEV_W; ++i) { in check_565()
113 SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in run_test()
119 {grColorType, kPremul_SkAlphaType, nullptr, DEV_W, DEV_H}, in run_test()
145 static const int CONTROL_ARRAY_SIZE = DEV_W * DEV_H;
DVkDrawableTest.cpp30 static const int DEV_W = 16, DEV_H = 16; variable
221 const SkImageInfo ii = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in draw_drawable_test()
228 sk_sp<TestDrawable> drawable(new TestDrawable(gpu->vkInterface(), childContext, DEV_W, DEV_H)); in draw_drawable_test()
233 SkIRect rect = SkIRect::MakeLTRB(0, DEV_H/2, DEV_W, DEV_H); in draw_drawable_test()
245 for (int cx = 0; cx < DEV_W && !failureFound; ++cx) { in draw_drawable_test()
246 SkPMColor canvasPixel = canvasPixels[cy * DEV_W + cx]; in draw_drawable_test()
248 if (cx < DEV_W / 2) { in draw_drawable_test()
DVkHardwareBufferTest.cpp40 static const int DEV_W = 16, DEV_H = 16; variable
266 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForRead()
294 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForWrite()
631 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); in checkOptimalHardwareBuffer()
704 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer()
802 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead()
963 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite()
981 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
1013 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
1016 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
[all …]