Home
last modified time | relevance | path

Searched refs:surface2 (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/tests/
H A DGrOpListFlushTest.cpp39 sk_sp<SkSurface> surface2 = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, imageInfo); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
40 if (!surface2) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
45 SkCanvas* canvas2 = surface2->getCanvas(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
66 image = surface2->makeImageSnapshot(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
83 REPORTER_ASSERT(reporter, surface2->readPixels(readbackBitmap, 0, 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
H A DSkbug12214.cpp19 sk_sp<SkSurface> surface2 = SkSurface::MakeRaster(imageInfo); in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
22 surface1->draw(surface2->getCanvas(), /*x=*/0, /*y=*/0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
H A DVkProtectedContextTest.cpp302 auto surface2 = create_protected_sksurface(protectedTestHelper->directContext(), reporter); in DEF_GPUTEST() local
303 REPORTER_ASSERT(reporter, surface2); in DEF_GPUTEST()
304 SkCanvas* canvas = surface2->getCanvas(); in DEF_GPUTEST()
H A DSurfaceTest.cpp500 SkSurface* surface2) { in test_crbug263329()
506 SkCanvas* canvas2 = surface2->getCanvas(); in test_crbug263329()
517 sk_sp<SkImage> image3(surface2->makeImageSnapshot()); in test_crbug263329()
518 // Trigger copy on write on surface2. The new backing store should not in test_crbug263329()
521 sk_sp<SkImage> image4(surface2->makeImageSnapshot()); in test_crbug263329()
540 auto surface2(surface_func(ctxInfo.directContext(), kPremul_SkAlphaType, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
541 test_crbug263329(reporter, surface1.get(), surface2.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
498 test_crbug263329(skiatest::Reporter* reporter, SkSurface* surface1, SkSurface* surface2) test_crbug263329() argument
/third_party/skia/docs/examples/
H A Df16to8888drawImageBug.cpp19 sk_sp<SkSurface> surface2 = SkSurface::MakeRaster(imageInfo2); in REG_FIDDLE() local
20 surface2->getCanvas()->drawImage(surface->makeImageSnapshot(), 0, 0); in REG_FIDDLE()
23 canvas->drawImage(surface2->makeImageSnapshot(), 50, 0); in REG_FIDDLE()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
H A DEGLSurfaceTest.cpp1241 EGLSurface surface2; in TEST_P() local
1249 surface2 = eglCreatePbufferSurface(mDisplay, mConfig, surfaceAttributes); in TEST_P()
1263 // Blit from surface1 to surface2. in TEST_P()
1264 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, surface2, surface1, mContext)); in TEST_P()
1272 // Confirm surface2 has the blited clear color. in TEST_P()
1273 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, surface2, surface2, mContext)); in TEST_P()
1277 eglDestroySurface(mDisplay, surface2); in TEST_P()
1291 EGLSurface surface2; in TEST_P() local
1299 surface2 in TEST_P()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
H A DvktWsiPresentIdWaitTests.cpp920 const vk::Unique<vk::VkSurfaceKHR> surface2 (createSurface(instHelper.vki, instHelper.instance, m_wsiType, native.getDisplay(), native.getWindow(1), m_context.getTestContext().getCommandLine())); in iterate()
921 const DeviceHelper devHelper (m_context, instHelper.vki, instHelper.instance, vector<vk::VkSurfaceKHR>{surface1.get(), surface2.get()}, getRequiredDeviceExts()); in iterate()
926 const vk::VkSwapchainCreateInfoKHR swapchainInfo2 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, 2); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
H A DvktWsiPresentIdWaitTests.cpp920 const vk::Unique<vk::VkSurfaceKHR> surface2 (createSurface(instHelper.vki, instHelper.instance, m_wsiType, native.getDisplay(), native.getWindow(1), m_context.getTestContext().getCommandLine())); in iterate()
921 const DeviceHelper devHelper (m_context, instHelper.vki, instHelper.instance, vector<vk::VkSurfaceKHR>{surface1.get(), surface2.get()}, getRequiredDeviceExts()); in iterate()
926 const vk::VkSwapchainCreateInfoKHR swapchainInfo2 = getBasicSwapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSize, 2); in iterate()
/third_party/vk-gl-cts/modules/egl/
H A DteglGLES2SharingThreadedTests.cpp3066 SharedPtr<GLES2ThreadTest::Surface> surface2; in init() local
3074 m_threads[1]->addOperation(new GLES2ThreadTest::CreatePBufferSurface(m_eglDisplay, m_eglConfig, 400, 400, surface2)); in init()
3078 m_threads[1]->addOperation(new GLES2ThreadTest::MakeCurrent(*m_threads[1], m_eglDisplay, surface2, contex2)); in init()
3127 m_threads[1]->addOperation(new GLES2ThreadTest::DestroySurface(m_eglDisplay, surface2)); in init()

Completed in 19 milliseconds