Home
last modified time | relevance | path

Searched refs:glCaps (Results 1 – 25 of 27) sorted by relevance

12

/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp111 if (fGpu->glCaps().baseVertexBaseInstanceSupport()) { in onBindBuffers()
120 if ((indexBuffer && fGpu->glCaps().baseVertexBaseInstanceSupport()) || in onBindBuffers()
121 (!indexBuffer && !fGpu->glCaps().drawArraysBaseVertexIsBroken())) { in onBindBuffers()
167 SkASSERT(fDidBindVertexBuffer || fGpu->glCaps().drawArraysBaseVertexIsBroken()); in onDraw()
169 if (fGpu->glCaps().drawArraysBaseVertexIsBroken()) { in onDraw()
179 if (fGpu->glCaps().baseVertexBaseInstanceSupport()) { in onDrawIndexed()
180 SkASSERT(fGpu->glCaps().drawInstancedSupport()); in onDrawIndexed()
192 if (fGpu->glCaps().drawRangeElementsSupport()) { in onDrawIndexed()
203 SkASSERT(fDidBindVertexBuffer || fGpu->glCaps().drawArraysBaseVertexIsBroken()); in onDrawInstanced()
204 if (fGpu->glCaps().drawArraysBaseVertexIsBroken()) { in onDrawInstanced()
[all …]
DGrGLGpu.cpp50 if (this->glCaps().skipErrorChecks()) { \
225 fNumTextureUnits = fGpu->glCaps().shaderCaps()->maxFragmentSamplers(); in SamplerObjectCache()
255 GrGLenum wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps()); in bindSampler()
256 GrGLenum wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps()); in bindSampler()
361 if (GrGLCaps::TransferBufferType::kChromium == this->glCaps().transferBufferType()) { in GrGLGpu()
375 if (this->glCaps().useSamplerObjects()) { in GrGLGpu()
509 if (!this->glCaps().isCoreProfile()) { in onResetContext()
520 if (this->glCaps().imagingSupport() && !this->glCaps().isCoreProfile()) { in onResetContext()
534 this->glCaps().fbFetchRequiresEnablePerSample()) { in onResetContext()
599 if (this->glCaps().readPixelsRowBytesSupport()) { in onResetContext()
[all …]
DGrGLBuffer.cpp19 if (this->glGpu()->glCaps().skipErrorChecks()) { \
37 if (gpu->glCaps().transferBufferType() == GrGLCaps::TransferBufferType::kNone && in Make()
109 , fUsage(gr_to_gl_access_pattern(intendedType, accessPattern, gpu->glCaps())) in GrGLBuffer()
135 inline const GrGLCaps& GrGLBuffer::glCaps() const { in glCaps() function in GrGLBuffer
136 return this->glGpu()->glCaps(); in glCaps()
175 switch (this->glCaps().mapBufferType()) { in onMap()
182 if (this->glCaps().useBufferDataNullHint() || fGLSizeInBytes != this->size()) { in onMap()
242 switch (this->glCaps().mapBufferType()) { in onUnmap()
275 if (this->glCaps().useBufferDataNullHint()) { in onUpdateData()
DGrGLRenderTarget.cpp32 this->setFlags(gpu->glCaps(), ids); in GrGLRenderTarget()
44 this->setFlags(gpu->glCaps(), ids); in GrGLRenderTarget()
47 inline void GrGLRenderTarget::setFlags(const GrGLCaps& glCaps, const IDs& idDesc) { in setFlags() argument
166 if (!gpu->glCaps().skipErrorChecks()) { in completeStencilAttachment()
DGrGLBuffer.h49 const GrGLCaps& glCaps() const;
DGrGLGpu.h50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } in glCaps() function
275 return GrBackendFormat::MakeGL(GrGLFormatToEnum(this->glCaps().stencilFormats()[idx]), in getPreferredStencilFormat()
612 if (!gpu->glCaps().vertexArrayObjectSupport()) { in setVertexArrayID()
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp225 fNumTextureUnits = fGpu->glCaps().shaderCaps()->maxFragmentSamplers(); in SamplerObjectCache()
250 auto wrapX = wrap_mode_to_gl_wrap(state.wrapModeX(), fGpu->glCaps()); in bindSampler()
251 auto wrapY = wrap_mode_to_gl_wrap(state.wrapModeY(), fGpu->glCaps()); in bindSampler()
350 if (GrGLCaps::kChromium_TransferBufferType == this->glCaps().transferBufferType()) { in GrGLGpu()
364 if (this->glCaps().shaderCaps()->pathRenderingSupport()) { in GrGLGpu()
368 if (this->glCaps().samplerObjectSupport()) { in GrGLGpu()
468 if (this->glCaps().shaderCaps()->pathRenderingSupport()) { in disconnect()
495 if (!this->glCaps().isCoreProfile()) { in onResetContext()
506 if (this->glCaps().imagingSupport() && !this->glCaps().isCoreProfile()) { in onResetContext()
524 this->glCaps().fbFetchRequiresEnablePerSample()) { in onResetContext()
[all …]
DGrGLBuffer.cpp34 if (gpu->glCaps().transferBufferType() == GrGLCaps::kNone_TransferBufferType && in Make()
130 inline const GrGLCaps& GrGLBuffer::glCaps() const { in glCaps() function in GrGLBuffer
131 return this->glGpu()->glCaps(); in glCaps()
171 switch (this->glCaps().mapBufferType()) { in onMap()
177 if (this->glCaps().useBufferDataNullHint() || fGLSizeInBytes != this->sizeInBytes()) { in onMap()
226 switch (this->glCaps().mapBufferType()) { in onUnmap()
259 if (this->glCaps().useBufferDataNullHint()) { in onUpdateData()
DGrGLRenderTarget.cpp29 this->setFlags(gpu->glCaps(), idDesc); in GrGLRenderTarget()
38 this->setFlags(gpu->glCaps(), idDesc); in GrGLRenderTarget()
42 inline void GrGLRenderTarget::setFlags(const GrGLCaps& glCaps, const IDDesc& idDesc) { in setFlags() argument
44 SkASSERT(glCaps.usesMixedSamples() && idDesc.fRTFBOID); // FBO 0 can't be mixed sampled. in setFlags()
91 fbi.fFormat = this->getGLGpu()->glCaps().configSizedInternalFormat(this->config()); in getBackendRenderTarget()
DGrGLVaryingHandler.cpp20 SkASSERT(glPB->gpu()->glCaps().shaderCaps()->pathRenderingSupport() && in addPathProcessingVarying()
DGrGLBuffer.h48 const GrGLCaps& glCaps() const;
DGrGLGpu.h51 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } in glCaps() function
54 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport()); in glPathRendering()
515 if (!gpu->glCaps().vertexArrayObjectSupport()) { in setVertexArrayID()
DGrGLProgram.cpp161 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in setRenderTargetState()
DGrGLProgramDataManager.cpp40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
304 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in setPathFragmentInputTransform()
DGrGLPathRendering.cpp176 SkASSERT(this->gpu()->glCaps().shaderCaps()->pathRenderingSupport()); in setProjectionMatrix()
DGrGLCaps.cpp2230 static bool has_msaa_render_buffer(const GrSurfaceProxy* surf, const GrGLCaps& glCaps) { in has_msaa_render_buffer() argument
2240 glCaps.usesMSAARenderBuffers() && in has_msaa_render_buffer()
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp180 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
222 if (this->gpu()->glCaps().programBinarySupport() && in finalize()
232 settings.fCaps = this->gpu()->glCaps().shaderCaps(); in finalize()
251 if (fGpu->glCaps().programBinarySupport()) { in finalize()
276 if (!cached || !fGpu->glCaps().programBinarySupport()) { in finalize()
386 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
388 const GrGLCaps& caps = this->gpu()->glCaps(); in bindProgramResourceLocations()
399 if (!fGpu->glCaps().shaderCaps()->pathRenderingSupport() || in bindProgramResourceLocations()
434 fUniformHandler.getUniformLocations(programID, fGpu->glCaps()); in resolveProgramResourceLocations()
437 if (!fGpu->glCaps().shaderCaps()->pathRenderingSupport() || in resolveProgramResourceLocations()
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp167 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
222 if (this->gpu()->glCaps().programBinarySupport() && in finalize()
223 this->gpu()->glCaps().programParameterSupport() && in finalize()
243 bool checkLinked = !fGpu->glCaps().skipErrorChecks(); in finalize()
269 if (!fGpu->glCaps().programBinarySupport()) { in finalize()
477 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
479 const GrGLCaps& caps = this->gpu()->glCaps(); in bindProgramResourceLocations()
526 fUniformHandler.getUniformLocations(programID, fGpu->glCaps(), force); in resolveProgramResourceLocations()
615 const GrGLCaps& caps = glGpu->glCaps(); in PrecompileProgram()
/external/skia/tests/
DTextureBindingsResetTest.cpp32 if ((supportExternal = glGpu->glCaps().shaderCaps()->externalTextureSupport())) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
36 if ((supportRectangle = glGpu->glCaps().rectangleTextureSupport())) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp758 const GrGLCaps* glCaps = static_cast<const GrGLCaps*>(context->priv().caps()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() local
811 if (!glCaps->isFormatTexturable(format)) { in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
827 (!glCaps->mipmapSupport() || target == GR_GL_TEXTURE_RECTANGLE)) { in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
833 if (!glCaps->isFormatAsColorTypeRenderable(combo.fColorType, format)) { in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
DEGLImageTest.cpp56 if (!gpu0->glCaps().shaderCaps()->externalTextureSupport()) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/angle/src/libANGLE/renderer/metal/
Dmtl_glslang_mtl_utils.h45 const gl::Caps &glCaps,
Dmtl_glslang_mtl_utils.mm353 const gl::Caps &glCaps,
/external/skqp/tests/
DEGLImageTest.cpp59 if (!gpu0->glCaps().shaderCaps()->externalTextureSupport()) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DDeferredDisplayListTest.cpp58 const GrGLCaps* glCaps = static_cast<const GrGLCaps*>(caps); in create_backend_format() local
59 GrGLStandard standard = glCaps->standard(); in create_backend_format()

12