Searched refs:glContext (Results 1 – 12 of 12) sorted by relevance
/external/skia/example/ |
D | SkiaSDLExample.cpp | 112 SDL_GLContext glContext = nullptr; local 168 glContext = SDL_GL_CreateContext(window); 169 if (!glContext) { 174 int success = SDL_GL_MakeCurrent(window, glContext); 263 if (glContext) { 264 SDL_GL_DeleteContext(glContext);
|
/external/skia/tests/ |
D | TextureStorageAllocator.cpp | 56 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTexture, reporter, context, glContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() argument 60 const GrGLInterface* gl = glContext->gl(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 91 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTextureFailure, reporter, context, glContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() argument 95 const GrGLInterface* gl = glContext->gl(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | TestTest.cpp | 69 DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuGrContextAndGLContext, reporter, context, glContext) { in DEF_GPUTEST_FOR_ALL_CONTEXTS() argument 72 REPORTER_ASSERT(reporter, glContext); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
D | RectangleTextureTest.cpp | 140 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RectangleTexture, reporter, context, glContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() argument 152 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 189 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 203 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ImageTest.cpp | 386 DEF_GPUTEST_FOR_NATIVE_CONTEXT(SkImage_newTextureImage, reporter, context, glContext) { in DEF_GPUTEST_FOR_NATIVE_CONTEXT() argument 390 glContext->makeCurrent(); in DEF_GPUTEST_FOR_NATIVE_CONTEXT() 401 [glContext, otherContextInfo] { in DEF_GPUTEST_FOR_NATIVE_CONTEXT() 404 glContext->makeCurrent(); in DEF_GPUTEST_FOR_NATIVE_CONTEXT()
|
/external/skia/src/gpu/ |
D | GrContextFactory.h | 116 ContextInfo(GrContext* grContext, SkGLContext* glContext) in ContextInfo() 117 : fGrContext(grContext), fGLContext(glContext) { } in ContextInfo()
|
/external/webrtc/webrtc/api/objc/ |
D | RTCEAGLVideoView.m | 121 EAGLContext *glContext = 123 if (!glContext) { 124 glContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; 126 _glRenderer = [[RTCOpenGLVideoRenderer alloc] initWithContext:glContext]; 130 context:glContext];
|
/external/webrtc/talk/app/webrtc/objc/ |
D | RTCEAGLVideoView.m | 139 EAGLContext* glContext = 141 if (!glContext) { 142 glContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; 144 _glRenderer = [[RTCOpenGLVideoRenderer alloc] initWithContext:glContext]; 148 context:glContext];
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.h | 43 const GrGLContext& glContext() const { return *fGLContext; } in glContext() function 115 return &this->glContext(); in glContextForTesting()
|
D | GrGLGpu.cpp | 176 GrGLContext* glContext = GrGLContext::Create(glInterface, options); in Create() local 177 if (glContext) { in Create() 178 return new GrGLGpu(glContext, context); in Create() 207 this->glContext().extensions().print(); in GrGLGpu() 2278 } else if (kMesa_GrGLDriver == this->glContext().driver() && in onGetReadPixelsInfo() 2520 if (kChromium_GrGLDriver != this->glContext().driver()) { in flushRenderTarget()
|
/external/skia/tools/kilobench/ |
D | kilobench.cpp | 318 SkAutoTDelete<SkGLContext> glContext(SkCreatePlatformGLContext(kNone_GrGLStandard, in timingLoop() local 320 glContext->makeCurrent(); in timingLoop()
|
/external/skia/src/gpu/gl/builders/ |
D | GrGLProgramBuilder.cpp | 109 GrGLuint shaderId = GrGLCompileAndAttachShader(gpu->glContext(), in compileAndAttachShaders()
|