/external/skia/src/gpu/gl/ |
H A D | GrGLStencilAttachment.h | 32 const IDDesc& idDesc, 38 , fRenderbufferID(idDesc.fRenderbufferID) { 31 GrGLStencilAttachment(GrGpu* gpu, const IDDesc& idDesc, int width, int height, int sampleCnt, const Format& format) argument
|
H A D | GrGLTexture.cpp | 18 static inline GrSLType sampler_type(const GrGLTexture::IDDesc& idDesc, GrPixelConfig config, argument 20 if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_EXTERNAL) { 23 } else if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_RECTANGLE) { 27 SkASSERT(idDesc.fInfo.fTarget == GR_GL_TEXTURE_2D); 33 static inline GrSamplerState::Filter highest_filter_mode(const GrGLTexture::IDDesc& idDesc, argument 35 if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_RECTANGLE || 36 idDesc.fInfo.fTarget == GR_GL_TEXTURE_EXTERNAL) { 44 const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) 46 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), 47 highest_filter_mode(idDesc, des 43 GrGLTexture(GrGLGpu* gpu, SkBudgeted budgeted, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) argument 52 GrGLTexture(GrGLGpu* gpu, Wrapped, const GrSurfaceDesc& desc, GrMipMapsStatus mipMapsStatus, const IDDesc& idDesc) argument 61 GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) argument 69 init(const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 104 MakeWrapped(GrGLGpu* gpu, const GrSurfaceDesc& desc, GrMipMapsStatus mipMapsStatus, const IDDesc& idDesc) argument [all...] |
H A D | GrGLRenderTarget.cpp | 24 const IDDesc& idDesc, 27 , INHERITED(gpu, desc, ComputeFlags(gpu->glCaps(), idDesc), stencil) { 28 this->init(desc, idDesc); 33 const IDDesc& idDesc) 35 , INHERITED(gpu, desc, ComputeFlags(gpu->glCaps(), idDesc)) { 36 this->init(desc, idDesc); 40 const IDDesc& idDesc) { 42 if (idDesc.fIsMixedSampled) { 43 SkASSERT(glCaps.usesMixedSamples() && idDesc.fRTFBOID); // FBO 0 can't be mixed sampled. 46 if (glCaps.maxWindowRectangles() > 0 && idDesc 22 GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrGLStencilAttachment* stencil) argument 32 GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 39 ComputeFlags(const GrGLCaps& glCaps, const IDDesc& idDesc) argument 52 init(const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 66 MakeWrapped(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, int stencilBits) argument [all...] |
H A D | GrGLGpu.cpp | 505 GrGLTexture::IDDesc* idDesc) { 511 idDesc->fInfo = *info; 513 if (GR_GL_TEXTURE_EXTERNAL == idDesc->fInfo.fTarget) { 517 } else if (GR_GL_TEXTURE_RECTANGLE == idDesc->fInfo.fTarget) { 521 } else if (GR_GL_TEXTURE_2D != idDesc->fInfo.fTarget) { 529 GrGLTexture::IDDesc idDesc; local 530 if (!check_backend_texture(backendTex, this->glCaps(), &idDesc)) { 533 if (!idDesc.fInfo.fFormat) { 534 idDesc.fInfo.fFormat = this->glCaps().configSizedInternalFormat(backendTex.config()); 537 idDesc 504 check_backend_texture(const GrBackendTexture& backendTex, const GrGLCaps& caps, GrGLTexture::IDDesc* idDesc) argument 559 GrGLTexture::IDDesc idDesc; local 609 GrGLRenderTarget::IDDesc idDesc; local 1276 createRenderTargetObjects(const GrSurfaceDesc& desc, const GrGLTextureInfo& texInfo, GrGLRenderTarget::IDDesc* idDesc) argument 1447 GrGLTexture::IDDesc idDesc; local [all...] |
/external/skia/tests/ |
H A D | TraceMemoryDumpTest.cpp | 101 GrGLTexture::IDDesc idDesc; local 102 idDesc.fInfo = glInfo; 103 idDesc.fOwnership = GrBackendObjectOwnership::kOwned; 105 auto texture = sk_make_sp<GrGLTexture>(gpu, SkBudgeted::kNo, desc, idDesc, 127 GrGLTexture::IDDesc idDesc; local 128 idDesc.fInfo = glInfo; 129 idDesc.fOwnership = GrBackendObjectOwnership::kBorrowed; 131 auto texture = GrGLTexture::MakeWrapped(gpu, desc, GrMipMapsStatus::kNotAllocated, idDesc);
|
/external/skqp/src/gpu/gl/ |
H A D | GrGLStencilAttachment.h | 32 const IDDesc& idDesc, 38 , fRenderbufferID(idDesc.fRenderbufferID) { 31 GrGLStencilAttachment(GrGpu* gpu, const IDDesc& idDesc, int width, int height, int sampleCnt, const Format& format) argument
|
H A D | GrGLTexture.cpp | 18 static inline GrSLType sampler_type(const GrGLTexture::IDDesc& idDesc, GrPixelConfig config, argument 20 if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_EXTERNAL) { 24 } else if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_RECTANGLE) { 31 SkASSERT(idDesc.fInfo.fTarget == GR_GL_TEXTURE_2D); 37 static inline GrSamplerState::Filter highest_filter_mode(const GrGLTexture::IDDesc& idDesc, argument 44 if (idDesc.fInfo.fTarget == GR_GL_TEXTURE_RECTANGLE || 45 idDesc.fInfo.fTarget == GR_GL_TEXTURE_EXTERNAL) { 53 const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) 55 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), 56 highest_filter_mode(idDesc, des 52 GrGLTexture(GrGLGpu* gpu, SkBudgeted budgeted, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) argument 61 GrGLTexture(GrGLGpu* gpu, Wrapped, const GrSurfaceDesc& desc, GrMipMapsStatus mipMapsStatus, const IDDesc& idDesc) argument 70 GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrMipMapsStatus mipMapsStatus) argument 78 init(const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 121 MakeWrapped(GrGLGpu* gpu, const GrSurfaceDesc& desc, GrMipMapsStatus mipMapsStatus, const IDDesc& idDesc) argument [all...] |
H A D | GrGLRenderTarget.cpp | 24 const IDDesc& idDesc, 27 , INHERITED(gpu, desc, ComputeFlags(gpu->glCaps(), idDesc), stencil) { 28 this->init(desc, idDesc); 33 const IDDesc& idDesc) 35 , INHERITED(gpu, desc, ComputeFlags(gpu->glCaps(), idDesc)) { 36 this->init(desc, idDesc); 40 const IDDesc& idDesc) { 42 if (idDesc.fIsMixedSampled) { 43 SkASSERT(glCaps.usesMixedSamples() && idDesc.fRTFBOID); // FBO 0 can't be mixed sampled. 46 if (glCaps.maxWindowRectangles() > 0 && idDesc 22 GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrGLStencilAttachment* stencil) argument 32 GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 39 ComputeFlags(const GrGLCaps& glCaps, const IDDesc& idDesc) argument 52 init(const GrSurfaceDesc& desc, const IDDesc& idDesc) argument 66 MakeWrapped(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, int stencilBits) argument [all...] |
H A D | GrGLGpu.cpp | 505 GrGLTexture::IDDesc* idDesc) { 511 idDesc->fInfo = *info; 513 if (GR_GL_TEXTURE_EXTERNAL == idDesc->fInfo.fTarget) { 517 } else if (GR_GL_TEXTURE_RECTANGLE == idDesc->fInfo.fTarget) { 521 } else if (GR_GL_TEXTURE_2D != idDesc->fInfo.fTarget) { 529 GrGLTexture::IDDesc idDesc; local 530 if (!check_backend_texture(backendTex, this->glCaps(), &idDesc)) { 533 if (!idDesc.fInfo.fFormat) { 534 idDesc.fInfo.fFormat = this->glCaps().configSizedInternalFormat(backendTex.config()); 537 idDesc 504 check_backend_texture(const GrBackendTexture& backendTex, const GrGLCaps& caps, GrGLTexture::IDDesc* idDesc) argument 559 GrGLTexture::IDDesc idDesc; local 609 GrGLRenderTarget::IDDesc idDesc; local 1274 createRenderTargetObjects(const GrSurfaceDesc& desc, const GrGLTextureInfo& texInfo, GrGLRenderTarget::IDDesc* idDesc) argument 1449 GrGLTexture::IDDesc idDesc; local [all...] |