Home
last modified time | relevance | path

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

12

/external/skqp/tools/fiddle/
Degl_context.cpp21 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_grcontext() argument
23 glContext->reset(sk_gpu_test::CreatePlatformGLTestContext(kGLES_GrGLStandard)); in create_grcontext()
24 if (!glContext) { in create_grcontext()
27 (*glContext)->makeCurrent(); in create_grcontext()
28 sk_sp<GrContext> result = (*glContext)->makeGrContext(GrContextOptions()); in create_grcontext()
30 glContext->reset(); in create_grcontext()
Dnull_context.cpp12 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_grcontext() argument
Dfiddle_main.h95 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext);
Dfiddle_main.cpp282 std::unique_ptr<sk_gpu_test::GLTestContext> glContext; in main() local
283 sk_sp<GrContext> grContext = create_grcontext(gGLDriverInfo, &glContext); in main()
/external/skia/tools/fiddle/
Degl_context.cpp21 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_grcontext() argument
23 glContext->reset(sk_gpu_test::CreatePlatformGLTestContext(kGLES_GrGLStandard)); in create_grcontext()
24 if (!glContext) { in create_grcontext()
27 (*glContext)->makeCurrent(); in create_grcontext()
28 sk_sp<GrContext> result = (*glContext)->makeGrContext(GrContextOptions()); in create_grcontext()
30 glContext->reset(); in create_grcontext()
Dnull_context.cpp12 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_grcontext() argument
Dfiddle_main.h95 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext);
Dfiddle_main.cpp282 std::unique_ptr<sk_gpu_test::GLTestContext> glContext; in main() local
283 sk_sp<GrContext> grContext = create_grcontext(gGLDriverInfo, &glContext); in main()
/external/skia/example/
DSkiaSDLExample.cpp116 SDL_GLContext glContext = nullptr; local
172 glContext = SDL_GL_CreateContext(window);
173 if (!glContext) {
178 int success = SDL_GL_MakeCurrent(window, glContext);
284 if (glContext) {
285 SDL_GL_DeleteContext(glContext);
/external/skqp/example/
DSkiaSDLExample.cpp116 SDL_GLContext glContext = nullptr; local
172 glContext = SDL_GL_CreateContext(window);
173 if (!glContext) {
178 int success = SDL_GL_MakeCurrent(window, glContext);
284 if (glContext) {
285 SDL_GL_DeleteContext(glContext);
/external/skia/tests/
DTextureBindingsResetTest.cpp16 #define GL(F) GR_GL_CALL(ctxInfo.glContext()->gl(), F) in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
107 GrEGLImage eglImage = ctxInfo.glContext()->texture2DToEGLImage(info2D.fID); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
110 infoExternal.fID = ctxInfo.glContext()->eglImageToExternalTexture(eglImage); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
128 ctxInfo.glContext()->destroyEGLImage(eglImage); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
134 GrGLuint id = ctxInfo.glContext()->createTextureRectangle(10, 10, GR_GL_RGBA, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp97 sk_gpu_test::GLTestContext* glContext = ctxInfo.glContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
111 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
143 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
174 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skqp/tests/
DRectangleTextureTest.cpp97 sk_gpu_test::GLTestContext* glContext = ctxInfo.glContext(); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
111 GrGLuint rectTexID = glContext->createTextureRectangle(kWidth, kHeight, GR_GL_RGBA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
143 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
175 GR_GL_CALL(glContext->gl(), DeleteTextures(1, &rectTexID)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp92 GrGLuint shaderId = GrGLCompileAndAttachShader(gpu->glContext(), in compileAndAttachShaders()
119 std::unique_ptr<SkSL::Program> program = GrSkSLtoGLSL(gpu()->glContext(), type, in compileAndAttachShaders()
283 std::unique_ptr<SkSL::Program> fs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
308 std::unique_ptr<SkSL::Program> vs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
330 gs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
351 GrGLPrintShader(fGpu->glContext(), in finalize()
359 GrGLPrintShader(fGpu->glContext(), in finalize()
366 GrGLPrintShader(fGpu->glContext(), in finalize()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp92 GrGLuint shaderId = GrGLCompileAndAttachShader(gpu->glContext(), in compileAndAttachShaders()
119 std::unique_ptr<SkSL::Program> program = GrSkSLtoGLSL(gpu()->glContext(), type, in compileAndAttachShaders()
338 std::unique_ptr<SkSL::Program> fs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
365 std::unique_ptr<SkSL::Program> vs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
394 gs = GrSkSLtoGLSL(gpu()->glContext(), in finalize()
420 GrGLPrintShader(fGpu->glContext(), in finalize()
428 GrGLPrintShader(fGpu->glContext(), in finalize()
435 GrGLPrintShader(fGpu->glContext(), in finalize()
/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/skqp/src/gpu/gl/
DGrGLRenderTarget.cpp124 if (kChromium_GrGLDriver != gpu->glContext().driver()) { in completeStencilAttachment()
154 if (kChromium_GrGLDriver != gpu->glContext().driver()) { in completeStencilAttachment()
DGrGLGpu.h44 const GrGLContext& glContext() const { return *fGLContext; } in glContext() function
150 const GrGLContext* glContextForTesting() const override { return &this->glContext(); } in glContextForTesting()
/external/skia/src/gpu/gl/
DGrGLRenderTarget.cpp124 if (kChromium_GrGLDriver != gpu->glContext().driver()) { in completeStencilAttachment()
154 if (kChromium_GrGLDriver != gpu->glContext().driver()) { in completeStencilAttachment()
DGrGLGpu.h44 const GrGLContext& glContext() const { return *fGLContext; } in glContext() function
150 const GrGLContext* glContextForTesting() const override { return &this->glContext(); } in glContextForTesting()
/external/skia/tools/skiaserve/
DRequest.cpp54 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
57 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
/external/skqp/tools/skiaserve/
DRequest.cpp54 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
57 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
/external/skqp/tools/gpu/
DGrContextFactory.h178 GLTestContext* glContext() const { in glContext() function
/external/skia/tools/gpu/
DGrContextFactory.h178 GLTestContext* glContext() const { in glContext() function

12