Home
last modified time | relevance | path

Searched refs:glContext (Results 1 – 12 of 12) sorted by relevance

/external/skia/example/
DSkiaSDLExample.cpp112 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/
DTextureStorageAllocator.cpp56 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()
DTestTest.cpp69 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()
DRectangleTextureTest.cpp140 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()
DImageTest.cpp386 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/
DGrContextFactory.h116 ContextInfo(GrContext* grContext, SkGLContext* glContext) in ContextInfo()
117 : fGrContext(grContext), fGLContext(glContext) { } in ContextInfo()
/external/webrtc/webrtc/api/objc/
DRTCEAGLVideoView.m121 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/
DRTCEAGLVideoView.m139 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/
DGrGLGpu.h43 const GrGLContext& glContext() const { return *fGLContext; } in glContext() function
115 return &this->glContext(); in glContextForTesting()
DGrGLGpu.cpp176 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/
Dkilobench.cpp318 SkAutoTDelete<SkGLContext> glContext(SkCreatePlatformGLContext(kNone_GrGLStandard, in timingLoop() local
320 glContext->makeCurrent(); in timingLoop()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp109 GrGLuint shaderId = GrGLCompileAndAttachShader(gpu->glContext(), in compileAndAttachShaders()