Home
last modified time | relevance | path

Searched refs:glContext (Results 1 – 25 of 41) 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.cpp22 std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) { in create_direct_context() argument
23 glContext->reset(sk_gpu_test::CreatePlatformGLTestContext(kGLES_GrGLStandard)); in create_direct_context()
24 if (!glContext) { in create_direct_context()
27 (*glContext)->makeCurrent(); in create_direct_context()
28 sk_sp<GrDirectContext> result = (*glContext)->makeContext(GrContextOptions()); in create_direct_context()
30 glContext->reset(); in create_direct_context()
Dfiddle_main.cpp261 std::unique_ptr<sk_gpu_test::GLTestContext> glContext; in main() local
262 sk_sp<GrDirectContext> direct = create_direct_context(gGLDriverInfo, &glContext); in main()
/external/angle/src/libANGLE/renderer/metal/
DVertexArrayMtl.h49 angle::Result setupDraw(const gl::Context *glContext,
54 angle::Result getIndexBuffer(const gl::Context *glContext,
70 angle::Result syncDirtyAttrib(const gl::Context *glContext,
75 angle::Result convertIndexBuffer(const gl::Context *glContext,
81 angle::Result streamIndexBufferFromClient(const gl::Context *glContext,
89 angle::Result convertIndexBufferGPU(const gl::Context *glContext,
96 angle::Result convertVertexBuffer(const gl::Context *glContext,
110 angle::Result convertVertexBufferGPU(const gl::Context *glContext,
DProgramMtl.h148 angle::Result setupDraw(const gl::Context *glContext,
175 angle::Result initDefaultUniformBlocks(const gl::Context *glContext);
176 angle::Result resizeDefaultUniformBlocksMemory(const gl::Context *glContext,
179 angle::Result loadDefaultUniformBlocksInfo(const gl::Context *glContext,
183 angle::Result updateTextures(const gl::Context *glContext,
215 angle::Result linkImplSpirv(const gl::Context *glContext,
220 angle::Result linkImplDirect(const gl::Context *glContext,
225 angle::Result linkImpl(const gl::Context *glContext,
229 angle::Result linkTranslatedShaders(const gl::Context *glContext,
DVertexArrayMtl.mm348 angle::Result VertexArrayMtl::setupDraw(const gl::Context *glContext,
358 ContextMtl *contextMtl = mtl::GetImpl(glContext);
363 const gl::ProgramExecutable *executable = glContext->getState().getProgramExecutable();
366 const gl::ProgramState &programState = glContext->getState().getProgram()->getState();
604 angle::Result VertexArrayMtl::syncDirtyAttrib(const gl::Context *glContext,
609 ContextMtl *contextMtl = mtl::GetImpl(glContext);
629 ANGLE_TRY(convertVertexBuffer(glContext, bufferMtl, binding, attribIndex, format));
703 angle::Result VertexArrayMtl::convertIndexBuffer(const gl::Context *glContext,
720 ContextMtl *contextMtl = mtl::GetImpl(glContext);
721 const gl::State &glState = glContext->getState();
[all …]
DProgramMtl.mm363 angle::Result ProgramMtl::linkImplSpirv(const gl::Context *glContext,
367 ContextMtl *contextMtl = mtl::GetImpl(glContext);
371 ANGLE_TRY(initDefaultUniformBlocks(glContext));
411 angle::Result ProgramMtl::linkImplDirect(const gl::Context *glContext,
415 ContextMtl *contextMtl = mtl::GetImpl(glContext);
418 ANGLE_TRY(initDefaultUniformBlocks(glContext));
425 ANGLE_TRY(mtl::GlslangGetMSL(glContext, mState, contextMtl->getCaps(), shaderSources,
442 angle::Result ProgramMtl::linkImpl(const gl::Context *glContext,
449 return linkImplDirect(glContext, resources, infoLog);
453 return linkImplSpirv(glContext, resources, infoLog);
[all …]
Dmtl_glslang_mtl_utils.h43 angle::Result GlslangGetMSL(const gl::Context *glContext,
/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/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/skia/tests/
DTextureBindingsResetTest.cpp19 #define GL(F) GR_GL_CALL(ctxInfo.glContext()->gl(), F) in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
110 GrEGLImage eglImage = ctxInfo.glContext()->texture2DToEGLImage(info2D.fID); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
113 infoExternal.fID = ctxInfo.glContext()->eglImageToExternalTexture(eglImage); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
131 ctxInfo.glContext()->destroyEGLImage(eglImage); 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/angle/src/libANGLE/renderer/vulkan/
DProgramPipelineVk.cpp55 angle::Result ProgramPipelineVk::link(const gl::Context *glContext, in link() argument
59 ContextVk *contextVk = vk::GetImpl(glContext); in link()
60 const gl::State &glState = glContext->getState(); in link()
119 return mExecutable.createPipelineLayout(glContext, nullptr); in link()
DProgramPipelineVk.h48 angle::Result link(const gl::Context *glContext,
/external/angle/src/libANGLE/renderer/gl/
DDisplayGL.cpp118 ContextGL *glContext = GetImplAs<ContextGL>(context); in makeCurrent() local
119 glContext->getStateManager()->pauseTransformFeedback(); in makeCurrent()
/external/webrtc/sdk/objc/components/renderer/opengl/
DRTCEAGLVideoView.m93 EAGLContext *glContext =
95 if (!glContext) {
96 glContext = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
98 if (!glContext) {
102 _glContext = glContext;
/external/angle/src/libANGLE/renderer/gl/cgl/
DWindowSurfaceCGL.mm83 - (BOOL)canDrawInCGLContext:(CGLContextObj)glContext
103 - (void)drawInCGLContext:(CGLContextObj)glContext
108 CGLSetCurrentContext(glContext);
140 [super drawInCGLContext: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()
/external/skqp/tools/skiaserve/
DRequest.cpp54 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
57 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
/external/skia/tools/skiaserve/
DRequest.cpp58 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
61 GrContextFactory::ContextOverrides::kNone).glContext(); in getCanvas()
/external/skqp/tools/gpu/
DGrContextFactory.h178 GLTestContext* glContext() const { in glContext() function

12