Home
last modified time | relevance | path

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

/third_party/skia/tools/sk_app/unix/
DGLWindowContext_unix.cpp46 GLXContext fGLContext; member in __anon57e81e4a0111::GLWindowContext_xlib
57 , fGLContext() { in GLWindowContext_xlib()
67 SkASSERT(!fGLContext); in onInitializeContext()
81 for (int minor = 2; minor >= 0 && !fGLContext; --minor) { in onInitializeContext()
91 fGLContext = createContextAttribs(fDisplay, *fFBConfig, nullptr, True, attribs); in onInitializeContext()
97 if (fGLContext && profile == GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB && in onInitializeContext()
98 glXMakeCurrent(fDisplay, fWindow, fGLContext)) { in onInitializeContext()
106 glXDestroyContext(fDisplay, fGLContext); in onInitializeContext()
108 fGLContext = nullptr; in onInitializeContext()
111 if (fGLContext) { in onInitializeContext()
[all …]
/third_party/skia/tools/sk_app/mac/
DGLWindowContext_mac.mm39 NSOpenGLContext* fGLContext;
48 , fGLContext(nil) {
63 [fGLContext release];
64 fGLContext = nil;
70 if (!fGLContext) {
107 fGLContext = [[NSOpenGLContext alloc] initWithFormat:fPixelFormat shareContext:nil];
108 if (nil == fGLContext) {
115 [fGLContext setView:fMainView];
119 [fGLContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
122 [fGLContext makeCurrentContext];
[all …]
DRasterWindowContext_mac.mm46 NSOpenGLContext* fGLContext;
57 , fGLContext(nil) {
68 [fGLContext release];
69 fGLContext = nil;
75 if (!fGLContext) {
111 fGLContext = [[NSOpenGLContext alloc] initWithFormat:fPixelFormat shareContext:nil];
112 if (nil == fGLContext) {
119 [fGLContext setView:fMainView];
122 [fGLContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
126 [fGLContext makeCurrentContext];
[all …]
/third_party/skia/tools/sk_app/ios/
DGLWindowContext_ios.mm48 EAGLContext* fGLContext;
59 , fGLContext(nil) {
74 SkASSERT(!fGLContext);
80 fGLContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
82 if (!fGLContext)
88 if (![EAGLContext setCurrentContext:fGLContext]) {
110 [fGLContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:eaglLayer];
139 [fGLContext release];
140 fGLContext = nil;
145 [fGLContext presentRenderbuffer:GL_RENDERBUFFER];
[all …]
DRasterWindowContext_ios.mm56 EAGLContext* fGLContext;
69 , fGLContext(nil) {
84 SkASSERT(!fGLContext);
90 fGLContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES3];
92 if (!fGLContext)
98 if (![EAGLContext setCurrentContext:fGLContext]) {
120 [fGLContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:eaglLayer];
153 [fGLContext release];
154 fGLContext = nil;
171 [fGLContext presentRenderbuffer:GL_RENDERBUFFER];
[all …]
/third_party/skia/src/gpu/gl/
DGrGLGpu.h43 const GrGLContext& glContext() const { return *fGLContext; } in glContext()
45 const GrGLInterface* glInterface() const { return fGLContext->glInterface(); } in glInterface()
46 const GrGLContextInfo& ctxInfo() const { return *fGLContext; } in ctxInfo()
47 GrGLStandard glStandard() const { return fGLContext->standard(); } in glStandard()
48 GrGLVersion glVersion() const { return fGLContext->version(); } in glVersion()
49 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration(); } in glslGeneration()
50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } in glCaps()
536 std::unique_ptr<GrGLContext> fGLContext; variable
DGrGLGpu.cpp342 , fGLContext(std::move(ctx)) in GrGLGpu()
349 SkASSERT(fGLContext); in GrGLGpu()
355 this->initCapsAndCompiler(sk_ref_sp(fGLContext->caps())); in GrGLGpu()
1259 if (!this->renderbufferStorageMSAA(*fGLContext, sampleCount, colorRenderbufferFormat, in createRenderTargetObjects()
1662 fGLContext->caps()->setStencilFormatIndexForFormat(format, firstWorkingStencilFormatIndex); in getCompatibleStencilIndex()
3141 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3149 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fCopyPrograms[progIdx].fProgram, in createCopyProgram()
3295 GrGLuint vshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
3303 GrGLuint fshader = GrGLCompileAndAttachShader(*fGLContext, fMipmapPrograms[progIdx].fProgram, in createMipmapProgram()
4090 GrGLenum error = this->fGLContext->glInterface()->fFunctions.fGetError(); in getErrorAndCheckForOOM()