/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/ |
D | SurfaceEGL.cpp | 20 mSurface(EGL_NO_SURFACE), in SurfaceEGL() 26 if (mSurface != EGL_NO_SURFACE) in ~SurfaceEGL() 28 EGLBoolean success = mEGL->destroySurface(mSurface); in ~SurfaceEGL() 41 EGLBoolean success = mEGL->swapBuffers(mSurface); in swap() 54 success = mEGL->swapBuffersWithDamageKHR(mSurface, rects, n_rects); in swapWithDamage() 58 success = mEGL->swapBuffers(mSurface); in swapWithDamage() 79 EGLBoolean success = mEGL->presentationTimeANDROID(mSurface, time); in setPresentationTime() 95 EGLBoolean success = mEGL->bindTexImage(mSurface, buffer); in bindTexImage() 105 EGLBoolean success = mEGL->releaseTexImage(mSurface, buffer); in releaseTexImage() 126 EGLBoolean success = mEGL->querySurface(mSurface, EGL_WIDTH, &value); in getWidth() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/ |
D | SurfaceEGL.cpp | 20 mSurface(EGL_NO_SURFACE), in SurfaceEGL() 26 if (mSurface != EGL_NO_SURFACE) in ~SurfaceEGL() 28 EGLBoolean success = mEGL->destroySurface(mSurface); in ~SurfaceEGL() 41 EGLBoolean success = mEGL->swapBuffers(mSurface); in swap() 56 success = mEGL->swapBuffersWithDamageKHR(mSurface, rects, n_rects); in swapWithDamage() 60 success = mEGL->swapBuffers(mSurface); in swapWithDamage() 81 EGLBoolean success = mEGL->presentationTimeANDROID(mSurface, time); in setPresentationTime() 97 EGLBoolean success = mEGL->bindTexImage(mSurface, buffer); in bindTexImage() 107 EGLBoolean success = mEGL->releaseTexImage(mSurface, buffer); in releaseTexImage() 128 EGLBoolean success = mEGL->querySurface(mSurface, EGL_WIDTH, &value); in getWidth() [all …]
|
D | WindowSurfaceEGL.cpp | 36 mSurface = mEGL->createWindowSurface(mConfig, mWindow, nativeAttribs.data()); in initialize() 37 if (mSurface == EGL_NO_SURFACE) in initialize() 48 EGLBoolean result = mEGL->querySurface(mSurface, EGL_BUFFER_AGE_EXT, age); in getBufferAge()
|
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/ |
D | EGLSyncControlTest.cpp | 60 if (mSurface != EGL_NO_SURFACE) in TearDown() 62 eglDestroySurface(mDisplay, mSurface); in TearDown() 63 mSurface = EGL_NO_SURFACE; in TearDown() 132 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), in CreateWindowSurface() 134 if (mSurface == nullptr) in CreateWindowSurface() 149 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in CreateWindowSurface() 168 EGLSurface mSurface = EGL_NO_SURFACE; member in EGLSyncControlTest 204 eglGetSyncValuesCHROMIUM(mDisplay, mSurface, &ust, &msc, &sbc); in TEST_F() 206 ASSERT_EGL_TRUE(eglGetSyncValuesCHROMIUM(mDisplay, mSurface, &ust, &msc, &sbc)); in TEST_F() 216 ASSERT_EGL_TRUE(eglSwapBuffers(mDisplay, mSurface)); in TEST_F() [all …]
|
D | EGLQueryContextTest.cpp | 48 mSurface = eglCreatePbufferSurface(mDisplay, mConfig, surfattrs); in testSetUp() 49 EXPECT_TRUE(mSurface != EGL_NO_SURFACE); in testSetUp() 59 if (mSurface) in testTearDown() 61 eglDestroySurface(mDisplay, mSurface); in testTearDown() 71 EGLSurface mSurface = EGL_NO_SURFACE; member in EGLQueryContextTest 107 ANGLE_SKIP_TEST_IF(!mSurface); in TEST_P() 110 EXPECT_TRUE(eglQuerySurface(mDisplay, mSurface, EGL_RENDER_BUFFER, &renderBuffer) != EGL_FALSE); in TEST_P() 111 EXPECT_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContext) != EGL_FALSE); in TEST_P() 134 mSurface = EGL_NO_SURFACE; in TEST_P()
|
D | EGLContextSharingTest.cpp | 78 if (mSurface != EGL_NO_SURFACE) in testTearDown() 80 eglDestroySurface(mDisplay, mSurface); in testTearDown() 82 mSurface = EGL_NO_SURFACE; in testTearDown() 150 EGLSurface mSurface = EGL_NO_SURFACE; member in __anond3f20f4b0111::EGLContextSharingTestNoFixture 667 EXPECT_TRUE(createWindowSurface(config, mOsWindow->getNativeWindow(), &mSurface)); in TEST_P() 671 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[0])); in TEST_P() 698 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[0])); in TEST_P() 717 EXPECT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[1])); in TEST_P() 727 eglDestroySurface(mDisplay, mSurface); in TEST_P() 728 mSurface = EGL_NO_SURFACE; in TEST_P() [all …]
|
D | EGLSurfaceTestMac.mm | 74 if (mSurface) 76 eglSwapBuffers(mDisplay, mSurface); 81 if (mSurface) 83 eglDestroySurface(mDisplay, mSurface); 107 mSurface = eglCreateWindowSurface(mDisplay, mConfig, nativeWindow, nullptr); 110 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); 121 EGLSurface mSurface = EGL_NO_SURFACE;
|
D | EGLPresentPathD3D11Test.cpp | 23 mSurface(EGL_NO_SURFACE), in EGLPresentPathD3D11() 83 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in createWindowSurface() 126 mSurface = eglCreatePbufferFromClientBuffer(mDisplay, EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE, in createPbufferFromClientBufferSurface() 128 ASSERT_TRUE(EGL_NO_SURFACE != mSurface); in createPbufferFromClientBufferSurface() 131 void makeCurrent() { ASSERT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)); } in makeCurrent() 141 if (mSurface != EGL_NO_SURFACE) in testTearDown() 143 eglDestroySurface(mDisplay, mSurface); in testTearDown() 144 mSurface = EGL_NO_SURFACE; in testTearDown() 299 EGLSurface mSurface; member in EGLPresentPathD3D11
|
D | EGLDeviceTest.cpp | 36 mSurface(EGL_NO_SURFACE), in EGLDeviceCreationTest() 78 if (mSurface != EGL_NO_SURFACE) in testTearDown() 80 eglDestroySurface(mDisplay, mSurface); in testTearDown() 81 mSurface = EGL_NO_SURFACE; in testTearDown() 128 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in CreateWindowSurface() 137 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in CreateWindowSurface() 174 EGLSurface mSurface; member in EGLDeviceCreationTest
|
D | EGLIOSurfaceClientBufferTest.cpp | 35 explicit ScopedIOSurfaceRef(IOSurfaceRef surface) : mSurface(surface) {} in ScopedIOSurfaceRef() 39 if (mSurface != nullptr) in ~ScopedIOSurfaceRef() 41 CFRelease(mSurface); in ~ScopedIOSurfaceRef() 42 mSurface = nullptr; in ~ScopedIOSurfaceRef() 46 IOSurfaceRef get() const { return mSurface; } in get() 50 if (mSurface != nullptr) in ScopedIOSurfaceRef() 52 CFRelease(mSurface); in ScopedIOSurfaceRef() 54 mSurface = other.mSurface; in ScopedIOSurfaceRef() 55 other.mSurface = nullptr; in ScopedIOSurfaceRef() 60 if (mSurface != nullptr) in operator =() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/egl_tests/ |
D | EGLSyncControlTest.cpp | 60 if (mSurface != EGL_NO_SURFACE) in TearDown() 62 eglDestroySurface(mDisplay, mSurface); in TearDown() 63 mSurface = EGL_NO_SURFACE; in TearDown() 132 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), in CreateWindowSurface() 134 if (mSurface == nullptr) in CreateWindowSurface() 149 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in CreateWindowSurface() 168 EGLSurface mSurface = EGL_NO_SURFACE; member in EGLSyncControlTest 204 eglGetSyncValuesCHROMIUM(mDisplay, mSurface, &ust, &msc, &sbc); in TEST_F() 206 ASSERT_EGL_TRUE(eglGetSyncValuesCHROMIUM(mDisplay, mSurface, &ust, &msc, &sbc)); in TEST_F() 216 ASSERT_EGL_TRUE(eglSwapBuffers(mDisplay, mSurface)); in TEST_F() [all …]
|
D | EGLDeviceTest.cpp | 36 mSurface(EGL_NO_SURFACE), in EGLDeviceCreationTest() 78 if (mSurface != EGL_NO_SURFACE) in testTearDown() 80 eglDestroySurface(mDisplay, mSurface); in testTearDown() 81 mSurface = EGL_NO_SURFACE; in testTearDown() 140 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in CreateWindowSurface() 149 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in CreateWindowSurface() 186 EGLSurface mSurface; member in EGLDeviceCreationTest 290 ASSERT_EGL_TRUE(eglSwapBuffers(mDisplay, mSurface)); in TEST_P() 296 if (mSurface != EGL_NO_SURFACE) in TEST_P() 298 eglDestroySurface(mDisplay, mSurface); in TEST_P() [all …]
|
D | EGLQueryContextTest.cpp | 46 mSurface = eglCreatePbufferSurface(mDisplay, mConfig, surfattrs); in testSetUp() 47 EXPECT_TRUE(mSurface != EGL_NO_SURFACE); in testSetUp() 56 eglDestroySurface(mDisplay, mSurface); in testTearDown() 65 EGLSurface mSurface; member in EGLQueryContextTest 102 EXPECT_TRUE(eglQuerySurface(mDisplay, mSurface, EGL_RENDER_BUFFER, &renderBuffer) != EGL_FALSE); in TEST_P() 103 EXPECT_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContext) != EGL_FALSE); in TEST_P() 126 mSurface = EGL_NO_SURFACE; in TEST_P()
|
D | EGLPresentPathD3D11Test.cpp | 23 mSurface(EGL_NO_SURFACE), in EGLPresentPathD3D11() 83 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in createWindowSurface() 128 mSurface = eglCreatePbufferFromClientBuffer(mDisplay, EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE, in createPbufferFromClientBufferSurface() 130 ASSERT_TRUE(EGL_NO_SURFACE != mSurface); in createPbufferFromClientBufferSurface() 133 void makeCurrent() { ASSERT_EGL_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContext)); } in makeCurrent() 143 if (mSurface != EGL_NO_SURFACE) in testTearDown() 145 eglDestroySurface(mDisplay, mSurface); in testTearDown() 146 mSurface = EGL_NO_SURFACE; in testTearDown() 299 EGLSurface mSurface; member in EGLPresentPathD3D11
|
D | EGLIOSurfaceClientBufferTest.cpp | 33 explicit ScopedIOSurfaceRef(IOSurfaceRef surface) : mSurface(surface) {} in ScopedIOSurfaceRef() 37 if (mSurface != nullptr) in ~ScopedIOSurfaceRef() 39 CFRelease(mSurface); in ~ScopedIOSurfaceRef() 40 mSurface = nullptr; in ~ScopedIOSurfaceRef() 44 IOSurfaceRef get() const { return mSurface; } in get() 48 if (mSurface != nullptr) in ScopedIOSurfaceRef() 50 CFRelease(mSurface); in ScopedIOSurfaceRef() 52 mSurface = other.mSurface; in ScopedIOSurfaceRef() 53 other.mSurface = nullptr; in ScopedIOSurfaceRef() 58 if (mSurface != nullptr) in operator =() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | ImageTestMetal.mm | 35 explicit ScopeMetalTextureRef(id<MTLTexture> surface) : mSurface(surface) {} 39 if (mSurface) 42 mSurface = nullptr; 46 id<MTLTexture> get() const { return mSurface; } 49 operator id<MTLTexture>() const { return mSurface; } 52 if (mSurface) 56 mSurface = other.mSurface; 61 if (mSurface) 65 mSurface = other.mSurface; 66 other.mSurface = nil; [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | EGLMakeCurrentPerf.cpp | 36 EGLSurface mSurface; member in __anon1aa577b20111::EGLMakeCurrentPerfTest 46 mSurface(EGL_NO_SURFACE), in EGLMakeCurrentPerfTest() 119 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in SetUp() 120 ASSERT_NE(EGL_NO_SURFACE, mSurface); in SetUp() 121 ASSERT_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[0])); in SetUp() 128 eglDestroySurface(mDisplay, mSurface); in TearDown() 139 eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[mCurrContext]); in step()
|
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/ |
D | EGLMakeCurrentPerf.cpp | 36 EGLSurface mSurface; member in __anonae730bfd0111::EGLMakeCurrentPerfTest 46 mSurface(EGL_NO_SURFACE), in EGLMakeCurrentPerfTest() 119 mSurface = eglCreateWindowSurface(mDisplay, mConfig, mOSWindow->getNativeWindow(), nullptr); in SetUp() 120 ASSERT_NE(EGL_NO_SURFACE, mSurface); in SetUp() 121 ASSERT_TRUE(eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[0])); in SetUp() 128 eglDestroySurface(mDisplay, mSurface); in TearDown() 139 eglMakeCurrent(mDisplay, mSurface, mSurface, mContexts[mCurrContext]); in step()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | IOSurfaceWrappingTests.cpp | 34 ScopedIOSurfaceRef() : mSurface(nullptr) { in ScopedIOSurfaceRef() 36 explicit ScopedIOSurfaceRef(IOSurfaceRef surface) : mSurface(surface) { in ScopedIOSurfaceRef() 40 if (mSurface != nullptr) { in ~ScopedIOSurfaceRef() 41 CFRelease(mSurface); in ~ScopedIOSurfaceRef() 42 mSurface = nullptr; in ~ScopedIOSurfaceRef() 47 return mSurface; in get() 51 if (mSurface != nullptr) { in ScopedIOSurfaceRef() 52 CFRelease(mSurface); in ScopedIOSurfaceRef() 54 mSurface = other.mSurface; in ScopedIOSurfaceRef() 55 other.mSurface = nullptr; in ScopedIOSurfaceRef() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | IOSurfaceWrappingTests.cpp | 35 ScopedIOSurfaceRef() : mSurface(nullptr) { in ScopedIOSurfaceRef() 37 explicit ScopedIOSurfaceRef(IOSurfaceRef surface) : mSurface(surface) { in ScopedIOSurfaceRef() 41 if (mSurface != nullptr) { in ~ScopedIOSurfaceRef() 42 CFRelease(mSurface); in ~ScopedIOSurfaceRef() 43 mSurface = nullptr; in ~ScopedIOSurfaceRef() 48 return mSurface; in get() 52 if (mSurface != nullptr) { in ScopedIOSurfaceRef() 53 CFRelease(mSurface); in ScopedIOSurfaceRef() 55 mSurface = other.mSurface; in ScopedIOSurfaceRef() 56 other.mSurface = nullptr; in ScopedIOSurfaceRef() [all …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | MultisampleTest.cpp | 70 mSurface = eglCreateWindowSurface(mDisplay, multisampledConfig, in testSetUp() 74 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in testSetUp() 80 if (mSurface) in testTearDown() 82 eglSwapBuffers(mDisplay, mSurface); in testTearDown() 87 if (mSurface) in testTearDown() 89 eglDestroySurface(mDisplay, mSurface); in testTearDown() 124 EGLSurface mSurface = EGL_NO_SURFACE; member in __anon7896e3bf0111::MultisampleTest
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | NativeSwapChainImplVk.cpp | 68 : mSurface(surface), mDevice(device) { in NativeSwapChainImpl() 79 if (mSurface != VK_NULL_HANDLE) { in ~NativeSwapChainImpl() 80 mDevice->GetFencedDeleter()->DeleteWhenUnused(mSurface); in ~NativeSwapChainImpl() 81 mSurface = VK_NULL_HANDLE; in ~NativeSwapChainImpl() 86 if (mDevice->ConsumedError(GatherSurfaceInfo(*ToBackend(mDevice->GetAdapter()), mSurface), in UpdateSurfaceConfig() 120 createInfo.surface = mSurface; in Configure()
|
/third_party/flutter/skia/third_party/externals/angle2/util/ |
D | EGLWindow.cpp | 57 mSurface(EGL_NO_SURFACE), in EGLWindow() 70 eglSwapBuffers(mDisplay, mSurface); in swap() 85 return mSurface; in getSurface() 270 mSurface = eglCreateWindowSurface(mDisplay, mConfig, osWindow->getNativeWindow(), in initializeSurface() 272 if (eglGetError() != EGL_SUCCESS || (mSurface == EGL_NO_SURFACE)) in initializeSurface() 485 if (mSurface != EGL_NO_SURFACE) in destroySurface() 489 eglDestroySurface(mDisplay, mSurface); in destroySurface() 490 mSurface = EGL_NO_SURFACE; in destroySurface() 507 return mSurface != EGL_NO_SURFACE && mContext != EGL_NO_CONTEXT && mDisplay != EGL_NO_DISPLAY; in isGLInitialized() 550 if (eglMakeCurrent(mDisplay, mSurface, mSurface, mContext) == EGL_FALSE || in makeCurrent()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | NativeSwapChainImplVk.cpp | 46 : mSurface(surface), mDevice(device) { in NativeSwapChainImpl() 54 if (mSurface != VK_NULL_HANDLE) { in ~NativeSwapChainImpl() 55 mDevice->GetFencedDeleter()->DeleteWhenUnused(mSurface); in ~NativeSwapChainImpl() 56 mSurface = VK_NULL_HANDLE; in ~NativeSwapChainImpl() 62 GatherSurfaceInfo(*ToBackend(mDevice->GetAdapter()), mSurface, &mInfo))) { in Init() 88 createInfo.surface = mSurface; in Configure()
|
/third_party/skia/platform_tools/android/apps/androidkitdemo/src/main/java/org/skia/androidkitdemo1/ |
D | TextActivity.java | 19 Surface mSurface; field in TextRenderer 45 mSurface = surface; in onSurfaceInitialized() 70 Surface mSurface; field in TextActivity
|