Home
last modified time | relevance | path

Searched refs:kH (Results 1 - 13 of 13) sorted by relevance

/third_party/skia/tests/
H A DCopySurfaceTest.cpp36 static const int kH = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
39 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
40 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
45 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
50 { 0, 0, kW , kH }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
51 {-1, -1, kW+1, kH+1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
52 { 1, 1, kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
59 { kW/2, kH/4}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 { kW-1, kH in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DClearTest.cpp78 static const int kH = 10; in clear_op_test() local
80 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test()
85 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
86 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in clear_op_test()
88 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
89 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
93 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
94 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in clear_op_test()
96 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
97 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH in clear_op_test()
[all...]
H A DVkWrapTests.cpp31 const int kH = 1024; variable
38 dContext, kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo); in wrap_tex_test()
59 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
72 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
84 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
106 gpu->createTestingOnlyBackendRenderTarget({kW, kH}, ct, sampleCnt); in wrap_rt_test()
121 GrBackendRenderTarget backendRT(kW, kH, 1, backendCopy); in wrap_rt_test()
131 GrBackendRenderTarget backendRT(kW, kH, 1, backendCopy); in wrap_rt_test()
144 dContext, kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kYes); in wrap_trt_test()
162 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCop in wrap_trt_test()
[all...]
H A DVkProtectedContextTest.cpp30 const int kH = 8; in create_protected_sksurface() local
35 {kW, kH}, in create_protected_sksurface()
45 {kW, kH}, in create_protected_sksurface()
103 const int kH = 8; in DEF_GPUTEST() local
106 kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
119 const int kH = 8; in DEF_GPUTEST() local
122 kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
H A DSRGBReadWritePixelsTest.cpp179 static constexpr int kH = 255; variable
182 std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]); in make_data()
183 for (int j = 0; j < kH; ++j) { in make_data()
197 kW, kH); in make_surface_context()
217 auto writeII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
227 auto readII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
H A DReadWritePixelsGpuTest.cpp390 static constexpr int kH = 16; in gpu_read_pixels_test_driver() local
392 const std::vector<SkIRect> longRectArray = make_long_rect_array(kW, kH); in gpu_read_pixels_test_driver()
393 const std::vector<SkIRect> shortRectArray = make_short_rect_array(kW, kH); in gpu_read_pixels_test_driver()
413 auto refInfo = SkImageInfo::Make(kW, kH, in gpu_read_pixels_test_driver()
977 static constexpr int kH = 16; in gpu_write_pixels_test_driver() local
979 const std::vector<SkIRect> longRectArray = make_long_rect_array(kW, kH); in gpu_write_pixels_test_driver()
980 const std::vector<SkIRect> shortRectArray = make_short_rect_array(kW, kH); in gpu_write_pixels_test_driver()
996 const auto dstInfo = SkImageInfo::Make(kW, kH, dstCT, dstAT, SkColorSpace::MakeSRGB()); in gpu_write_pixels_test_driver()
1108 kH = 37; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
1109 SkAutoPixmapStorage refP = make_ref_data(SkImageInfo::Make({kW, kH}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
H A DSurfaceTest.cpp841 const int kH = surface->height(); in test_surface_draw_partially() local
845 surface->getCanvas()->drawRect(SkRect::MakeIWH(kW, kH/2), paint); in test_surface_draw_partially()
848 SkImageInfo readInfo = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in test_surface_draw_partially()
867 for (int y = 0; y < kH/2 && !stop; ++y) { in test_surface_draw_partially()
878 for (int y = kH/2; y < kH && !stop; ++y) { in test_surface_draw_partially()
H A DResourceCacheTest.cpp193 static const int kH = 100; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
196 context, kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/docs/examples/
H A Dskbug6031.cpp7 constexpr float kH = 512; in REG_FIDDLE() local
12 canvas->clipRect(SkRect{0, 0, 2 * kW, 2 * kH}, replaceClipOp); in REG_FIDDLE()
16 canvas->clipRect(SkRect{0, 0, kW, kH}, replaceClipOp); in REG_FIDDLE()
20 canvas->clipRect(SkRect{0, kH, kW, 3 * kH}, replaceClipOp); in REG_FIDDLE()
24 canvas->clipRect(SkRect{kW, 0, 3 * kW, kH}, replaceClipOp); in REG_FIDDLE()
28 canvas->clipRect(SkRect{kW, kH, 3 * kW, 3 * kH}, replaceClipOp); in REG_FIDDLE()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DScissorTests.cpp80 constexpr uint32_t kH = 13; in TEST_P() local
86 pass.SetScissorRect(kX, kY, kW, kH); in TEST_P()
98 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, kX + kW, kY + kH); in TEST_P()
99 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, kX + kW - 1, kY + kH - 1); in TEST_P()
/third_party/skia/gm/
H A Ddrawimageset.cpp221 static constexpr SkScalar kH = kN * kTileH; variable
226 matrices[1].setRotate(90, kW / 2.f, kH / 2.f);
231 matrices[3].postTranslate(kW, kH);
234 matrices[4].postTranslate(0, kH);
235 matrices[4].postRotate(90, kW / 2.f, kH / 2.f);
241 static constexpr SkScalar kTranslate = std::max(kW, kH) * 2.f + 10.f;
H A Dcirculararcs.cpp35 constexpr int kH = 1000; variable
71 constexpr SkScalar kGridH = kH / 2.f; in draw_arcs()
80 canvas->drawLine(kGridW, 0.f , kGridW, SkIntToScalar(kH), linePaint); in draw_arcs()
84 #define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
H A Dshadowutils.cpp40 static constexpr int kH = 960; variable
225 DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { in DEF_SIMPLE_GM()
229 DEF_SIMPLE_GM(shadow_utils_occl, canvas, kW, kH) { in DEF_SIMPLE_GM()
233 DEF_SIMPLE_GM(shadow_utils_gray, canvas, kW, kH) { in DEF_SIMPLE_GM()

Completed in 13 milliseconds