/third_party/flutter/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); 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 …]
|
D | ReadPixelsTest.cpp | 26 static const int DEV_W = 100, DEV_H = 100; variable 27 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 28 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, 32 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 107 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 110 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() 312 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), 314 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), 320 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), 322 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 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 …]
|
D | FloatingPointTextureTest.cpp | 26 static const int DEV_W = 100, DEV_H = 100; variable 49 auto fpProxy = sk_gpu_test::MakeTextureProxyFromData(context, GrRenderable::kYes, DEV_W, in runFPTest() 61 bool result = sContext->readPixels({colorType, kPremul_SkAlphaType, nullptr, DEV_W, DEV_H}, in runFPTest() 69 static const int HALF_ALPHA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 1 /*alpha-only*/; 78 static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/;
|
D | PackedConfigsTextureTest.cpp | 22 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, GrRenderable::kNo, DEV_W, DEV_H, in run_test() 138 static const int CONTROL_ARRAY_SIZE = DEV_W * DEV_H;
|
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() 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()
|
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() 629 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); in checkOptimalHardwareBuffer() 702 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer() 800 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead() 961 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite() 979 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 1011 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 1014 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() [all …]
|
/third_party/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); 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 …]
|
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); 21 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, 25 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 100 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_image() 103 for (int x = 0; x < DEV_W; ++x) { 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 30 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 62 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 65 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() 79 for (int x = 0; x < DEV_W && result; ++x) { in check_read() 123 hwbDesc.width = DEV_W; in basic_draw_test_helper() 154 int nextLineStep = DEV_W; in basic_draw_test_helper() 157 src += (DEV_H-1)*DEV_W; in basic_draw_test_helper() 161 memcpy(dst, src, DEV_W * bbp); in basic_draw_test_helper() 179 SkImageInfo imageInfo = SkImageInfo::Make(DEV_W, DEV_H, kRGBA_8888_SkColorType, 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() 252 for (int cx = 0; cx < DEV_W && !failureFound; ++cx) { in draw_drawable_test() 253 SkPMColor canvasPixel = canvasPixels[cy * DEV_W + cx]; in draw_drawable_test() 255 if (cx < DEV_W / 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() 633 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); 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() 991 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 1023 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 1026 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() [all …]
|
D | MultiPictureDocumentTest.cpp | 179 static const int DEV_W = 16, DEV_H = 16; variable 182 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 214 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 217 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() 239 hwbDesc.width = DEV_W; in makeAHardwareBufferTestImage() 271 int nextLineStep = DEV_W; in makeAHardwareBufferTestImage() 274 memcpy(dst, src, DEV_W * bbp); in makeAHardwareBufferTestImage()
|