Searched refs:DEV_W (Results 1 – 4 of 4) sorted by relevance
/external/skia/tests/ |
D | WritePixelsTest.cpp | 21 static const int DEV_W = 100, DEV_H = 100; variable 22 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 23 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, 28 SkASSERT(x >= 0 && x < DEV_W); in get_canvas_color() 114 bmp.allocN32Pixels(DEV_W, DEV_H); in fill_canvas() 116 for (int x = 0; x < DEV_W; ++x) { in fill_canvas() 206 if (canvasInfo.width() != DEV_W || in check_write() 216 for (int cx = 0; cx < DEV_W; ++cx) { in check_write() 241 const char* pad = reinterpret_cast<const char*>(canvasPixels + DEV_W); in check_write() 242 for (size_t px = 0; px < canvasRowBytes - 4 * DEV_W; ++px) { in check_write() [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); 27 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, 31 SkASSERT(x >= 0 && x < DEV_W); in get_src_color() 103 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap() 106 for (int x = 0; x < DEV_W; ++x) { in make_src_bitmap() 129 texture->writePixels(0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp.getPixels(), in fill_src_texture() 320 SkIRect::MakeLTRB(-10, -10, DEV_W + 10, DEV_H + 10), 322 SkIRect::MakeLTRB(DEV_W / 4, DEV_H / 4, 3 * DEV_W / 4, 3 * DEV_H / 4), 328 SkIRect::MakeLTRB(-10, -10, DEV_W / 4, DEV_H / 4), [all …]
|
D | FloatingPointTextureTest.cpp | 24 static const int DEV_W = 100, DEV_H = 100; variable 25 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 50 desc.fWidth = DEV_W; in runFPTest() 61 … fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer.begin(), 0)); in runFPTest() 67 static const int RGBA32F_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4; 76 static const int RG32F_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 2; 84 static const int HALF_ALPHA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 1 /*alpha-only*/; 93 static const int HALF_RGBA_CONTROL_ARRAY_SIZE = DEV_W * DEV_H * 4 /*RGBA*/;
|
D | PackedConfigsTextureTest.cpp | 21 static const int DEV_W = 10, DEV_H = 10; variable 22 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); 46 for (int i = 0; i < DEV_W; ++i) { in check_4444() 77 for (int i = 0; i < DEV_W; ++i) { in check_565() 115 desc.fWidth = DEV_W; in runTest() 123 fpTexture->readPixels(0, 0, DEV_W, DEV_H, kRGBA_8888_GrPixelConfig, readBuffer.begin(), 0); in runTest() 133 static const int CONTROL_ARRAY_SIZE = DEV_W * DEV_H;
|