Home
last modified time | relevance | path

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

/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 …]
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
264 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForRead()
292 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForWrite()
628 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); in checkOptimalHardwareBuffer()
701 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer()
799 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead()
957 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite()
975 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
1007 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
1010 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
[all …]
/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
264 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForRead()
292 GrBackendTexture backendTex(DEV_W, DEV_H, GrMipMapped::kNo, textureInfo); in importHardwareBufferForWrite()
622 REPORTER_ASSERT(reporter, DEV_W <= imageFormatProperties.maxExtent.width); in checkOptimalHardwareBuffer()
697 { DEV_W, DEV_H, 1 }, // VkExtent3D in importHardwareBuffer()
811 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForRead()
969 GrBackendTexture backendTex(DEV_W, DEV_H, imageInfo); in importHardwareBufferForWrite()
987 SkASSERT(x >= 0 && x < DEV_W); in get_src_color()
1019 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
1022 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap()
[all …]