Home
last modified time | relevance | path

Searched refs:sharedContext (Results 1 – 25 of 51) sorted by relevance

123

/external/webrtc/sdk/android/api/org/webrtc/
DEglBase.java153 public static EglBase create(@Nullable Context sharedContext, int[] configAttributes) { in create() argument
154 if (sharedContext == null) { in create()
157 } else if (sharedContext instanceof EglBase14.Context) { in create()
158 return createEgl14((EglBase14.Context) sharedContext, configAttributes); in create()
159 } else if (sharedContext instanceof EglBase10.Context) { in create()
160 return createEgl10((EglBase10.Context) sharedContext, configAttributes); in create()
177 public static EglBase create(Context sharedContext) { in create() argument
178 return create(sharedContext, CONFIG_PLAIN); in create()
190 public static EglBase10 createEgl10(EglBase10.Context sharedContext, int[] configAttributes) { in createEgl10() argument
192 sharedContext == null ? null : sharedContext.getRawContext(), configAttributes); in createEgl10()
[all …]
DSurfaceTextureHelper.java60 final EglBase.Context sharedContext, boolean alignTimestamps, final YuvConverter yuvConverter, in create() argument
76 sharedContext, handler, alignTimestamps, yuvConverter, frameRefMonitor); in create()
91 final String threadName, final EglBase.Context sharedContext) {
92 return create(threadName, sharedContext, /* alignTimestamps= */ false, new YuvConverter(),
102 final String threadName, final EglBase.Context sharedContext, boolean alignTimestamps) {
104 threadName, sharedContext, alignTimestamps, new YuvConverter(), /*frameRefMonitor=*/null);
113 final EglBase.Context sharedContext, boolean alignTimestamps, YuvConverter yuvConverter) {
115 threadName, sharedContext, alignTimestamps, yuvConverter, /*frameRefMonitor=*/null);
177 private SurfaceTextureHelper(Context sharedContext, Handler handler, boolean alignTimestamps,
187 eglBase = EglBase.create(sharedContext, EglBase.CONFIG_PIXEL_BUFFER);
DHardwareVideoDecoderFactory.java39 public HardwareVideoDecoderFactory(@Nullable EglBase.Context sharedContext) { in HardwareVideoDecoderFactory() argument
40 this(sharedContext, /* codecAllowedPredicate= */ null); in HardwareVideoDecoderFactory()
51 public HardwareVideoDecoderFactory(@Nullable EglBase.Context sharedContext, in HardwareVideoDecoderFactory() argument
53 super(sharedContext, in HardwareVideoDecoderFactory()
DHardwareVideoEncoderFactory.java41 @Nullable private final EglBase14.Context sharedContext; field in HardwareVideoEncoderFactory
55 EglBase.Context sharedContext, boolean enableIntelVp8Encoder, boolean enableH264HighProfile) { in HardwareVideoEncoderFactory() argument
56 this(sharedContext, enableIntelVp8Encoder, enableH264HighProfile, in HardwareVideoEncoderFactory()
70 public HardwareVideoEncoderFactory(EglBase.Context sharedContext, boolean enableIntelVp8Encoder, in HardwareVideoEncoderFactory() argument
73 if (sharedContext instanceof EglBase14.Context) { in HardwareVideoEncoderFactory()
74 this.sharedContext = (EglBase14.Context) sharedContext; in HardwareVideoEncoderFactory()
77 this.sharedContext = null; in HardwareVideoEncoderFactory()
128 sharedContext); in createEncoder()
DSurfaceEglRenderer.java50 public void init(final EglBase.Context sharedContext, in init() argument
61 super.init(sharedContext, configAttributes, drawer); in init()
65 public void init(final EglBase.Context sharedContext, final int[] configAttributes, in init() argument
67 init(sharedContext, null /* rendererEvents */, configAttributes, drawer); in init()
DPlatformSoftwareVideoDecoderFactory.java36 public PlatformSoftwareVideoDecoderFactory(@Nullable EglBase.Context sharedContext) { in PlatformSoftwareVideoDecoderFactory() argument
37 super(sharedContext, defaultAllowedPredicate); in PlatformSoftwareVideoDecoderFactory()
DSurfaceViewRenderer.java70 public void init(EglBase.Context sharedContext, RendererCommon.RendererEvents rendererEvents) { in init() argument
71 init(sharedContext, rendererEvents, EglBase.CONFIG_PLAIN, new GlRectDrawer()); in init()
80 public void init(final EglBase.Context sharedContext, in init() argument
87 eglRenderer.init(sharedContext, this /* rendererEvents */, configAttributes, drawer); in init()
DEglRenderer.java208 public void init(@Nullable final EglBase.Context sharedContext, final int[] configAttributes, in init() argument
236 if (sharedContext == null) { in init()
241 eglBase = EglBase.create(sharedContext, configAttributes); in init()
257 public void init(@Nullable final EglBase.Context sharedContext, final int[] configAttributes, in init() argument
259 init(sharedContext, configAttributes, drawer, /* usePresentationTimeStamp= */ false); in init()
/external/skia/tools/gpu/d3d/
DD3DTestContext.cpp19 static D3DTestContext* Create(D3DTestContext* sharedContext) { in Create() argument
22 if (sharedContext) { in Create()
25 backendContext = sharedContext->getD3DBackendContext(); in Create()
70 D3DTestContext* CreatePlatformD3DTestContext(D3DTestContext* sharedContext) { in CreatePlatformD3DTestContext() argument
71 return D3DTestContextImpl::Create(sharedContext); in CreatePlatformD3DTestContext()
/external/skia/tools/gpu/vk/
DVkTestContext.cpp24 static VkTestContext* Create(VkTestContext* sharedContext) { in Create() argument
31 if (sharedContext) { in Create()
32 backendContext = sharedContext->getVkBackendContext(); in Create()
33 extensions = const_cast<GrVkExtensions*>(sharedContext->getVkExtensions()); in Create()
34 features = const_cast<VkPhysicalDeviceFeatures2*>(sharedContext->getVkFeatures()); in Create()
132 VkTestContext* CreatePlatformVkTestContext(VkTestContext* sharedContext) { in CreatePlatformVkTestContext() argument
133 return VkTestContextImpl::Create(sharedContext); in CreatePlatformVkTestContext()
/external/deqp/framework/platform/win32/
DtcuWGLContextFactory.cpp68 …xt (HINSTANCE instance, const wgl::Core& wglCore, const WGLContext* sharedContext, const glu::Re…
93 …text (HINSTANCE instance, const wgl::Core& wglCore, const WGLContext* sharedContext, const glu::Re… in WGLContext() argument
116 if (DE_NULL != sharedContext) in WGLContext()
117 sharedCtx = sharedContext->m_context; in WGLContext()
182 const glu::RenderContext* sharedContext) const in createContext()
184 const WGLContext* sharedWGLContext = static_cast<const WGLContext*>(sharedContext); in createContext()
/external/skia/tools/gpu/mtl/
DMtlTestContext.mm22 static MtlTestContext* Create(MtlTestContext* sharedContext) {
24 if (sharedContext) {
25 MtlTestContextImpl* sharedContextImpl = (MtlTestContextImpl*) sharedContext;
83 MtlTestContext* CreatePlatformMtlTestContext(MtlTestContext* sharedContext) {
84 return MtlTestContextImpl::Create(sharedContext);
/external/skia/tools/gpu/dawn/
DDawnTestContext.cpp100 static DawnTestContext* Create(DawnTestContext* sharedContext) { in Create() argument
103 if (sharedContext) { in Create()
104 device = sharedContext->getDevice(); in Create()
170 DawnTestContext* CreatePlatformDawnTestContext(DawnTestContext* sharedContext) { in CreatePlatformDawnTestContext() argument
171 return DawnTestContextImpl::Create(sharedContext); in CreatePlatformDawnTestContext()
/external/webrtc/sdk/android/src/java/org/webrtc/
DMediaCodecVideoDecoderFactory.java29 private final @Nullable EglBase.Context sharedContext; field in MediaCodecVideoDecoderFactory
40 public MediaCodecVideoDecoderFactory(@Nullable EglBase.Context sharedContext, in MediaCodecVideoDecoderFactory() argument
42 this.sharedContext = sharedContext; in MediaCodecVideoDecoderFactory()
59 sharedContext); in createDecoder()
DEglBase14Impl.java73 public EglBase14Impl(EGLContext sharedContext, int[] configAttributes) { in EglBase14Impl() argument
78 eglContext = createEglContext(sharedContext, eglDisplay, eglConfig, openGlesVersion); in EglBase14Impl()
269 private static EGLContext createEglContext(@Nullable EGLContext sharedContext, in createEglContext() argument
271 if (sharedContext != null && sharedContext == EGL14.EGL_NO_CONTEXT) { in createEglContext()
275 EGLContext rootContext = sharedContext == null ? EGL14.EGL_NO_CONTEXT : sharedContext; in createEglContext()
DEglBase10Impl.java64 public EglBase10Impl(EGLContext sharedContext, int[] configAttributes) { in EglBase10Impl() argument
70 eglContext = createEglContext(sharedContext, eglDisplay, eglConfig, openGlesVersion); in EglBase10Impl()
315 private EGLContext createEglContext(@Nullable EGLContext sharedContext, EGLDisplay eglDisplay, in createEglContext() argument
317 if (sharedContext != null && sharedContext == EGL10.EGL_NO_CONTEXT) { in createEglContext()
321 EGLContext rootContext = sharedContext == null ? EGL10.EGL_NO_CONTEXT : sharedContext; in createEglContext()
DAndroidVideoDecoder.java105 private final @Nullable EglBase.Context sharedContext; field in AndroidVideoDecoder
132 VideoCodecMimeType codecType, int colorFormat, @Nullable EglBase.Context sharedContext) { in AndroidVideoDecoder() argument
138 + " context: " + sharedContext); in AndroidVideoDecoder()
143 this.sharedContext = sharedContext; in AndroidVideoDecoder()
152 if (sharedContext != null) { in initDecode()
189 if (sharedContext == null) { in initDecodeInternal()
666 return SurfaceTextureHelper.create("decoder-texture-thread", sharedContext);
DHardwareVideoEncoder.java117 private final EglBase14.Context sharedContext; field in HardwareVideoEncoder
185 BitrateAdjuster bitrateAdjuster, EglBase14.Context sharedContext) { in HardwareVideoEncoder() argument
196 this.sharedContext = sharedContext; in HardwareVideoEncoder()
264 textureEglBase = EglBase.createEgl14(sharedContext, EglBase.CONFIG_RECORDABLE); in initEncodeInternal()
646 return sharedContext != null && surfaceColorFormat != null;
/external/skqp/tools/gpu/vk/
DVkTestContext.cpp149 static VkTestContext* Create(VkTestContext* sharedContext) { in Create() argument
156 if (sharedContext) { in Create()
157 backendContext = sharedContext->getVkBackendContext(); in Create()
158 extensions = const_cast<GrVkExtensions*>(sharedContext->getVkExtensions()); in Create()
159 features = const_cast<VkPhysicalDeviceFeatures2*>(sharedContext->getVkFeatures()); in Create()
261 VkTestContext* CreatePlatformVkTestContext(VkTestContext* sharedContext) { in CreatePlatformVkTestContext() argument
262 return VkTestContextImpl::Create(sharedContext); in CreatePlatformVkTestContext()
/external/angle/src/libANGLE/renderer/gl/wgl/
DDisplayWGL.cpp770 HGLRC &sharedContext, in initializeContextAttribs() argument
791 return createContextAttribs(requestedVersion, profileMask, sharedContext, useARBShare, in initializeContextAttribs()
809 HGLRC context = createContextAttribs(info.version, profileFlag, sharedContext, useARBShare, in initializeContextAttribs()
822 HGLRC &sharedContext, in createContextAttribs() argument
857 sharedContext = mFunctionsWGL->createContextAttribsARB(mDeviceContext, context, &attribs[0]); in createContextAttribs()
866 HGLRC sharedContext = nullptr; in createRenderer() local
871 context = initializeContextAttribs(mDisplayAttributes, sharedContext, mUseARBShare, in createRenderer()
889 if (!sharedContext) in createRenderer()
891 sharedContext = mFunctionsWGL->createContext(mDeviceContext); in createRenderer()
892 if (!mFunctionsWGL->shareLists(context, sharedContext)) in createRenderer()
[all …]
DRendererWGL.cpp18 HGLRC sharedContext, in RendererWGL() argument
23 mSharedContext(sharedContext), in RendererWGL()
DDisplayWGL.h82 HGLRC sharedContext,
103 HGLRC &sharedContext,
108 HGLRC &sharedContext,
/external/deqp/framework/egl/
DegluGLContextFactory.cpp133 …pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext = DE_NULL);
151 …pFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext);
172 …apFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext* sharedContext) in RenderContext() argument
190 create(displayFactory, windowFactory, pixmapFactory, config, sharedContext); in RenderContext()
310 …apFactory* pixmapFactory, const glu::RenderConfig& config, const glu::RenderContext *sharedContext) in create() argument
316 if (DE_NULL == sharedContext) in create()
320 const RenderContext* context = dynamic_cast<const RenderContext*>(sharedContext); in create()
600 …nderConfig& config, const tcu::CommandLine& cmdLine, const glu::RenderContext *sharedContext) const in createContext()
625 return new RenderContext(&displayFactory, windowFactory, pixmapFactory, config, sharedContext); in createContext()
/external/deqp/framework/platform/lnx/X11/
DtcuLnxX11GlxPlatform.cpp92 const glu::RenderContext* sharedContext) const;
128 const glu::RenderContext* sharedContext,
182 const glu::RenderContext* sharedContext
231 const glu::RenderContext* sharedContext) const in createContext()
234 GlxRenderContext* const renderContext = new GlxRenderContext(*this, config, sharedContext); in createContext()
325 const glu::RenderContext* sharedContext, in createContext() argument
413 …st GlxRenderContext* sharedGlxRenderContext = dynamic_cast<const GlxRenderContext*>(sharedContext); in createContext()
710 const glu::RenderContext* sharedContext) in GlxRenderContext() argument
714 …, m_GLXContext (m_glxVisual.createContext(factory, config.type, sharedContext, config.resetNotifi… in GlxRenderContext()
/external/skqp/tools/gpu/mtl/
DMtlTestContext.mm113 static MtlTestContext* Create(TestContext* sharedContext) {
114 SkASSERT(!sharedContext);
158 TestContext* CreatePlatformMtlTestContext(TestContext* sharedContext) {
159 return MtlTestContext::Create(sharedContext);

123