Home
last modified time | relevance | path

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

123

/external/skia/src/gpu/gl/mesa/
DSkMesaGLContext.cpp17 : fContext(static_cast<Context>(0)) in SkMesaGLContext()
24 fContext = (Context)OSMesaCreateContextExt(OSMESA_BGRA, 0, 0, 0, nullptr); in SkMesaGLContext()
26 fContext = (Context)OSMesaCreateContext(OSMESA_BGRA, nullptr); in SkMesaGLContext()
28 if (!fContext) { in SkMesaGLContext()
43 if (!OSMesaMakeCurrent((OSMesaContext)fContext, in SkMesaGLContext()
80 if (fContext) { in destroyGLContext()
81 OSMesaDestroyContext((OSMesaContext)fContext); in destroyGLContext()
82 fContext = static_cast<Context>(0); in destroyGLContext()
89 if (fContext) { in onPlatformMakeCurrent()
90 if (!OSMesaMakeCurrent((OSMesaContext)fContext, fImage, in onPlatformMakeCurrent()
/external/icu/icu4c/source/i18n/
Ddigitlst.cpp69 uprv_decContextDefault(&fContext, DEC_INIT_BASE); in DigitList()
70 fContext.traps = 0; in DigitList()
71 uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN); in DigitList()
72 fContext.digits = fStorage.getCapacity(); in DigitList()
104 uprv_memcpy(&fContext, &other.fContext, sizeof(decContext)); in operator =()
111 fContext.digits = fStorage.getCapacity(); in operator =()
159 int32_t savedDigits = fContext.digits; in compare()
160 fContext.digits = 1; in compare()
161 uprv_decNumberCompare(&result, this->fDecNumber, other.fDecNumber, &fContext); in compare()
162 fContext.digits = savedDigits; in compare()
[all …]
Dreldatefmt.cpp656 fContext(UDISPCTX_CAPITALIZATION_NONE), in RelativeDateTimeFormatter()
667 fContext(UDISPCTX_CAPITALIZATION_NONE), in RelativeDateTimeFormatter()
679 fContext(UDISPCTX_CAPITALIZATION_NONE), in RelativeDateTimeFormatter()
695 fContext(capitalizationContext), in RelativeDateTimeFormatter()
723 fContext(other.fContext), in RelativeDateTimeFormatter()
742 fContext = other.fContext; in operator =()
768 return fContext; in getCapitalizationContext()
/external/skia/src/gpu/gl/mac/
DSkCreatePlatformGLContext_mac.cpp30 CGLContextObj fContext; member in __anon7342f82c0111::MacGLContext
35 : fContext(nullptr) in MacGLContext()
54 CGLCreateContext(pixFormat, nullptr, &fContext); in MacGLContext()
57 if (nullptr == fContext) { in MacGLContext()
62 CGLSetCurrentContext(fContext); in MacGLContext()
89 if (fContext) { in destroyGLContext()
90 CGLReleaseContext(fContext); in destroyGLContext()
91 fContext = nullptr; in destroyGLContext()
99 CGLSetCurrentContext(fContext); in onPlatformMakeCurrent()
103 CGLFlushDrawable(fContext); in onPlatformSwapBuffers()
/external/skia/src/gpu/gl/glx/
DSkCreatePlatformGLContext_glx.cpp59 GLXContext fContext; member in __anonf86f83a00111::GLXGLContext
66 : fContext(nullptr) in GLXGLContext()
72 GLXContext glxShareContext = shareContext ? shareContext->fContext : nullptr; in GLXGLContext()
176 fContext = glXCreateNewContext(fDisplay, bestFbc, GLX_RGBA_TYPE, 0, True); in GLXGLContext()
193 fContext = glXCreateContextAttribsARB(fDisplay, bestFbc, glxShareContext, True, in GLXGLContext()
214 fContext = in GLXGLContext()
221 if (!ctxErrorOccurred && fContext) { in GLXGLContext()
233 if (ctxErrorOccurred || !fContext) { in GLXGLContext()
242 fContext = glXCreateContextAttribsARB(fDisplay, bestFbc, glxShareContext, True, in GLXGLContext()
254 if (ctxErrorOccurred || !fContext) { in GLXGLContext()
[all …]
/external/skia/src/gpu/
DGrDrawingManager.cpp113 SkASSERT(fContext); in newDrawTarget()
127 GrDrawTarget* dt = new GrDrawTarget(rt, fContext->getGpu(), fContext->resourceProvider(), in newDrawTarget()
128 fContext->getAuditTrail(), fOptionsForDrawTargets); in newDrawTarget()
148 fPathRendererChain = new GrPathRendererChain(fContext); in getPathRenderer()
154 fSoftwarePathRenderer = new GrSoftwarePathRenderer(fContext); in getPathRenderer()
174 if (useDIF && fContext->caps()->shaderCaps()->pathRenderingSupport() && in drawContext()
176 GrStencilAttachment* sb = fContext->resourceProvider()->attachStencilAttachment(rt); in drawContext()
178 return new GrPathRenderingDrawContext(fContext, this, rt, surfaceProps, in drawContext()
179 fContext->getAuditTrail(), fSingleOwner); in drawContext()
183 return new GrDrawContext(fContext, this, rt, surfaceProps, fContext->getAuditTrail(), in drawContext()
DSkGpuDevice.cpp55 SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fContext->debugSingleOwner());)
172 , fContext(SkRef(rt->getContext())) in SkGpuDevice()
316 GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "clearAll", fContext); in clearAll()
361 GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawPaint", fContext); in drawPaint()
403 GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawPoints", fContext); in drawPoints()
455 GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawRect", fContext); in drawRect()
480 GrBlurUtils::drawPathWithMaskFilter(fContext, fDrawContext, in drawRect()
502 GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawRRect", fContext); in drawRRect()
529 if (paint.getMaskFilter()->directFilterRRectMaskGPU(fContext->textureProvider(), in drawRRect()
551 GrBlurUtils::drawPathWithMaskFilter(fContext, fDrawContext, in drawRRect()
[all …]
DGrDrawingManager.h40 GrContext* getContext() { return fContext; } in getContext()
52 : fContext(context) in GrDrawingManager()
72 GrContext* fContext; variable
DGrTest.h35 GrResourceProvider* resourceProvider() { return fContext->resourceProvider(); } in resourceProvider()
38 SkAutoTUnref<GrContext> fContext;
DGrSoftwarePathRenderer.h23 : fContext(context) { in GrSoftwarePathRenderer()
35 GrContext* fContext;
DGrTextureParamsAdjuster.h182 , fContext(context) {} in GrTextureMaker()
202 GrContext* context() const { return fContext; } in context()
205 GrContext* fContext;
DGrSoftwarePathRenderer.cpp17 if (nullptr == fContext) { in onCanDrawPath()
120 if (nullptr == fContext) { in onDrawPath()
135 GrSWMaskHelper::DrawPathMaskToTexture(fContext, *args.fPath, *args.fStroke, in onDrawPath()
DGrSWMaskHelper.h45 : fContext(context) in GrSWMaskHelper()
106 GrContext* fContext; variable
/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/skia/bench/
DGrResourceCacheBench.cpp119 fContext.reset(GrContext::CreateMockContext()); in onDelayedSetup()
120 if (!fContext) { in onDelayedSetup()
124 fContext->setResourceCacheLimits(CACHE_SIZE_COUNT, 1 << 30); in onDelayedSetup()
126 GrResourceCache* cache = fContext->getResourceCache(); in onDelayedSetup()
132 GrGpu* gpu = fContext->getGpu(); in onDelayedSetup()
138 if (!fContext) { in onDraw()
141 GrResourceCache* cache = fContext->getResourceCache(); in onDraw()
154 SkAutoTUnref<GrContext> fContext; member in GrResourceCacheBenchFind
/external/skia/src/gpu/gl/angle/
DSkANGLEGLContext.cpp68 : fContext(EGL_NO_CONTEXT) in SkANGLEGLContext()
101 fContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, contextAttribs); in SkANGLEGLContext()
112 eglMakeCurrent(fDisplay, fSurface, fSurface, fContext); in SkANGLEGLContext()
145 EGLCreateImage(fDisplay, fContext, GR_EGL_GL_TEXTURE_2D, clientBuffer, in texture2DToEGLImage()
199 if (fContext) { in destroyGLContext()
200 eglDestroyContext(fDisplay, fContext); in destroyGLContext()
201 fContext = EGL_NO_CONTEXT; in destroyGLContext()
215 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
/external/skia/tools/VisualBench/
DVisualBench.cpp128 fContext.reset(GrContext::Create(kOpenGL_GrBackend, (GrBackendContext)fInterface.get())); in setupContext()
129 SkASSERT(fContext); in setupContext()
136 if (fContext) { in tearDownContext()
138 fContext->abandonContext(); in tearDownContext()
139 fContext.reset(); in tearDownContext()
147 if (fContext) { in setupRenderTarget()
148 fRenderTarget.reset(this->renderTarget(fAttachmentInfo, fInterface, fContext)); in setupRenderTarget()
/external/skia/src/gpu/gl/egl/
DSkCreatePlatformGLContext_egl.cpp55 EGLContext fContext; member in __anoned9deafa0111::EGLGLContext
61 : fContext(EGL_NO_CONTEXT) in EGLGLContext()
144 fContext = eglCreateContext(fDisplay, surfaceConfig, nullptr, kAPIs[api].fContextAttribs); in EGLGLContext()
145 if (EGL_NO_CONTEXT == fContext) { in EGLGLContext()
163 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLContext()
196 if (fContext) { in destroyGLContext()
197 eglDestroyContext(fDisplay, fContext); in destroyGLContext()
198 fContext = EGL_NO_CONTEXT; in destroyGLContext()
219 EGLCreateImage(fDisplay, fContext, GR_EGL_GL_TEXTURE_2D, clientBuffer, attribs)); in texture2DToEGLImage()
264 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
/external/skia/platform_tools/android/apps/visualbench/src/main/jni/
DSkOSWindow_AndroidNative.cpp14 fWindow.fContext = EGL_NO_CONTEXT; in SkOSWindow()
129 fWindow.fContext = context; in attach()
134 if (fWindow.fDisplay && fWindow.fContext && fWindow.fSurface) { in attach()
155 if (fWindow.fContext != EGL_NO_CONTEXT) { in detach()
156 eglDestroyContext(fWindow.fDisplay, fWindow.fContext); in detach()
164 fWindow.fContext = EGL_NO_CONTEXT; in detach()
169 if (fWindow.fDisplay != EGL_NO_DISPLAY && fWindow.fContext != EGL_NO_CONTEXT) { in present()
/external/skia/example/
DHelloWorld.cpp43 SkSafeUnref(fContext); in tearDownBackend()
44 fContext = NULL; in tearDownBackend()
76 fContext = GrContext::Create(kOpenGL_GrBackend, (GrBackendContext)fInterface); in setUpBackend()
77 SkASSERT(NULL != fContext); in setUpBackend()
85 fRenderTarget = this->renderTarget(fAttachmentInfo, fInterface, fContext); in setUpRenderTarget()
153 fContext->flush(); in draw()
/external/skia/src/gpu/gl/command_buffer/
DSkCommandBufferGLContext.cpp147 : fContext(EGL_NO_CONTEXT) in SkCommandBufferGLContext()
245 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), nullptr, contextAttribs); in initializeGLContext()
246 if (EGL_NO_CONTEXT == fContext) { in initializeGLContext()
252 if (!gfMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in initializeGLContext()
286 if (EGL_NO_CONTEXT != fContext) { in destroyGLContext()
287 gfDestroyContext(fDisplay, fContext); in destroyGLContext()
288 fContext = EGL_NO_CONTEXT; in destroyGLContext()
310 if (!gfMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in onPlatformMakeCurrent()
340 return gfMakeCurrent(fDisplay, fSurface, fSurface, fContext) != EGL_FALSE; in makeCurrent()
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp63 desc.fContext->addCleanUp(CleanUp, entry); in GetAtlas()
124 fDesc.fContext->flush(); in lockRow()
204 fTexture = fDesc.fContext->textureProvider()->findAndRefTextureByUniqueKey(key); in lockTexture()
206 fTexture = fDesc.fContext->textureProvider()->createTexture(texDesc, SkBudgeted::kYes, in lockTexture()
211 fDesc.fContext->textureProvider()->assignUniqueKeyToTexture(key, fTexture); in lockTexture()
/external/skia/src/views/win/
DSkOSWindow_win.cpp63 fContext = EGL_NO_CONTEXT; in SkOSWindow()
82 if (EGL_NO_CONTEXT != fContext) { in ~SkOSWindow()
83 eglDestroyContext(fDisplay, fContext); in ~SkOSWindow()
84 fContext = EGL_NO_CONTEXT; in ~SkOSWindow()
498 &fContext, in attachANGLE()
513 if (eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in attachANGLE()
532 eglDestroyContext(fDisplay, fContext); in detachANGLE()
533 fContext = EGL_NO_CONTEXT; in detachANGLE()
/external/skia/experimental/SkV8Example/
DGlobal.h43 return v8::Local<v8::Context>::New(fIsolate, fContext); in getContext()
72 v8::Persistent<v8::Context> fContext; variable
/external/skia/experimental/iOSSampleApp/
DSkSampleUIView.mm264 fGL.fContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];
266 fGL.fContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
269 if (!fGL.fContext || ![EAGLContext setCurrentContext:fGL.fContext])
344 [fGL.fContext release];
353 [fGL.fContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:fGLLayer];
399 [EAGLContext setCurrentContext:fGL.fContext];
429 [fGL.fContext presentRenderbuffer:GL_RENDERBUFFER];

123