Home
last modified time | relevance | path

Searched refs:fGLContext (Results 1 – 11 of 11) sorted by relevance

/external/skia/tools/viewer/sk_app/unix/
DGLWindowContext_unix.cpp39 GLXContext fGLContext; member in __anoneff89bac0111::GLWindowContext_xlib
50 , fGLContext() { in GLWindowContext_xlib()
60 SkASSERT(!fGLContext); in onInitializeContext()
68 for (int minor = 2; minor >= 0 && !fGLContext; --minor) { in onInitializeContext()
78 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext()
79 if (fGLContext) { in onInitializeContext()
85 if (!fGLContext) { in onInitializeContext()
86 fGLContext = glXCreateContext(fDisplay, fVisualInfo, nullptr, GL_TRUE); in onInitializeContext()
88 if (!fGLContext) { in onInitializeContext()
92 if (glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
[all …]
/external/skia/tools/viewer/sk_app/mac/
DGLWindowContext_mac.cpp35 SDL_GLContext fGLContext; member in __anonc00648460111::GLWindowContext_mac
43 , fGLContext(nullptr) { in GLWindowContext_mac()
57 fGLContext = SDL_GL_CreateContext(fWindow); in onInitializeContext()
58 if (!fGLContext) { in onInitializeContext()
63 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
80 if (!fWindow || !fGLContext) { in onDestroyContext()
83 SDL_GL_DeleteContext(fGLContext); in onDestroyContext()
84 fGLContext = nullptr; in onDestroyContext()
89 if (fWindow && fGLContext) { in onSwapBuffers()
DRasterWindowContext_mac.cpp45 SDL_GLContext fGLContext; member in __anoneade83040111::RasterWindowContext_mac
55 , fGLContext(nullptr) { in RasterWindowContext_mac()
69 fGLContext = SDL_GL_CreateContext(fWindow); in onInitializeContext()
70 if (!fGLContext) { in onInitializeContext()
75 if (0 == SDL_GL_MakeCurrent(fWindow, fGLContext)) { in onInitializeContext()
97 if (!fWindow || !fGLContext) { in onDestroyContext()
101 SDL_GL_DeleteContext(fGLContext); in onDestroyContext()
102 fGLContext = nullptr; in onDestroyContext()
108 if (fWindow && fGLContext) { in onSwapBuffers()
/external/skia/src/views/mac/
DSkNSView.mm25 @synthesize fWind, fTitle, fOptionsDelegate, fGLContext;
103 // [fGLContext update] does not appear to update if the point size has not changed,
114 if (fGLContext) {
116 [fGLContext update];
128 self.fGLContext = nil;
382 //Attaching view to fGLContext requires that the view to be part of a window,
385 if ([fGLContext view] != self && nil != self.window) {
386 [fGLContext setView:self];
392 if (nil == fGLContext) {
395 fGLContext = [[NSOpenGLContext alloc] initWithCGLContextObj:ctx];
[all …]
DSkOSWindow_Mac.mm21 fGLContext = NULL;
40 [(NSOpenGLContext*)fGLContext update];
DSkNSView.h25 @property (nonatomic, retain) NSOpenGLContext* fGLContext;
/external/skia/src/views/unix/
DSkOSWindow_Unix.cpp38 fUnixWindow.fGLContext = nullptr; in SkOSWindow()
358 if (nullptr == fUnixWindow.fGLContext) { in attach()
361 fUnixWindow.fGLContext = glXCreateContext(fUnixWindow.fDisplay, in attach()
365 if (nullptr == fUnixWindow.fGLContext) { in attach()
371 fUnixWindow.fGLContext); in attach()
382 if (nullptr == fUnixWindow.fDisplay || nullptr == fUnixWindow.fGLContext) { in release()
386 glXDestroyContext(fUnixWindow.fDisplay, fUnixWindow.fGLContext); in release()
387 fUnixWindow.fGLContext = nullptr; in release()
391 if (fUnixWindow.fDisplay && fUnixWindow.fGLContext) { in present()
431 if (fUnixWindow.fGLContext) { in doPaint()
[all …]
/external/skia/src/gpu/gl/
DGrGLGpu.h45 const GrGLContext& glContext() const { return *fGLContext; } in glContext()
47 const GrGLInterface* glInterface() const { return fGLContext->interface(); } in glInterface()
48 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } in ctxInfo()
49 GrGLStandard glStandard() const { return fGLContext->standard(); } in glStandard()
50 GrGLVersion glVersion() const { return fGLContext->version(); } in glVersion()
51 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration(); } in glslGeneration()
52 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } in glCaps()
285 bool hasExtension(const char* ext) const { return fGLContext->hasExtension(ext); } in hasExtension()
402 sk_sp<GrGLContext> fGLContext; variable
DGrGLGpu.cpp211 , fGLContext(ctx) in GrGLGpu()
1286 if (!renderbuffer_storage_msaa(*fGLContext, in createRenderTargetObjects()
1303 fGLContext->caps()->markConfigAsValidColorAttachment(desc.fConfig); in createRenderTargetObjects()
1325 fGLContext->caps()->markConfigAsValidColorAttachment(desc.fConfig); in createRenderTargetObjects()
1603 fGLContext->caps()->setStencilFormatIndexForConfig(config, firstWorkingStencilFormatIndex); in getCompatibleStencilIndex()
1666 SkAssertResult(renderbuffer_storage_msaa(*fGLContext, in createStencilAttachmentForRenderTarget()
3525 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3532 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3683 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3690 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
[all …]
/external/skia/include/views/
DSkOSWindow_Mac.h55 void* fGLContext; variable
DSkOSWindow_Unix.h23 GLXContext fGLContext; member