Home
last modified time | relevance | path

Searched refs:fContext (Results 1 – 25 of 199) sorted by relevance

12345678

/external/mesa3d/src/gallium/targets/haiku-softpipe/
DGalliumContext.cpp54 fContext[i] = NULL; in GalliumContext()
211 if (fContext[i] == NULL) { in CreateContext()
212 fContext[i] = context; in CreateContext()
241 if (!fContext[contextID]) in DestroyContext()
244 if (fContext[contextID]->st) { in DestroyContext()
245 fContext[contextID]->st->flush(fContext[contextID]->st, 0, NULL); in DestroyContext()
246 fContext[contextID]->st->destroy(fContext[contextID]->st); in DestroyContext()
249 if (fContext[contextID]->postProcess) in DestroyContext()
250 pp_free(fContext[contextID]->postProcess); in DestroyContext()
253 if (fContext[contextID]->read) in DestroyContext()
[all …]
/external/skia/src/gpu/
DGrRecordingContextPriv.h19 uint32_t contextID() const { return fContext->contextID(); } in contextID()
21 bool matches(GrContext_Base* candidate) const { return fContext->matches(candidate); } in matches()
23 const GrContextOptions& options() const { return fContext->options(); } in options()
26 return fContext->explicitlyAllocateGPUResources(); in explicitlyAllocateGPUResources()
29 const GrCaps* caps() const { return fContext->caps(); } in caps()
34 GrImageContext* asImageContext() { return fContext->asImageContext(); } in asImageContext()
35 GrRecordingContext* asRecordingContext() { return fContext->asRecordingContext(); } in asRecordingContext()
36 GrContext* asDirectContext() { return fContext->asDirectContext(); } in asDirectContext()
39 GrProxyProvider* proxyProvider() { return fContext->proxyProvider(); } in proxyProvider()
40 const GrProxyProvider* proxyProvider() const { return fContext->proxyProvider(); } in proxyProvider()
[all …]
DGrContextPriv.h35 uint32_t contextID() const { return fContext->contextID(); } in contextID()
37 bool matches(GrContext_Base* candidate) const { return fContext->matches(candidate); } in matches()
39 const GrContextOptions& options() const { return fContext->options(); } in options()
42 return fContext->explicitlyAllocateGPUResources(); in explicitlyAllocateGPUResources()
45 const GrCaps* caps() const { return fContext->caps(); } in caps()
50 GrImageContext* asImageContext() { return fContext->asImageContext(); } in asImageContext()
51 GrRecordingContext* asRecordingContext() { return fContext->asRecordingContext(); } in asRecordingContext()
52 GrContext* asDirectContext() { return fContext->asDirectContext(); } in asDirectContext()
55 GrProxyProvider* proxyProvider() { return fContext->proxyProvider(); } in proxyProvider()
56 const GrProxyProvider* proxyProvider() const { return fContext->proxyProvider(); } in proxyProvider()
[all …]
DGrImageContextPriv.h19 uint32_t contextID() const { return fContext->contextID(); } in contextID()
21 bool matches(GrContext_Base* candidate) const { return fContext->matches(candidate); } in matches()
23 const GrContextOptions& options() const { return fContext->options(); } in options()
26 return fContext->explicitlyAllocateGPUResources(); in explicitlyAllocateGPUResources()
29 const GrCaps* caps() const { return fContext->caps(); } in caps()
34 GrImageContext* asImageContext() { return fContext->asImageContext(); } in asImageContext()
35 GrRecordingContext* asRecordingContext() { return fContext->asRecordingContext(); } in asRecordingContext()
36 GrContext* asDirectContext() { return fContext->asDirectContext(); } in asDirectContext()
39 GrProxyProvider* proxyProvider() { return fContext->proxyProvider(); } in proxyProvider()
40 const GrProxyProvider* proxyProvider() const { return fContext->proxyProvider(); } in proxyProvider()
[all …]
DGrBaseContextPriv.h19 uint32_t contextID() const { return fContext->contextID(); } in contextID()
21 bool matches(GrContext_Base* candidate) const { return fContext->matches(candidate); } in matches()
23 const GrContextOptions& options() const { return fContext->options(); } in options()
26 return fContext->explicitlyAllocateGPUResources(); in explicitlyAllocateGPUResources()
29 const GrCaps* caps() const { return fContext->caps(); } in caps()
34 GrImageContext* asImageContext() { return fContext->asImageContext(); } in asImageContext()
35 GrRecordingContext* asRecordingContext() { return fContext->asRecordingContext(); } in asRecordingContext()
36 GrContext* asDirectContext() { return fContext->asDirectContext(); } in asDirectContext()
39 explicit GrBaseContextPriv(GrContext_Base* context) : fContext(context) {} in GrBaseContextPriv()
47 GrContext_Base* fContext; variable
DGrDrawingManager.cpp149 : fContext(context) in GrDrawingManager()
169 fDAG.cleanup(fContext->priv().caps()); in cleanup()
182 return fContext->priv().abandoned(); in wasAbandoned()
206 GR_CREATE_TRACE_MARKER_CONTEXT("GrDrawingManager", "flush", fContext); in flush()
216 auto direct = fContext->priv().asDirectContext(); in flush()
241 fDAG.closeAll(fContext->priv().caps()); in flush()
249 int maxCachedBuffers = fContext->priv().caps()->preferClientSideDynamicBuffers() ? 2 : 6; in flush()
281 onFlushOpList->makeClosed(*fContext->priv().caps()); in flush()
344 GrOpMemoryPool* opMemoryPool = fContext->priv().opMemoryPool(); in flush()
387 auto direct = fContext->priv().asDirectContext(); in executeOpLists()
[all …]
DGrContextPriv.cpp28 SkASSERT(!(P) || !((P)->peekTexture()) || (P)->peekTexture()->getContext() == fContext)
30 SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fContext->singleOwner());)
31 #define RETURN_IF_ABANDONED_PRIV if (fContext->abandoned()) { return; }
32 #define RETURN_FALSE_IF_ABANDONED_PRIV if (fContext->abandoned()) { return false; }
35 return fContext->refCaps(); in refCaps()
39 return fContext->fpFactoryCache(); in fpFactoryCache()
43 return fContext->refOpMemoryPool(); in refOpMemoryPool()
47 fContext->addOnFlushCallbackObject(onFlushCBObject); in addOnFlushCallbackObject()
54 return fContext->makeWrappedSurfaceContext(std::move(proxy), std::move(colorSpace), props); in makeWrappedSurfaceContext()
66 return fContext->makeDeferredSurfaceContext(format, dstDesc, origin, mipMapped, fit, in makeDeferredSurfaceContext()
[all …]
DGrSurfaceContext.cpp19 #define RETURN_FALSE_IF_ABANDONED if (this->fContext->priv().abandoned()) { return false; }
28 : fContext(context) in GrSurfaceContext()
33 return fContext->priv().auditTrail(); in auditTrail()
37 return fContext->priv().drawingManager(); in drawingManager()
41 return fContext->priv().drawingManager(); in drawingManager()
46 return fContext->priv().singleOwner(); in singleOwner()
67 auto direct = fContext->priv().asDirectContext(); in readPixels()
92 auto direct = fContext->priv().asDirectContext(); in writePixels()
108 if (!fContext->priv().caps()->canCopySurface(this->asSurfaceProxy(), src, srcRect, in copy()
113 return this->getOpList()->copySurface(fContext, this->asSurfaceProxy(), in copy()
DGrRenderTargetContext.cpp80 GrBlurUtils::drawShapeWithMaskFilter(fRenderTargetContext->fContext, fRenderTargetContext, in drawShape()
86 auto context = fRenderTargetContext->fContext; in makeGrPaint()
96 return fRenderTargetContext->fContext; in getContext()
114 #define RETURN_IF_ABANDONED if (fContext->priv().abandoned()) { return; }
115 #define RETURN_IF_ABANDONED_PRIV if (fRenderTargetContext->fContext->priv().abandoned()) { return…
116 #define RETURN_FALSE_IF_ABANDONED if (fContext->priv().abandoned()) { return false; }
117 #define RETURN_FALSE_IF_ABANDONED_PRIV if (fRenderTargetContext->fContext->priv().abandoned()) { r…
118 #define RETURN_NULL_IF_ABANDONED if (fContext->priv().abandoned()) { return nullptr; }
186 fRenderTargetProxy->validate(fContext); in validate()
238 GR_CREATE_TRACE_MARKER_CONTEXT("GrRenderTargetContext", "drawGlyphRunList", fContext); in drawGlyphRunList()
[all …]
/external/skqp/src/gpu/
DGrContextPriv.h33 uint32_t contextID() const { return fContext->contextID(); } in contextID()
44 const GrCaps* caps() const { return fContext->fCaps.get(); } in caps()
49 GrDrawingManager* drawingManager() { return fContext->fDrawingManager.get(); } in drawingManager()
91 bool disableGpuYUVConversion() const { return fContext->fDisableGpuYUVConversion; } in disableGpuYUVConversion()
92 bool sharpenMipmappedTextures() const { return fContext->fSharpenMipmappedTextures; } in sharpenMipmappedTextures()
193 SkTaskGroup* getTaskGroup() { return fContext->fTaskGroup.get(); } in getTaskGroup()
195 GrProxyProvider* proxyProvider() { return fContext->fProxyProvider; } in proxyProvider()
196 const GrProxyProvider* proxyProvider() const { return fContext->fProxyProvider; } in proxyProvider()
198 GrResourceProvider* resourceProvider() { return fContext->fResourceProvider; } in resourceProvider()
199 const GrResourceProvider* resourceProvider() const { return fContext->fResourceProvider; } in resourceProvider()
[all …]
DGrDrawingManager.cpp155 : fContext(context) in GrDrawingManager()
177 fDAG.cleanup(fContext->contextPriv().caps()); in cleanup()
211 GR_CREATE_TRACE_MARKER_CONTEXT("GrDrawingManager", "flush", fContext); in flush()
218 GrGpu* gpu = fContext->contextPriv().getGpu(); in flush()
228 fDAG.closeAll(fContext->contextPriv().caps()); in flush()
238 GrOpFlushState flushState(gpu, fContext->contextPriv().resourceProvider(), &fTokenTracker, in flush()
267 onFlushOpList->makeClosed(*fContext->contextPriv().caps()); in flush()
286 GrResourceAllocator alloc(fContext->contextPriv().resourceProvider(), in flush()
331 GrOpMemoryPool* opMemoryPool = fContext->contextPriv().opMemoryPool(); in flush()
341 fContext->contextPriv().getResourceCache()->purgeAsNeeded(); in flush()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_utils.cpp96 uprv_decContextDefault(&fContext, DEC_INIT_BASE); in DecNum()
97 uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN); in DecNum()
98 fContext.traps = 0; // no traps, thank you (what does this even mean?) in DecNum()
102 : fContext(other.fContext) { in DecNum()
104 U_ASSERT(fContext.digits == other.fData.getCapacity()); in DecNum()
105 if (fContext.digits > kDefaultDigits) { in DecNum()
106 void* p = fData.resize(fContext.digits, 0); in DecNum()
166 fContext.digits = maxDigits; in _setTo()
168 fContext.digits = kDefaultDigits; in _setTo()
172 uprv_decNumberFromString(fData.getAlias(), str, &fContext); in _setTo()
[all …]
/external/skia/tools/gpu/gl/mac/
DCreatePlatformGLTestContext_mac.cpp36 CGLContextObj fContext; member in __anon240fa1c00111::MacGLTestContext
41 : fContext(nullptr) in MacGLTestContext()
60 CGLCreateContext(pixFormat, shareContext ? shareContext->fContext : nullptr, &fContext); in MacGLTestContext()
63 if (nullptr == fContext) { in MacGLTestContext()
69 CGLSetCurrentContext(fContext); in MacGLTestContext()
96 if (fContext) { in destroyGLContext()
97 if (CGLGetCurrentContext() == fContext) { in destroyGLContext()
101 CGLReleaseContext(fContext); in destroyGLContext()
102 fContext = nullptr; in destroyGLContext()
110 CGLSetCurrentContext(fContext); in onPlatformMakeCurrent()
[all …]
/external/skqp/tools/gpu/gl/mac/
DCreatePlatformGLTestContext_mac.cpp36 CGLContextObj fContext; member in __anon76d513370111::MacGLTestContext
41 : fContext(nullptr) in MacGLTestContext()
60 CGLCreateContext(pixFormat, shareContext ? shareContext->fContext : nullptr, &fContext); in MacGLTestContext()
63 if (nullptr == fContext) { in MacGLTestContext()
69 CGLSetCurrentContext(fContext); in MacGLTestContext()
96 if (fContext) { in destroyGLContext()
97 if (CGLGetCurrentContext() == fContext) { in destroyGLContext()
101 CGLReleaseContext(fContext); in destroyGLContext()
102 fContext = nullptr; in destroyGLContext()
110 CGLSetCurrentContext(fContext); in onPlatformMakeCurrent()
[all …]
/external/skqp/src/core/
DSkDeferredDisplayListRecorder.cpp76 fContext = GrContextPriv::MakeDDL(fCharacterization.refContextInfo()); in SkDeferredDisplayListRecorder()
81 if (fContext) { in ~SkDeferredDisplayListRecorder()
82 auto proxyProvider = fContext->contextPriv().proxyProvider(); in ~SkDeferredDisplayListRecorder()
99 SkASSERT(fContext); in init()
110 auto proxyProvider = fContext->contextPriv().proxyProvider(); in init()
114 if (GrBackendApi::kOpenGL != fContext->backend() || in init()
134 if (fContext->contextPriv().caps()->usesMixedSamples() && desc.fSampleCnt > 1 && !usesGLFBO0) { in init()
148 const GrBackendFormat format = fContext->contextPriv().caps()->getBackendFormatFromColorType( in init()
170 sk_sp<GrSurfaceContext> c = fContext->contextPriv().makeWrappedSurfaceContext( in init()
174 fSurface = SkSurface_Gpu::MakeWrappedRenderTarget(fContext.get(), in init()
[all …]
/external/skia/src/core/
DSkDeferredDisplayListRecorder.cpp74 fContext = GrContextPriv::MakeDDL(fCharacterization.refContextInfo()); in SkDeferredDisplayListRecorder()
79 if (fContext) { in ~SkDeferredDisplayListRecorder()
80 auto proxyProvider = fContext->priv().proxyProvider(); in ~SkDeferredDisplayListRecorder()
97 SkASSERT(fContext); in init()
108 auto proxyProvider = fContext->priv().proxyProvider(); in init()
112 if (GrBackendApi::kOpenGL != fContext->backend() || in init()
144 if (fContext->priv().caps()->usesMixedSamples() && desc.fSampleCnt > 1 && !usesGLFBO0) { in init()
158 const GrBackendFormat format = fContext->priv().caps()->getBackendFormatFromColorType( in init()
181 sk_sp<GrSurfaceContext> c = fContext->priv().makeWrappedSurfaceContext( in init()
185 fSurface = SkSurface_Gpu::MakeWrappedRenderTarget(fContext.get(), in init()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/serializer/dom3/
DNamespaceSupport.java87 protected int[] fContext = new int[8]; field in NamespaceSupport
114 fContext[fCurrentContext] = fNamespaceSize; in reset()
133 if (fCurrentContext + 1 == fContext.length) { in pushContext()
134 int[] contextarray = new int[fContext.length * 2]; in pushContext()
135 System.arraycopy(fContext, 0, contextarray, 0, fContext.length); in pushContext()
136 fContext = contextarray; in pushContext()
140 fContext[++fCurrentContext] = fNamespaceSize; in pushContext()
149 fNamespaceSize = fContext[fCurrentContext--]; in popContext()
162 for (int i = fNamespaceSize; i > fContext[fCurrentContext]; i -= 2) { in declarePrefix()
235 return (fNamespaceSize - fContext[fCurrentContext]) / 2; in getDeclaredPrefixCount()
[all …]
/external/skqp/src/sksl/
DSkSLGLSLCodeGenerator.cpp87 if (component == *fContext.fFloat_Type || component == *fContext.fHalf_Type) { in getTypeName()
90 else if (component == *fContext.fDouble_Type) { in getTypeName()
93 else if (component == *fContext.fInt_Type || in getTypeName()
94 component == *fContext.fShort_Type || in getTypeName()
95 component == *fContext.fByte_Type) { in getTypeName()
98 else if (component == *fContext.fUInt_Type || in getTypeName()
99 component == *fContext.fUShort_Type || in getTypeName()
100 component == *fContext.fUByte_Type) { in getTypeName()
103 else if (component == *fContext.fBool_Type) { in getTypeName()
115 if (component == *fContext.fFloat_Type || component == *fContext.fHalf_Type) { in getTypeName()
[all …]
/external/skqp/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp69 GLXContext fContext; member in __anon8a29252b0111::GLXGLTestContext
106 : fContext(nullptr) in GLXGLTestContext()
117 GLXContext glxShareContext = shareContext ? shareContext->fContext : nullptr; in GLXGLTestContext()
208 fContext = glXCreateNewContext(fDisplay, bestFbc, GLX_RGBA_TYPE, 0, True); in GLXGLTestContext()
215 fContext = CreateBestContext(true, fDisplay, bestFbc, glxShareContext); in GLXGLTestContext()
218 fContext = CreateBestContext(false, fDisplay, bestFbc, glxShareContext); in GLXGLTestContext()
221 if (!fContext) { in GLXGLTestContext()
228 if (!glXIsDirect(fDisplay, fContext)) { in GLXGLTestContext()
236 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) { in GLXGLTestContext()
266 if (fContext) { in destroyGLContext()
[all …]
/external/skia/tools/gpu/gl/glx/
DCreatePlatformGLTestContext_glx.cpp69 GLXContext fContext; member in __anon3763b3b40111::GLXGLTestContext
106 : fContext(nullptr) in GLXGLTestContext()
117 GLXContext glxShareContext = shareContext ? shareContext->fContext : nullptr; in GLXGLTestContext()
208 fContext = glXCreateNewContext(fDisplay, bestFbc, GLX_RGBA_TYPE, 0, True); in GLXGLTestContext()
215 fContext = CreateBestContext(true, fDisplay, bestFbc, glxShareContext); in GLXGLTestContext()
218 fContext = CreateBestContext(false, fDisplay, bestFbc, glxShareContext); in GLXGLTestContext()
221 if (!fContext) { in GLXGLTestContext()
228 if (!glXIsDirect(fDisplay, fContext)) { in GLXGLTestContext()
236 if (!glXMakeCurrent(fDisplay, fGlxPixmap, fContext)) { in GLXGLTestContext()
266 if (fContext) { in destroyGLContext()
[all …]
/external/skia/tools/sk_app/
DGLWindowContext.cpp31 SkASSERT(!fContext); in initializeContext()
34 fContext = GrContext::MakeGL(fBackendContext, fDisplayParams.fGrContextOptions); in initializeContext()
35 if (!fContext && fDisplayParams.fMSAASampleCount > 1) { in initializeContext()
45 if (fContext) { in destroyContext()
47 fContext->abandonContext(); in destroyContext()
48 fContext.reset(); in destroyContext()
58 if (fContext) { in getBackbufferSurface()
72 fSurface = SkSurface::MakeFromBackendRenderTarget(fContext.get(), backendRT, in getBackbufferSurface()
/external/skqp/tools/sk_app/
DGLWindowContext.cpp31 SkASSERT(!fContext); in initializeContext()
34 fContext = GrContext::MakeGL(fBackendContext, fDisplayParams.fGrContextOptions); in initializeContext()
35 if (!fContext && fDisplayParams.fMSAASampleCount > 1) { in initializeContext()
45 if (fContext) { in destroyContext()
47 fContext->abandonContext(); in destroyContext()
48 fContext.reset(); in destroyContext()
58 if (fContext) { in getBackbufferSurface()
72 fSurface = SkSurface::MakeFromBackendRenderTarget(fContext.get(), backendRT, in getBackbufferSurface()
/external/skia/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp70 EGLContext fContext; member in __anonad4ed24e0111::EGLGLTestContext
96 : fContext(EGL_NO_CONTEXT) in EGLGLTestContext()
100 EGLContext eglShareContext = shareContext ? shareContext->fContext : nullptr; in EGLGLTestContext()
163 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 3); in EGLGLTestContext()
164 if (EGL_NO_CONTEXT == fContext) { in EGLGLTestContext()
165 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 2); in EGLGLTestContext()
168 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 2); in EGLGLTestContext()
171 fContext = create_gl_egl_context(fDisplay, surfaceConfig, eglShareContext); in EGLGLTestContext()
173 if (EGL_NO_CONTEXT == fContext) { in EGLGLTestContext()
192 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLTestContext()
[all …]
/external/skqp/tools/gpu/gl/egl/
DCreatePlatformGLTestContext_egl.cpp70 EGLContext fContext; member in __anon001443c50111::EGLGLTestContext
96 : fContext(EGL_NO_CONTEXT) in EGLGLTestContext()
100 EGLContext eglShareContext = shareContext ? shareContext->fContext : nullptr; in EGLGLTestContext()
163 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 3); in EGLGLTestContext()
164 if (EGL_NO_CONTEXT == fContext) { in EGLGLTestContext()
165 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 2); in EGLGLTestContext()
168 fContext = create_gles_egl_context(fDisplay, surfaceConfig, eglShareContext, 2); in EGLGLTestContext()
171 fContext = create_gl_egl_context(fDisplay, surfaceConfig, eglShareContext); in EGLGLTestContext()
173 if (EGL_NO_CONTEXT == fContext) { in EGLGLTestContext()
192 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLTestContext()
[all …]
/external/skia/src/sksl/
DSkSLSPIRVCodeGenerator.cpp441 return *fContext.fFloat_Type; in getActualType()
444 return *fContext.fInt_Type; in getActualType()
447 return *fContext.fUInt_Type; in getActualType()
450 if (type.componentType() == *fContext.fHalf_Type) { in getActualType()
451 return fContext.fFloat_Type->toCompound(fContext, type.columns(), type.rows()); in getActualType()
453 if (type.componentType() == *fContext.fShort_Type || in getActualType()
454 type.componentType() == *fContext.fByte_Type) { in getActualType()
455 return fContext.fInt_Type->toCompound(fContext, type.columns(), type.rows()); in getActualType()
457 if (type.componentType() == *fContext.fUShort_Type || in getActualType()
458 type.componentType() == *fContext.fUByte_Type) { in getActualType()
[all …]

12345678