/external/skia/tests/ |
D | WritePixelsTest.cpp | 24 static const int DEV_W = 100, DEV_H = 100; variable 25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 30 SkASSERT(y >= 0 && y < DEV_H); in get_canvas_color() 115 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_surface() 116 for (int y = 0; y < DEV_H; ++y) { in fill_surface() 224 if (surf->width() != DEV_W || surf->height() != DEV_H) { in check_write() 231 for (int cy = 0; cy < DEV_H; ++cy) { in check_write() 260 if (cy != DEV_H -1) { in check_write() 330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels() 332 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels() [all …]
|
D | ReadPixelsTest.cpp | 19 static const int DEV_W = 100, DEV_H = 100; variable 20 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 22 DEV_H * SK_Scalar1); 26 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 100 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_image() 102 for (int y = 0; y < DEV_H; ++y) { in make_src_image() 277 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), 279 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), 285 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), 287 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H / 4), [all …]
|
D | GrAHardwareBufferTest.cpp | 27 static const int DEV_W = 16, DEV_H = 16; variable 31 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 62 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 64 for (int y = 0; y < DEV_H; ++y) { in make_src_bitmap() 78 for (int y = 0; y < DEV_H && result; ++y) { in check_read() 124 hwbDesc.height = DEV_H; in basic_draw_test_helper() 157 src += (DEV_H-1)*DEV_W; in basic_draw_test_helper() 160 for (int y = 0; y < DEV_H; ++y) { in basic_draw_test_helper() 179 SkImageInfo imageInfo = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in basic_draw_test_helper() 192 readbackBitmap.allocN32Pixels(DEV_W, DEV_H); in basic_draw_test_helper() [all …]
|
D | FloatingPointTextureTest.cpp | 28 static const int DEV_W = 100, DEV_H = 100; variable 52 GrImageInfo info(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*/; 85 static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/;
|
D | VkDrawableTest.cpp | 32 static const int DEV_W = 16, DEV_H = 16; variable 228 const SkImageInfo ii = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in draw_drawable_test() 235 sk_sp<TestDrawable> drawable(new TestDrawable(gpu->vkInterface(), childDContext, DEV_W, DEV_H)); in draw_drawable_test() 240 SkIRect rect = SkIRect::MakeLTRB(0, DEV_H/2, DEV_W, DEV_H); in draw_drawable_test() 251 for (int cy = 0; cy < DEV_H && !failureFound; ++cy) { in draw_drawable_test() 254 if (cy < DEV_H / 2) { in draw_drawable_test()
|
D | VkHardwareBufferTest.cpp | 41 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() 634 REPORTER_ASSERT(reporter, DEV_H <= imageFormatProperties.maxExtent.height); in checkOptimalHardwareBuffer() 706 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer() 811 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead() 973 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite() 992 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 1023 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 1025 for (int y = 0; y < DEV_H; ++y) { in make_src_bitmap() [all …]
|
D | MultiPictureDocumentTest.cpp | 179 static const int DEV_W = 16, DEV_H = 16; variable 183 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 214 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 216 for (int y = 0; y < DEV_H; ++y) { in make_src_bitmap() 240 hwbDesc.height = DEV_H; in makeAHardwareBufferTestImage() 273 for (int y = 0; y < DEV_H; ++y) { in makeAHardwareBufferTestImage()
|
/external/skqp/tests/ |
D | WritePixelsTest.cpp | 24 static const int DEV_W = 100, DEV_H = 100; variable 25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 30 SkASSERT(y >= 0 && y < DEV_H); in get_canvas_color() 115 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_surface() 116 for (int y = 0; y < DEV_H; ++y) { in fill_surface() 224 if (surf->width() != DEV_W || surf->height() != DEV_H) { in check_write() 231 for (int cy = 0; cy < DEV_H; ++cy) { in check_write() 260 if (cy != DEV_H -1) { in check_write() 330 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), in test_write_pixels() 332 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), in test_write_pixels() [all …]
|
D | ReadPixelsTest.cpp | 25 static const int DEV_W = 100, DEV_H = 100; variable 26 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 28 DEV_H * SK_Scalar1); 32 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 106 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 108 for (int y = 0; y < DEV_H; ++y) { 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 …]
|
D | GrAHardwareBufferTest.cpp | 26 static const int DEV_W = 16, DEV_H = 16; variable 30 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 61 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 63 for (int y = 0; y < DEV_H; ++y) { in make_src_bitmap() 77 for (int y = 0; y < DEV_H && result; ++y) { in check_read() 123 hwbDesc.height = DEV_H; in basic_draw_test_helper() 156 src += (DEV_H-1)*DEV_W; in basic_draw_test_helper() 159 for (int y = 0; y < DEV_H; ++y) { in basic_draw_test_helper() 178 SkImageInfo imageInfo = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, in basic_draw_test_helper() 191 readbackBitmap.allocN32Pixels(DEV_W, DEV_H); in basic_draw_test_helper()
|
D | PackedConfigsTextureTest.cpp | 22 static const int DEV_W = 10, DEV_H = 10; variable 45 for (int j = 0; j < DEV_H; ++j) { in check_4444() 47 uint16_t control = controlData[i + j * DEV_H]; in check_4444() 48 uint32_t test = readBuffer[i + j * DEV_H]; in check_4444() 76 for (int j = 0; j < DEV_H; ++j) { in check_565() 78 uint16_t control = controlData[i + j * DEV_H]; in check_565() 79 GrColor test = readBuffer[i + j * DEV_H]; 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;
|
D | FloatingPointTextureTest.cpp | 26 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*/;
|
D | VkDrawableTest.cpp | 30 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() 244 for (int cy = 0; cy < DEV_H && !failureFound; ++cy) { in draw_drawable_test() 247 if (cy < DEV_H / 2) { in draw_drawable_test()
|
D | VkHardwareBufferTest.cpp | 40 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() 624 REPORTER_ASSERT(reporter, DEV_H <= imageFormatProperties.maxExtent.height); 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() 989 SkASSERT(y >= 0 && y < DEV_H); in get_src_color() 1020 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 1022 for (int y = 0; y < DEV_H; ++y) { in make_src_bitmap() [all …]
|
/external/arm-trusted-firmware/lib/debugfs/ |
D | dev.h | 7 #ifndef DEV_H 8 #define DEV_H macro
|