Home
last modified time | relevance | path

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

/third_party/skia/tests/
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()
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()
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()
DSurfaceTest.cpp500 SkSurface* surface2) { in test_crbug263329() argument
506 SkCanvas* canvas2 = surface2->getCanvas(); in test_crbug263329()
517 sk_sp<SkImage> image3(surface2->makeImageSnapshot()); 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() local
541 test_crbug263329(reporter, surface1.get(), surface2.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/docs/examples/
Df16to8888drawImageBug.cpp19 sk_sp<SkSurface> surface2 = SkSurface::MakeRaster(imageInfo2); in draw() local
20 surface2->getCanvas()->drawImage(surface->makeImageSnapshot(), 0, 0); in draw()
23 canvas->drawImage(surface2->makeImageSnapshot(), 50, 0); in draw()
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/
DEGLSurfaceTest.cpp1241 EGLSurface surface2; in TEST_P() local
1249 surface2 = eglCreatePbufferSurface(mDisplay, mConfig, surfaceAttributes); in TEST_P()
1264 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, surface2, surface1, mContext)); 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 = eglCreatePbufferSurface(mDisplay, mConfig, surfaceAttributes); in TEST_P()
1321 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, surface2, surface1, mContext)); in TEST_P()
1329 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, surface2, surface2, mContext)); in TEST_P()
1333 eglDestroySurface(mDisplay, surface2); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/wsi/
DvktWsiPresentIdWaitTests.cpp920 …const vk::Unique<vk::VkSurfaceKHR> surface2 (createSurface(instHelper.vki, instHelper.instanc… in iterate() local
921 …lper.vki, instHelper.instance, vector<vk::VkSurfaceKHR>{surface1.get(), surface2.get()}, getRequir… in iterate()
926 …wapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSiz… in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/wsi/
DvktWsiPresentIdWaitTests.cpp920 …const vk::Unique<vk::VkSurfaceKHR> surface2 (createSurface(instHelper.vki, instHelper.instanc… in iterate() local
921 …lper.vki, instHelper.instance, vector<vk::VkSurfaceKHR>{surface1.get(), surface2.get()}, getRequir… in iterate()
926 …wapchainParameters(m_wsiType, instHelper.vki, devHelper.physicalDevice, surface2.get(), desiredSiz… in iterate()
/third_party/vk-gl-cts/modules/egl/
DteglGLES2SharingThreadedTests.cpp3066 SharedPtr<GLES2ThreadTest::Surface> surface2; in init() local
3074 …peration(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,… in init()
3127 m_threads[1]->addOperation(new GLES2ThreadTest::DestroySurface(m_eglDisplay, surface2)); in init()