/third_party/skia/src/gpu/mock/ |
H A D | GrMockTexture.h | 20 SkISize dimensions, in GrMockTexture() 24 : GrMockTexture(gpu, dimensions, isProtected, mipmapStatus, info) { in GrMockTexture() 29 SkISize dimensions, in GrMockTexture() 35 : GrMockTexture(gpu, dimensions, isProtected, mipmapStatus, info) { in GrMockTexture() 56 GrMockTexture(GrMockGpu* gpu, const SkISize& dimensions, GrProtected isProtected, in GrMockTexture() argument 58 : GrSurface(gpu, dimensions, isProtected) in GrMockTexture() 59 , INHERITED(gpu, dimensions, isProtected, GrTextureType::k2D, mipmapStatus) in GrMockTexture() 84 SkISize dimensions, in GrMockRenderTarget() 88 : GrSurface(gpu, dimensions, isProtected) in GrMockRenderTarget() 89 , INHERITED(gpu, dimensions, sampleCn in GrMockRenderTarget() 18 GrMockTexture(GrMockGpu* gpu, SkBudgeted budgeted, SkISize dimensions, GrProtected isProtected, GrMipmapStatus mipmapStatus, const GrMockTextureInfo& info) GrMockTexture() argument 28 GrMockTexture(GrMockGpu* gpu, SkISize dimensions, GrProtected isProtected, GrMipmapStatus mipmapStatus, const GrMockTextureInfo& info, GrWrapCacheable cacheable, GrIOType ioType) GrMockTexture() argument 82 GrMockRenderTarget(GrMockGpu* gpu, SkBudgeted budgeted, SkISize dimensions, int sampleCnt, GrProtected isProtected, const GrMockRenderTargetInfo& info) GrMockRenderTarget() argument 95 GrMockRenderTarget(GrMockGpu* gpu, Wrapped, SkISize dimensions, int sampleCnt, GrProtected isProtected, const GrMockRenderTargetInfo& info) GrMockRenderTarget() argument 137 GrMockRenderTarget(GrMockGpu* gpu, SkISize dimensions, int sampleCnt, GrProtected isProtected, const GrMockRenderTargetInfo& info) GrMockRenderTarget() argument 155 GrMockTextureRenderTarget(GrMockGpu* gpu, SkBudgeted budgeted, SkISize dimensions, int sampleCnt, GrProtected isProtected, GrMipmapStatus mipmapStatus, const GrMockTextureInfo& texInfo, const GrMockRenderTargetInfo& rtInfo) GrMockTextureRenderTarget() argument 170 GrMockTextureRenderTarget(GrMockGpu* gpu, SkISize dimensions, int sampleCnt, GrProtected isProtected, GrMipmapStatus mipmapStatus, const GrMockTextureInfo& texInfo, const GrMockRenderTargetInfo& rtInfo, GrWrapCacheable cacheable) GrMockTextureRenderTarget() argument [all...] |
H A D | GrMockGpu.cpp | 94 sk_sp<GrTexture> GrMockGpu::onCreateTexture(SkISize dimensions, in onCreateTexture() argument 117 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, budgeted, dimensions, in onCreateTexture() 122 new GrMockTexture(this, budgeted, dimensions, isProtected, mipmapStatus, texInfo)); in onCreateTexture() 126 sk_sp<GrTexture> GrMockGpu::onCreateCompressedTexture(SkISize dimensions, in onCreateCompressedTexture() argument 150 new GrMockTexture(this, budgeted, dimensions, isProtected, mipmapStatus, texInfo)); in onCreateCompressedTexture() 153 sk_sp<GrTexture> GrMockGpu::onCreateCompressedTexture(SkISize dimensions, in onCreateCompressedTexture() argument 179 return sk_sp<GrTexture>(new GrMockTexture(this, tex.dimensions(), isProtected, mipmapStatus, in onWrapBackendTexture() 204 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, tex.dimensions(), sampleCnt, in onWrapRenderableBackendTexture() 215 rt.dimensions(), rt.sampleCnt(), in onWrapBackendRenderTarget() 225 SkISize dimensions, in in makeStencilAttachment() 224 makeStencilAttachment(const GrBackendFormat& , SkISize dimensions, int numStencilSamples) makeStencilAttachment() argument 232 onCreateBackendTexture(SkISize dimensions, const GrBackendFormat& format, GrRenderable, GrMipmapped mipMapped, GrProtected) onCreateBackendTexture() argument 253 onCreateCompressedBackendTexture( SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped, GrProtected) onCreateCompressedBackendTexture() argument 292 createTestingOnlyBackendRenderTarget(SkISize dimensions, GrColorType colorType, int sampleCnt, GrProtected) createTestingOnlyBackendRenderTarget() argument [all...] |
/third_party/skia/src/gpu/vk/ |
H A D | GrVkTextureRenderTarget.cpp | 27 SkISize dimensions, in GrVkTextureRenderTarget() 32 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTextureRenderTarget() 33 , GrVkTexture(gpu, dimensions, std::move(texture), mipmapStatus) in GrVkTextureRenderTarget() 34 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget() 50 SkISize dimensions, in GrVkTextureRenderTarget() 56 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTextureRenderTarget() 57 , GrVkTexture(gpu, dimensions, std::move(texture), mipmapStatus) in GrVkTextureRenderTarget() 58 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget() 63 bool create_rt_attachments(GrVkGpu* gpu, SkISize dimensions, VkFormat format, int sampleCnt, in create_rt_attachments() argument 71 dimensions, GrBackendForma in create_rt_attachments() 24 GrVkTextureRenderTarget( GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus) GrVkTextureRenderTarget() argument 48 GrVkTextureRenderTarget( GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable) GrVkTextureRenderTarget() argument 84 MakeNewTextureRenderTarget( GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, VkFormat format, uint32_t mipLevels, int sampleCnt, GrMipmapStatus mipmapStatus, GrProtected isProtected) MakeNewTextureRenderTarget() argument 118 MakeWrappedTextureRenderTarget( GrVkGpu* gpu, SkISize dimensions, int sampleCnt, GrWrapOwnership wrapOwnership, GrWrapCacheable cacheable, const GrVkImageInfo& info, sk_sp<GrBackendSurfaceMutableStateImpl> mutableState) MakeWrappedTextureRenderTarget() argument [all...] |
H A D | GrVkTexture.cpp | 25 SkISize dimensions, in GrVkTexture() 28 : GrSurface(gpu, dimensions, in GrVkTexture() 30 , GrTexture(gpu, dimensions, in GrVkTexture() 54 GrVkTexture::GrVkTexture(GrVkGpu* gpu, SkISize dimensions, in GrVkTexture() argument 57 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTexture() 58 , GrTexture(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture() 72 SkISize dimensions, in GrVkTexture() 75 : GrSurface(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkTexture() 76 , GrTexture(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture() 88 SkISize dimensions, in MakeNewTexture() 23 GrVkTexture(GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus) GrVkTexture() argument 71 GrVkTexture(GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, GrMipmapStatus mipmapStatus) GrVkTexture() argument 87 MakeNewTexture(GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, VkFormat format, uint32_t mipLevels, GrProtected isProtected, GrMipmapStatus mipmapStatus) MakeNewTexture() argument 103 MakeWrappedTexture( GrVkGpu* gpu, SkISize dimensions, GrWrapOwnership wrapOwnership, GrWrapCacheable cacheable, GrIOType ioType, const GrVkImageInfo& info, sk_sp<GrBackendSurfaceMutableStateImpl> mutableState) MakeWrappedTexture() argument [all...] |
H A D | GrVkGpu.cpp | 601 SkASSERT(SkIRect::MakeSize(texture->dimensions()).contains(rect)); in onTransferPixelsTo() 769 SkASSERT(SkIRect::MakeSize(texImage->dimensions()).contains(rect)); in uploadTexDataLinear() 824 SkISize dimensions, in fill_in_compressed_regions() 829 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.width(), dimensions.height()) + 1; in fill_in_compressed_regions() 838 dimensions, in fill_in_compressed_regions() 860 SkISize revisedDimensions = GrCompressedDimensions(compression, dimensions); in fill_in_compressed_regions() 865 region.imageExtent = {SkToU32(dimensions.width()), in fill_in_compressed_regions() 866 SkToU32(dimensions.height()), 1}; in fill_in_compressed_regions() 868 dimensions in fill_in_compressed_regions() 818 fill_in_compressed_regions(GrStagingBufferManager* stagingBufferManager, SkTArray<VkBufferImageCopy>* regions, SkTArray<size_t>* individualMipOffsets, GrStagingBufferManager::Slice* slice, SkImage::CompressionType compression, VkFormat vkFormat, SkISize dimensions, GrMipmapped mipmapped) fill_in_compressed_regions() argument 875 fill_in_compressed_regions(SkTArray<VkBufferImageCopy>* regions, SkTArray<size_t>* individualMipOffsets, SkImage::CompressionType compression, SkISize dimensions, GrMipmapped mipmapped) fill_in_compressed_regions() argument 1035 uploadTexDataCompressed(GrVkImage* uploadTexture, SkImage::CompressionType compression, VkFormat vkFormat, SkISize dimensions, GrMipmapped mipMapped, const void* data, size_t dataSize) uploadTexDataCompressed() argument 1101 uploadTexDataCompressed(GrVkImage* uploadTexture, SkImage::CompressionType compression, VkFormat vkFormat, SkISize dimensions, GrMipmapped mipMapped, OH_NativeBuffer* nativeBuffer, size_t bufferSize) uploadTexDataCompressed() argument 1146 onCreateTexture(SkISize dimensions, const GrBackendFormat& format, GrRenderable renderable, int renderTargetSampleCnt, SkBudgeted budgeted, GrProtected isProtected, int mipLevelCount, uint32_t levelClearMask) onCreateTexture() argument 1212 onCreateCompressedTexture(SkISize dimensions, const GrBackendFormat& format, SkBudgeted budgeted, GrMipmapped mipMapped, GrProtected isProtected, const void* data, size_t dataSize) onCreateCompressedTexture() argument 1245 onCreateCompressedTexture(SkISize dimensions, const GrBackendFormat& format, SkBudgeted budgeted, GrMipmapped mipMapped, GrProtected isProtected, OH_NativeBuffer* nativeBuffer, size_t bufferSize) onCreateCompressedTexture() argument 1635 makeStencilAttachment(const GrBackendFormat& , SkISize dimensions, int numStencilSamples) makeStencilAttachment() argument 1643 makeMSAAAttachment(SkISize dimensions, const GrBackendFormat& format, int numSamples, GrProtected isProtected, GrMemoryless memoryless) makeMSAAAttachment() argument 1681 createVkImageForBackendSurface(VkFormat vkFormat, SkISize dimensions, int sampleCnt, GrTexturable texturable, GrRenderable renderable, GrMipmapped mipMapped, GrVkImageInfo* info, GrProtected isProtected) createVkImageForBackendSurface() argument 1806 onCreateBackendTexture(SkISize dimensions, const GrBackendFormat& format, GrRenderable renderable, GrMipmapped mipMapped, GrProtected isProtected) onCreateBackendTexture() argument 1840 onCreateCompressedBackendTexture( SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped, GrProtected isProtected) onCreateCompressedBackendTexture() argument 1955 setBackendSurfaceState(GrVkImageInfo info, sk_sp<GrBackendSurfaceMutableStateImpl> currentState, SkISize dimensions, const GrVkSharedImageInfo& newInfo, GrBackendSurfaceMutableState* previousState, sk_sp<GrRefCntedCallback> finishedCallback) setBackendSurfaceState() argument 2112 createTestingOnlyBackendRenderTarget(SkISize dimensions, GrColorType ct, int sampleCnt, GrProtected isProtected) createTestingOnlyBackendRenderTarget() argument [all...] |
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DTextureRenderTarget.cpp | 16 SkISize dimensions, in GrD3DTextureRenderTarget() 25 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTextureRenderTarget() 27 , GrD3DTexture(gpu, dimensions, info, state, shaderResourceView, mipmapStatus) in GrD3DTextureRenderTarget() 29 dimensions, in GrD3DTextureRenderTarget() 43 SkISize dimensions, in GrD3DTextureRenderTarget() 49 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTextureRenderTarget() 51 , GrD3DTexture(gpu, dimensions, info, state, shaderResourceView, mipmapStatus) in GrD3DTextureRenderTarget() 52 , GrD3DRenderTarget(gpu, dimensions, info, state, renderTargetView) { in GrD3DTextureRenderTarget() 58 SkISize dimensions, in GrD3DTextureRenderTarget() 68 : GrSurface(gpu, dimensions, inf in GrD3DTextureRenderTarget() 13 GrD3DTextureRenderTarget( GrD3DGpu* gpu, SkBudgeted budgeted, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, const GrD3DTextureResourceInfo& msaaInfo, sk_sp<GrD3DResourceState> msaaState, const GrD3DDescriptorHeap::CPUHandle& colorRenderTargetView, const GrD3DDescriptorHeap::CPUHandle& resolveRenderTargetView, GrMipmapStatus mipmapStatus) GrD3DTextureRenderTarget() argument 40 GrD3DTextureRenderTarget( GrD3DGpu* gpu, SkBudgeted budgeted, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, const GrD3DDescriptorHeap::CPUHandle& renderTargetView, GrMipmapStatus mipmapStatus) GrD3DTextureRenderTarget() argument 56 GrD3DTextureRenderTarget( GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, const GrD3DTextureResourceInfo& msaaInfo, sk_sp<GrD3DResourceState> msaaState, const GrD3DDescriptorHeap::CPUHandle& colorRenderTargetView, const GrD3DDescriptorHeap::CPUHandle& resolveRenderTargetView, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable) GrD3DTextureRenderTarget() argument 83 GrD3DTextureRenderTarget( GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, const GrD3DDescriptorHeap::CPUHandle& renderTargetView, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable) GrD3DTextureRenderTarget() argument 99 MakeNewTextureRenderTarget( GrD3DGpu* gpu, SkBudgeted budgeted, SkISize dimensions, int sampleCnt, const D3D12_RESOURCE_DESC& resourceDesc, GrProtected isProtected, GrMipmapStatus mipmapStatus) MakeNewTextureRenderTarget() argument 155 MakeWrappedTextureRenderTarget( GrD3DGpu* gpu, SkISize dimensions, int sampleCnt, GrWrapCacheable cacheable, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state) MakeWrappedTextureRenderTarget() argument [all...] |
H A D | GrD3DRenderTarget.cpp | 21 SkISize dimensions, in GrD3DRenderTarget() 29 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DRenderTarget() 32 , GrRenderTarget(gpu, dimensions, msaaInfo.fSampleCount, info.fProtected) in GrD3DRenderTarget() 44 SkISize dimensions, in GrD3DRenderTarget() 51 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DRenderTarget() 54 , GrRenderTarget(gpu, dimensions, msaaInfo.fSampleCount, info.fProtected) in GrD3DRenderTarget() 65 SkISize dimensions, in GrD3DRenderTarget() 70 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DRenderTarget() 72 , GrRenderTarget(gpu, dimensions, info.fSampleCount, info.fProtected) in GrD3DRenderTarget() 81 SkISize dimensions, in GrD3DRenderTarget() 20 GrD3DRenderTarget(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DTextureResourceInfo& msaaInfo, sk_sp<GrD3DResourceState> msaaState, const GrD3DDescriptorHeap::CPUHandle& colorRenderTargetView, const GrD3DDescriptorHeap::CPUHandle& resolveRenderTargetView, Wrapped) GrD3DRenderTarget() argument 43 GrD3DRenderTarget(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DTextureResourceInfo& msaaInfo, sk_sp<GrD3DResourceState> msaaState, const GrD3DDescriptorHeap::CPUHandle& colorRenderTargetView, const GrD3DDescriptorHeap::CPUHandle& resolveRenderTargetView) GrD3DRenderTarget() argument 64 GrD3DRenderTarget(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& renderTargetView, Wrapped) GrD3DRenderTarget() argument 80 GrD3DRenderTarget(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& renderTargetView) GrD3DRenderTarget() argument 91 MakeWrappedRenderTarget( GrD3DGpu* gpu, SkISize dimensions, int sampleCnt, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state) MakeWrappedRenderTarget() argument [all...] |
H A D | GrD3DTexture.cpp | 19 SkISize dimensions, in GrD3DTexture() 24 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture() 26 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture() 35 GrD3DTexture::GrD3DTexture(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, in GrD3DTexture() argument 40 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture() 42 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture() 53 SkISize dimensions, in GrD3DTexture() 58 : GrSurface(gpu, dimensions, info.fProtected) in GrD3DTexture() 60 , INHERITED(gpu, dimensions, info.fProtected, GrTextureType::k2D, mipmapStatus) in GrD3DTexture() 66 SkISize dimensions, in MakeNewTexture() 17 GrD3DTexture(GrD3DGpu* gpu, SkBudgeted budgeted, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, GrMipmapStatus mipmapStatus) GrD3DTexture() argument 52 GrD3DTexture(GrD3DGpu* gpu, SkISize dimensions, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state, const GrD3DDescriptorHeap::CPUHandle& shaderResourceView, GrMipmapStatus mipmapStatus) GrD3DTexture() argument 65 MakeNewTexture(GrD3DGpu* gpu, SkBudgeted budgeted, SkISize dimensions, const D3D12_RESOURCE_DESC& desc, GrProtected isProtected, GrMipmapStatus mipmapStatus) MakeNewTexture() argument 89 MakeWrappedTexture(GrD3DGpu* gpu, SkISize dimensions, GrWrapCacheable cacheable, GrIOType ioType, const GrD3DTextureResourceInfo& info, sk_sp<GrD3DResourceState> state) MakeWrappedTexture() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | librsvgdec.c | 43 RsvgDimensionData unscaled_dimensions, dimensions; in librsvg_decode_frame() local 57 rsvg_handle_get_dimensions(handle, &dimensions); in librsvg_decode_frame() 59 dimensions.width = s->width ? s->width : dimensions.width; in librsvg_decode_frame() 60 dimensions.height = s->height ? s->height : dimensions.height; in librsvg_decode_frame() 64 dimensions.width = lrintf(dimensions.height * default_ar); in librsvg_decode_frame() 66 dimensions.height = lrintf(dimensions in librsvg_decode_frame() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrResourceProvider.cpp | 44 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture() argument 62 numMipLevels = SkMipmap::ComputeLevelCount(dimensions.fWidth, dimensions.fHeight) + 1; in createTexture() 65 if (!fCaps->validateSurfaceParams(dimensions, in createTexture() 75 auto scratch = this->getExactScratch(dimensions, in createTexture() 87 return this->writePixels(std::move(scratch), colorType, dimensions, texels, numMipLevels); in createTexture() 93 tempColorType = this->prepareLevels(format, colorType, dimensions, texels, numMipLevels, in createTexture() 99 return fGpu->createTexture(dimensions, in createTexture() 112 sk_sp<GrTexture> GrResourceProvider::getExactScratch(SkISize dimensions, in getExactScratch() argument 120 sk_sp<GrTexture> tex(this->findAndRefScratchTexture(dimensions, in getExactScratch() 134 createTexture(SkISize dimensions, const GrBackendFormat& format, GrTextureType textureType, GrColorType colorType, GrRenderable renderable, int renderTargetSampleCnt, SkBudgeted budgeted, SkBackingFit fit, GrProtected isProtected, const GrMipLevel& mipLevel) createTexture() argument 179 createCompressedTexture(SkISize dimensions, const GrBackendFormat& format, SkBudgeted budgeted, GrMipmapped mipmapped, GrProtected isProtected, SkData* data) createCompressedTexture() argument 199 createTexture(SkISize dimensions, const GrBackendFormat& format, GrTextureType textureType, GrRenderable renderable, int renderTargetSampleCnt, GrMipmapped mipmapped, SkBudgeted budgeted, GrProtected isProtected) createTexture() argument 247 MakeApprox(SkISize dimensions) MakeApprox() argument 274 createApproxTexture(SkISize dimensions, const GrBackendFormat& format, GrTextureType textureType, GrRenderable renderable, int renderTargetSampleCnt, GrProtected isProtected) createApproxTexture() argument 326 findAndRefScratchTexture(SkISize dimensions, const GrBackendFormat& format, GrTextureType textureType, GrRenderable renderable, int renderTargetSampleCnt, GrMipmapped mipmapped, GrProtected isProtected) findAndRefScratchTexture() argument 647 getDiscardableMSAAAttachment(SkISize dimensions, const GrBackendFormat& format, int sampleCnt, GrProtected isProtected, GrMemoryless memoryless) getDiscardableMSAAAttachment() argument 691 makeMSAAAttachment(SkISize dimensions, const GrBackendFormat& format, int sampleCnt, GrProtected isProtected, GrMemoryless memoryless) makeMSAAAttachment() argument 725 refScratchMSAAAttachment(SkISize dimensions, const GrBackendFormat& format, int sampleCnt, GrProtected isProtected, GrMemoryless memoryless) refScratchMSAAAttachment() argument 771 prepare_level(const GrMipLevel& inLevel, SkISize dimensions, bool rowBytesSupport, GrColorType origColorType, GrColorType allowedColorType, GrMipLevel* outLevel, std::unique_ptr<char[]>* data) prepare_level() argument [all...] |
H A D | GrGpu.cpp | 53 static bool validate_texel_levels(SkISize dimensions, GrColorType texelColorType, in validate_texel_levels() argument 59 int w = dimensions.fWidth; in validate_texel_levels() 60 int h = dimensions.fHeight; in validate_texel_levels() 98 sk_sp<GrTexture> GrGpu::createTextureCommon(SkISize dimensions, in createTextureCommon() argument 113 if (!this->caps()->validateSurfaceParams(dimensions, in createTextureCommon() 129 auto tex = this->onCreateTexture(dimensions, in createTextureCommon() 152 sk_sp<GrTexture> GrGpu::createTexture(SkISize dimensions, in createTexture() argument 163 32 - SkCLZ(static_cast<uint32_t>(std::max(dimensions.fWidth, dimensions.fHeight))); in createTexture() 167 auto tex = this->createTextureCommon(dimensions, in createTexture() 182 createTexture(SkISize dimensions, const GrBackendFormat& format, GrTextureType textureType, GrRenderable renderable, int renderTargetSampleCnt, SkBudgeted budgeted, GrProtected isProtected, GrColorType textureColorType, GrColorType srcColorType, const GrMipLevel texels[], int texelLevelCount) createTexture() argument 251 createCompressedTexture(SkISize dimensions, const GrBackendFormat& format, SkBudgeted budgeted, GrMipmapped mipMapped, GrProtected isProtected, const void* data, size_t dataSize) createCompressedTexture() argument 287 createCompressedTexture(SkISize dimensions, const GrBackendFormat& format, SkBudgeted budgeted, GrMipmapped mipMapped, GrProtected isProtected, OH_NativeBuffer* nativeBuffer, size_t bufferSize) createCompressedTexture() argument 860 CompressedDataIsCorrect(SkISize dimensions, SkImage::CompressionType compressionType, GrMipmapped mipMapped, const void* data, size_t length) CompressedDataIsCorrect() argument 872 createBackendTexture(SkISize dimensions, const GrBackendFormat& format, GrRenderable renderable, GrMipmapped mipMapped, GrProtected isProtected) createBackendTexture() argument 914 createCompressedBackendTexture(SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped, GrProtected isProtected) createCompressedBackendTexture() argument [all...] |
H A D | GrProxyProvider.cpp | 135 SkISize dimensions, in testingOnly_createInstantiatedProxy() 161 tex = resourceProvider->createApproxTexture(dimensions, in testingOnly_createInstantiatedProxy() 168 tex = resourceProvider->createTexture(dimensions, in testingOnly_createInstantiatedProxy() 185 SkISize dimensions, in testingOnly_createInstantiatedProxy() 197 return this->testingOnly_createInstantiatedProxy(dimensions, in testingOnly_createInstantiatedProxy() 343 auto dims = bitmap.dimensions(); in createNonMippedProxyFromBitmap() 374 SkASSERT(proxy->dimensions() == bitmap.dimensions()); in createNonMippedProxyFromBitmap() 393 auto dims = bitmap.dimensions(); in createMippedProxyFromBitmap() 431 SkASSERT(proxy->dimensions() in createMippedProxyFromBitmap() 134 testingOnly_createInstantiatedProxy( SkISize dimensions, const GrBackendFormat& format, GrRenderable renderable, int renderTargetSampleCnt, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected) testingOnly_createInstantiatedProxy() argument 184 testingOnly_createInstantiatedProxy( SkISize dimensions, GrColorType colorType, GrRenderable renderable, int renderTargetSampleCnt, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected) testingOnly_createInstantiatedProxy() argument 436 createProxy(const GrBackendFormat& format, SkISize dimensions, GrRenderable renderable, int renderTargetSampleCnt, GrMipmapped mipMapped, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrInternalSurfaceFlags surfaceFlags, GrSurfaceProxy::UseAllocator useAllocator) createProxy() argument 494 createCompressedTextureProxy( SkISize dimensions, SkBudgeted budgeted, GrMipmapped mipMapped, GrProtected isProtected, SkImage::CompressionType compressionType, sk_sp<SkData> data) createCompressedTextureProxy() argument 725 CreatePromiseProxy(GrContextThreadSafeProxy* threadSafeProxy, LazyInstantiateCallback&& callback, const GrBackendFormat& format, SkISize dimensions, GrMipmapped mipMapped) CreatePromiseProxy() argument 762 createLazyProxy(LazyInstantiateCallback&& callback, const GrBackendFormat& format, SkISize dimensions, GrMipmapped mipMapped, GrMipmapStatus mipmapStatus, GrInternalSurfaceFlags surfaceFlags, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrSurfaceProxy::UseAllocator useAllocator) createLazyProxy() argument 801 createLazyRenderTargetProxy( LazyInstantiateCallback&& callback, const GrBackendFormat& format, SkISize dimensions, int sampleCnt, GrInternalSurfaceFlags surfaceFlags, const TextureInfo* textureInfo, GrMipmapStatus mipmapStatus, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, bool wrapsVkSecondaryCB, UseAllocator useAllocator) createLazyRenderTargetProxy() argument [all...] |
H A D | GrImageInfo.h | 20 : fColorInfo(info.colorInfo()), fDimensions(info.dimensions()) {} in GrImageInfo() 25 GrImageInfo(GrColorType ct, SkAlphaType at, sk_sp<SkColorSpace> cs, const SkISize& dimensions) in GrImageInfo() argument 26 : fColorInfo(ct, at, std::move(cs)), fDimensions(dimensions) {} in GrImageInfo() 28 GrImageInfo(const GrColorInfo& info, const SkISize& dimensions) in GrImageInfo() argument 29 : fColorInfo(info), fDimensions(dimensions) {} in GrImageInfo() 31 GrImageInfo(GrColorInfo&& info, const SkISize& dimensions) in GrImageInfo() argument 32 : fColorInfo(std::move(info)), fDimensions(dimensions) {} in GrImageInfo() 40 return {this->colorInfo().makeColorType(ct), this->dimensions()}; in makeColorType() 51 GrImageInfo makeDimensions(SkISize dimensions) const { in makeDimensions() 52 return {this->colorType(), this->alphaType(), this->refColorSpace(), dimensions}; in makeDimensions() 69 SkISize dimensions() const { return fDimensions; } dimensions() function in GrImageInfo [all...] |
H A D | GrAttachment.cpp | 29 uint64_t size = GrNumBlocks(compression, this->dimensions()); in onGpuMemorySize() 58 SkISize dimensions, in build_key() 64 SkASSERT(!dimensions.isEmpty()); in build_key() 72 (*builder)[0] = dimensions.width(); in build_key() 73 (*builder)[1] = dimensions.height(); in build_key() 84 SkISize dimensions, in ComputeSharedAttachmentUniqueKey() 94 build_key(&builder, caps, format, dimensions, requiredUsage, sampleCnt, mipmapped, isProtected, in ComputeSharedAttachmentUniqueKey() 100 SkISize dimensions, in ComputeScratchKey() 110 build_key(&builder, caps, format, dimensions, requiredUsage, sampleCnt, mipmapped, isProtected, in ComputeScratchKey() 119 this->dimensions(), in computeScratchKey() 55 build_key(GrResourceKey::Builder* builder, const GrCaps& caps, const GrBackendFormat& format, SkISize dimensions, GrAttachment::UsageFlags requiredUsage, int sampleCnt, GrMipmapped mipmapped, GrProtected isProtected, GrMemoryless memoryless) build_key() argument 82 ComputeSharedAttachmentUniqueKey(const GrCaps& caps, const GrBackendFormat& format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, GrMipmapped mipmapped, GrProtected isProtected, GrMemoryless memoryless, GrUniqueKey* key) ComputeSharedAttachmentUniqueKey() argument 98 ComputeScratchKey(const GrCaps& caps, const GrBackendFormat& format, SkISize dimensions, UsageFlags requiredUsage, int sampleCnt, GrMipmapped mipmapped, GrProtected isProtected, GrMemoryless memoryless, GrScratchKey* key) ComputeScratchKey() argument [all...] |
H A D | GrTextureRenderTargetProxy.cpp | 27 SkISize dimensions, in GrTextureRenderTargetProxy() 37 : GrSurfaceProxy(format, dimensions, fit, budgeted, isProtected, surfaceFlags, useAllocator) in GrTextureRenderTargetProxy() 39 , GrRenderTargetProxy(caps, format, dimensions, sampleCnt, fit, budgeted, isProtected, in GrTextureRenderTargetProxy() 41 , GrTextureProxy(format, dimensions, mipMapped, mipmapStatus, fit, budgeted, isProtected, in GrTextureRenderTargetProxy() 50 SkISize dimensions, in GrTextureRenderTargetProxy() 60 : GrSurfaceProxy(std::move(callback), format, dimensions, fit, budgeted, isProtected, in GrTextureRenderTargetProxy() 64 , GrRenderTargetProxy(LazyInstantiateCallback(), format, dimensions, sampleCnt, fit, in GrTextureRenderTargetProxy() 67 , GrTextureProxy(LazyInstantiateCallback(), format, dimensions, mipMapped, mipmapStatus, in GrTextureRenderTargetProxy() 113 return GrSurface::ComputeSize(this->backendFormat(), this->dimensions(), in onUninstantiatedGpuMemorySize() 160 dims = this->dimensions(); in callbackDesc() 25 GrTextureRenderTargetProxy(const GrCaps& caps, const GrBackendFormat& format, SkISize dimensions, int sampleCnt, GrMipmapped mipMapped, GrMipmapStatus mipmapStatus, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrInternalSurfaceFlags surfaceFlags, UseAllocator useAllocator, GrDDLProvider creatingProvider) GrTextureRenderTargetProxy() argument 47 GrTextureRenderTargetProxy(const GrCaps& caps, LazyInstantiateCallback&& callback, const GrBackendFormat& format, SkISize dimensions, int sampleCnt, GrMipmapped mipMapped, GrMipmapStatus mipmapStatus, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrInternalSurfaceFlags surfaceFlags, UseAllocator useAllocator, GrDDLProvider creatingProvider) GrTextureRenderTargetProxy() argument [all...] |
H A D | GrSurface.cpp | 19 SkISize dimensions, in ComputeSize() 32 dimensions = GrResourceProvider::MakeApprox(dimensions); in ComputeSize() 37 colorSize = SkCompressedFormatDataSize(compressionType, dimensions, in ComputeSize() 40 colorSize = (size_t)dimensions.width() * dimensions.height() * in ComputeSize() 48 // We don't have to worry about the mipmaps being a different dimensions than in ComputeSize() 18 ComputeSize(const GrBackendFormat& format, SkISize dimensions, int colorSamplesPerPixel, GrMipmapped mipMapped, bool binSize) ComputeSize() argument
|
H A D | GrSurfaceProxy.cpp | 29 static bool is_valid_lazy(const SkISize& dimensions, SkBackingFit fit) { in is_valid_lazy() argument 34 return ((dimensions.fWidth < 0 && dimensions.fHeight < 0 && SkBackingFit::kApprox == fit) || in is_valid_lazy() 35 (dimensions.fWidth > 0 && dimensions.fHeight > 0)); in is_valid_lazy() 38 static bool is_valid_non_lazy(SkISize dimensions) { in is_valid_non_lazy() argument 39 return dimensions.fWidth > 0 && dimensions.fHeight > 0; in is_valid_non_lazy() 45 SkISize dimensions, in GrSurfaceProxy() 53 , fDimensions(dimensions) in GrSurfaceProxy() 44 GrSurfaceProxy(const GrBackendFormat& format, SkISize dimensions, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrInternalSurfaceFlags surfaceFlags, UseAllocator useAllocator) GrSurfaceProxy() argument 63 GrSurfaceProxy(LazyInstantiateCallback&& callback, const GrBackendFormat& format, SkISize dimensions, SkBackingFit fit, SkBudgeted budgeted, GrProtected isProtected, GrInternalSurfaceFlags surfaceFlags, UseAllocator useAllocator) GrSurfaceProxy() argument [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | pbo.c | 66 _mesa_validate_pbo_access(GLuint dimensions, in _mesa_validate_pbo_access() argument 112 start = _mesa_image_offset(dimensions, pack, width, height, in _mesa_validate_pbo_access() 116 end = _mesa_image_offset(dimensions, pack, width, height, in _mesa_validate_pbo_access() 178 _mesa_validate_pbo_source(struct gl_context *ctx, GLuint dimensions, in _mesa_validate_pbo_source() argument 185 assert(dimensions == 1 || dimensions == 2 || dimensions == 3); in _mesa_validate_pbo_source() 187 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth, in _mesa_validate_pbo_source() 221 _mesa_validate_pbo_source_compressed(struct gl_context *ctx, GLuint dimensions, in _mesa_validate_pbo_source_compressed() argument 259 GLuint dimensions, in _mesa_map_validate_pbo_source() 258 _mesa_map_validate_pbo_source(struct gl_context *ctx, GLuint dimensions, const struct gl_pixelstore_attrib *unpack, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei clientMemSize, const GLvoid *ptr, const char *where) _mesa_map_validate_pbo_source() argument 336 _mesa_map_validate_pbo_dest(struct gl_context *ctx, GLuint dimensions, const struct gl_pixelstore_attrib *unpack, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei clientMemSize, GLvoid *ptr, const char *where) _mesa_map_validate_pbo_dest() argument 395 _mesa_validate_pbo_teximage(struct gl_context *ctx, GLuint dimensions, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *unpack, const char *funcName) _mesa_validate_pbo_teximage() argument 437 _mesa_validate_pbo_compressed_teximage(struct gl_context *ctx, GLuint dimensions, GLsizei imageSize, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *funcName) _mesa_validate_pbo_compressed_teximage() argument [all...] |
/third_party/skia/gm/ |
H A D | compressed_textures.cpp | 43 // The resulting path will be centered at (0,0) and its size will match 'dimensions' 44 static SkPath make_gear(SkISize dimensions, int numTeeth) { in make_gear() argument 45 SkVector outerRad{ dimensions.fWidth / 2.0f, dimensions.fHeight / 2.0f }; in make_gear() 46 SkVector innerRad{ dimensions.fWidth / 2.5f, dimensions.fHeight / 2.5f }; in make_gear() 65 float fInnerRad = 0.1f * std::min(dimensions.fWidth, dimensions.fHeight); in make_gear() 74 SkBitmap render_level(SkISize dimensions, SkColor color, SkColorType colorType, bool opaque) { in render_level() argument 75 SkPath path = make_gear(dimensions, in render_level() 101 make_compressed_image(GrDirectContext* dContext, const SkISize dimensions, SkColorType colorType, bool opaque, SkImage::CompressionType compression) make_compressed_image() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkCompressedDataUtils.cpp | 86 static bool decompress_etc1(SkISize dimensions, const uint8_t* srcData, SkBitmap* dst) { in decompress_etc1() argument 89 int numXBlocks = num_4x4_blocks(dimensions.width()); in decompress_etc1() 90 int numYBlocks = num_4x4_blocks(dimensions.height()); in decompress_etc1() 180 static bool decompress_bc1(SkISize dimensions, const uint8_t* srcData, in decompress_bc1() argument 184 int numXBlocks = num_4x4_blocks(dimensions.width()); in decompress_bc1() 185 int numYBlocks = num_4x4_blocks(dimensions.height()); in decompress_bc1() 229 SkISize dimensions, in SkDecompress() 237 case Type::kETC2_RGB8_UNORM: return decompress_etc1(dimensions, bytes, dst); in SkDecompress() 238 case Type::kBC1_RGB8_UNORM: return decompress_bc1(dimensions, bytes, true, dst); in SkDecompress() 239 case Type::kBC1_RGBA8_UNORM: return decompress_bc1(dimensions, byte in SkDecompress() 228 SkDecompress(sk_sp<SkData> data, SkISize dimensions, SkImage::CompressionType compressionType, SkBitmap* dst) SkDecompress() argument 249 SkCompressedDataSize(SkImage::CompressionType type, SkISize dimensions, SkTArray<size_t>* individualMipOffsets, bool mipMapped) SkCompressedDataSize() argument 330 SkCompressedFormatDataSize(SkImage::CompressionType compressionType, SkISize dimensions, bool mipMapped) SkCompressedFormatDataSize() argument [all...] |
/third_party/skia/src/gpu/dawn/ |
H A D | GrDawnTexture.cpp | 15 SkISize dimensions, in GrDawnTexture() 18 : GrSurface(gpu, dimensions, GrProtected::kNo) in GrDawnTexture() 19 , GrTexture(gpu, dimensions, GrProtected::kNo, GrTextureType::k2D, mipmapStatus) in GrDawnTexture() 22 sk_sp<GrDawnTexture> GrDawnTexture::Make(GrDawnGpu* gpu, SkISize dimensions, in Make() argument 37 textureDesc.size.width = dimensions.fWidth; in Make() 38 textureDesc.size.height = dimensions.fHeight; in Make() 57 dimensions, in Make() 63 new GrDawnTexture(gpu, dimensions, info, status)); in Make() 73 sk_sp<GrDawnTexture> GrDawnTexture::MakeWrapped(GrDawnGpu* gpu, SkISize dimensions, in MakeWrapped() argument 82 gpu, dimensions, sampleCn in MakeWrapped() 14 GrDawnTexture(GrDawnGpu* gpu, SkISize dimensions, const GrDawnTextureInfo& info, GrMipmapStatus mipmapStatus) GrDawnTexture() argument [all...] |
/third_party/skia/src/gpu/gl/ |
H A D | GrGLAttachment.cpp | 56 SkISize dimensions, in MakeStencil() 70 if (!renderbuffer_storage_msaa(gpu, sampleCnt, glFmt, dimensions.width(), in MakeStencil() 71 dimensions.height())) { in MakeStencil() 77 GR_GL_RENDERBUFFER, glFmt, dimensions.width(), dimensions.height())); in MakeStencil() 86 dimensions, in MakeStencil() 93 SkISize dimensions, in MakeMSAA() 105 gpu, sampleCnt, glFmt, dimensions.width(), dimensions.height())) { in MakeMSAA() 112 dimensions, in MakeMSAA() 55 MakeStencil(GrGLGpu* gpu, SkISize dimensions, int sampleCnt, GrGLFormat format) MakeStencil() argument 92 MakeMSAA(GrGLGpu* gpu, SkISize dimensions, int sampleCnt, GrGLFormat format) MakeMSAA() argument [all...] |
/third_party/skia/tools/skqp/src/ |
H A D | skqp_model.cpp | 28 static inline bool inside(SkIPoint point, SkISize dimensions) { in inside() argument 29 return (unsigned)point.x() < (unsigned)dimensions.width() && in inside() 30 (unsigned)point.y() < (unsigned)dimensions.height(); in inside() 39 SkISize dim = img.info().dimensions(); in Check() 40 SkASSERT(minImg.info().dimensions() == dim); in Check() 41 SkASSERT(maxImg.info().dimensions() == dim); in Check() 92 SkISize size = codec->getInfo().dimensions(); in decode() 130 if (max_image.info().dimensions() != min_image.info().dimensions()) { in CheckAgainstModel() 135 if (max_image.info().dimensions() ! in CheckAgainstModel() [all...] |
/third_party/skia/include/core/ |
H A D | SkImageInfo.h | 174 providing dimensions. 276 Describes pixel dimensions and encoding. SkBitmap, SkImage, PixMap, and SkSurface 281 SkImageInfo contains dimensions, the pixel integral width and height. It encodes 295 /** Creates SkImageInfo from integral dimensions width and height, SkColorType ct, 313 static SkImageInfo Make(SkISize dimensions, SkColorType ct, SkAlphaType at, in Make() 315 return SkImageInfo(dimensions, {ct, at, std::move(cs)}); in Make() 318 /** Creates SkImageInfo from integral dimensions and SkColorInfo colorInfo, 323 @param dimensions pixel column and row count; must be zeros or greater 328 static SkImageInfo Make(SkISize dimensions, const SkColorInfo& colorInfo) { in Make() 329 return SkImageInfo(dimensions, colorInf in Make() 510 SkISize dimensions() const { return fDimensions; } dimensions() function [all...] |
/third_party/skia/src/gpu/mtl/ |
H A D | GrMtlAttachment.h | 21 SkISize dimensions, 26 SkISize dimensions, 31 SkISize dimensions, 39 SkISize dimensions, 64 SkISize dimensions, 74 SkISize dimensions, 80 SkISize dimensions,
|