Home
last modified time | relevance | path

Searched refs:SkScopeExit (Results 1 – 25 of 31) sorted by relevance

12

/external/skia/src/core/
DSkScopeExit.h17 class SkScopeExit {
19 SkScopeExit() = default;
20 SkScopeExit(std::function<void()> f) : fFn(std::move(f)) {} in SkScopeExit() function
21 SkScopeExit(SkScopeExit&& that) : fFn(std::move(that.fFn)) {} in SkScopeExit() function
23 ~SkScopeExit() { in ~SkScopeExit()
31 SkScopeExit& operator=(SkScopeExit&& that) {
39 SkScopeExit( const SkScopeExit& ) = delete;
40 SkScopeExit& operator=(const SkScopeExit& ) = delete;
57 SkScopeExit SK_MACRO_APPEND_LINE(at_scope_exit_)([&]() { stmt; })
/external/skqp/src/core/
DSkScopeExit.h17 class SkScopeExit {
19 SkScopeExit(std::function<void()> f) : fFn(std::move(f)) {} in SkScopeExit() function
20 SkScopeExit(SkScopeExit&& that) : fFn(std::move(that.fFn)) {} in SkScopeExit() function
22 ~SkScopeExit() { in ~SkScopeExit()
30 SkScopeExit& operator=(SkScopeExit&& that) {
38 SkScopeExit( const SkScopeExit& ) = delete;
39 SkScopeExit& operator=(const SkScopeExit& ) = delete;
56 SkScopeExit SK_MACRO_APPEND_LINE(at_scope_exit_)([&]() { stmt; })
/external/skia/tools/gpu/
DTestContext.cpp41 SkScopeExit TestContext::makeCurrentAndAutoRestore() const { in makeCurrentAndAutoRestore()
42 auto asr = SkScopeExit(this->onPlatformGetAutoContextRestore()); in makeCurrentAndAutoRestore()
DTestContext.h61 SkScopeExit SK_WARN_UNUSED_RESULT makeCurrentAndAutoRestore() const;
DGrContextFactory.cpp67 SkScopeExit restore(nullptr); in destroyContexts()
116 SkScopeExit restore(nullptr); in releaseResourcesAndAbandonContexts()
/external/skqp/tools/gpu/
DTestContext.cpp40 SkScopeExit TestContext::makeCurrentAndAutoRestore() const { in makeCurrentAndAutoRestore()
41 auto asr = SkScopeExit(this->onPlatformGetAutoContextRestore()); in makeCurrentAndAutoRestore()
DTestContext.h60 SkScopeExit SK_WARN_UNUSED_RESULT makeCurrentAndAutoRestore() const;
DGrContextFactory.cpp60 SkScopeExit restore(nullptr); in destroyContexts()
101 SkScopeExit restore(nullptr); in releaseResourcesAndAbandonContexts()
/external/skia/gm/
Dasyncrescaleandread.cpp62 SkFilterQuality quality, SkScopeExit* cleanup) { in do_read_and_scale_yuv()
133 SkScopeExit cleanup; in do_rescale_grid()
238 SkScopeExit scopeExit;
/external/skqp/tools/gpu/gl/mac/
DCreatePlatformGLTestContext_mac.cpp68 SkScopeExit restorer(context_restorer()); in MacGLTestContext()
/external/skia/tools/gpu/gl/mac/
DCreatePlatformGLTestContext_mac.cpp69 SkScopeExit restorer(context_restorer()); in MacGLTestContext()
/external/skqp/tools/gpu/gl/iOS/
DCreatePlatformGLTestContext_iOS.mm57 SkScopeExit restorer(context_restorer());
/external/skqp/tools/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp133 SkScopeExit restorer(context_restorer()); in WinGLTestContext()
/external/skia/tools/gpu/gl/win/
DCreatePlatformGLTestContext_win.cpp134 SkScopeExit restorer(context_restorer()); in WinGLTestContext()
/external/skia/tools/gpu/gl/iOS/
DCreatePlatformGLTestContext_iOS.mm58 SkScopeExit restorer(context_restorer());
/external/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp235 SkScopeExit restorer(context_restorer()); in GLXGLTestContext()
/external/skqp/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp234 SkScopeExit restorer(context_restorer()); in GLXGLTestContext()
/external/skia/tests/
DSurfaceTest.cpp220 SkScopeExit freeTex([&backendTex, context] { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1015 SkScopeExit delete1( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1023 SkScopeExit delete2( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
1032 SkScopeExit delete3( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/image/
DSkImage_GpuYUVA.cpp275 SkScopeExit callDone([promiseDoneProc, textureContexts, numTextures, &proxiesCreated]() { in MakePromiseYUVATexture()
/external/skqp/tools/gpu/gl/angle/
DGLTestContext_angle.cpp230 SkScopeExit restorer(context_restorer()); in ANGLEGLContext()
/external/skqp/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp191 SkScopeExit restorer(context_restorer()); in EGLGLTestContext()
/external/skia/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp285 SkScopeExit restorer(context_restorer()); in CommandBufferGLTestContext()
/external/skqp/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp285 SkScopeExit restorer(context_restorer()); in CommandBufferGLTestContext()
/external/skia/src/image/
DSkImage_GpuYUVA.cpp336 SkScopeExit callDone([promiseDoneProc, textureContexts, numTextures, &proxiesCreated]() { in MakePromiseYUVATexture()
/external/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp198 SkScopeExit restorer(context_restorer()); in EGLGLTestContext()

12