/external/skia/src/gpu/ |
D | GrTexture.cpp | 36 if (GrPixelConfigIsCompressed(fDesc.fConfig)) { in onGpuMemorySize() 37 textureSize = GrCompressedFormatDataSize(fDesc.fConfig, fDesc.fWidth, fDesc.fHeight); in onGpuMemorySize() 39 textureSize = (size_t) fDesc.fWidth * fDesc.fHeight * GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize() 88 if (!this->isExternal() && !GrPixelConfigIsCompressed(desc.fConfig) && in GrTexture() 102 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 6)); in ComputeScratchKey() 110 builder[2] = desc.fConfig | (desc.fSampleCnt << 6) | (flags << 14) | (origin << 24); in ComputeScratchKey()
|
D | GrGpu.cpp | 95 if (!this->caps()->isConfigTexturable(desc.fConfig)) { in createTexture() 100 if (isRT && !this->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in createTexture() 133 if (GrPixelConfigIsCompressed(desc.fConfig)) { in createTexture() 163 if (!this->caps()->isConfigTexturable(desc.fConfig)) { in wrapBackendTexture() 167 !this->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in wrapBackendTexture() 190 if (!this->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in wrapBackendRenderTarget() 203 if (!this->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in wrapBackendTextureAsRenderTarget() 282 !this->caps()->isConfigRenderable(tempDrawInfo->fTempSurfaceDesc.fConfig, false)) { in getReadPixelsInfo() 299 if (GrPixelConfigIsCompressed(dstSurface->desc().fConfig) && in getWritePixelsInfo() 300 dstSurface->desc().fConfig != srcConfig) { in getWritePixelsInfo() [all …]
|
D | GrSurface.cpp | 28 SkASSERT(kUnknown_GrPixelConfig != desc.fConfig); in WorseCaseSize() 29 SkASSERT(!GrPixelConfigIsCompressed(desc.fConfig)); in WorseCaseSize() 30 size_t colorBytes = GrBytesPerPixel(desc.fConfig); in WorseCaseSize() 34 if (GrPixelConfigIsCompressed(desc.fConfig)) { in WorseCaseSize() 35 size = GrCompressedFormatDataSize(desc.fConfig, desc.fWidth, desc.fHeight); in WorseCaseSize() 37 size = (size_t) desc.fWidth * desc.fHeight * GrBytesPerPixel(desc.fConfig); in WorseCaseSize()
|
D | GrTextureProvider.cpp | 39 !fGpu->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in createTexture() 42 if (!GrPixelConfigIsCompressed(desc.fConfig) && in createTexture() 47 if (!srcData || texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, in createTexture() 72 if (GrPixelConfigIsCompressed(desc.fConfig)) { in internalCreateApproxTexture() 83 SkASSERT(!GrPixelConfigIsCompressed(inDesc.fConfig)); in refScratchTexture()
|
D | GrBatchAtlas.cpp | 30 , fConfig(config) in BatchPlot() 94 fConfig, dataPtr, rowBytes); in uploadToTexture() 153 SkASSERT(!GrPixelConfigIsCompressed(texture->desc().fConfig)); in GrBatchAtlas() 163 texture->desc().fConfig)); in GrBatchAtlas() 207 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == plot->bpp()); in addToAtlas() 222 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == plot->bpp()); in addToAtlas() 251 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == newPlot->bpp()); in addToAtlas()
|
D | GrSWMaskHelper.cpp | 235 desc.fConfig = kAlpha_8_GrPixelConfig; in createTexture() 246 desc.fConfig = fmt_to_config(fCompressedFormat); in createTexture() 247 SkASSERT(fContext->caps()->isConfigTexturable(desc.fConfig)); in createTexture() 259 texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, data, rowbytes); in sendTextureData() 264 SkASSERT(GrPixelConfigIsCompressed(desc.fConfig)); in compressTextureData() 265 SkASSERT(fmt_to_config(fCompressedFormat) == desc.fConfig); in compressTextureData() 281 desc.fConfig = texture->config(); in toTexture()
|
D | GrTextureParamsAdjuster.cpp | 41 rtDesc.fConfig = GrMakePixelConfigUncompressed(rtDesc.fConfig); in copy_on_gpu() 45 if (!caps->isConfigRenderable(rtDesc.fConfig, false)) { in copy_on_gpu() 46 if (GrPixelConfigIsAlphaOnly(rtDesc.fConfig)) { in copy_on_gpu() 48 rtDesc.fConfig = kAlpha_8_GrPixelConfig; in copy_on_gpu() 50 rtDesc.fConfig = kSkia8888_GrPixelConfig; in copy_on_gpu() 55 (kRGB_GrColorComponentFlags & GrPixelConfigComponentMask(rtDesc.fConfig))) { in copy_on_gpu() 57 rtDesc.fConfig = kSkia8888_GrPixelConfig; in copy_on_gpu()
|
D | GrTextureToYUVPlanes.cpp | 73 yuvDesc.fConfig = kRGBA_8888_GrPixelConfig; in GrTextureToYUVPlanes() 83 yDesc.fConfig = singleChannelPixelConfig; in GrTextureToYUVPlanes() 94 uvDesc.fConfig = kRGBA_8888_GrPixelConfig; in GrTextureToYUVPlanes() 104 uvDesc.fConfig = singleChannelPixelConfig; in GrTextureToYUVPlanes()
|
D | GrBlurUtils.cpp | 81 desc.fConfig = kAlpha_8_GrPixelConfig; in sw_draw_with_mask_filter() 87 texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, in sw_draw_with_mask_filter() 114 desc.fConfig = kRGBA_8888_GrPixelConfig; in create_mask_GPU() 117 desc.fConfig = kAlpha_8_GrPixelConfig; in create_mask_GPU()
|
/external/skia/bench/ |
D | ResultsWriter.h | 82 , fConfig(nullptr) {} in NanoJSONResultsWriter() 103 fConfig = &(*fBench)[name]; in config() 106 (*fConfig)["options"][name] = value; in configOption() 113 SkASSERT(fConfig); in metric() 114 (*fConfig)[name] = ms; in metric() 135 Json::Value* fConfig; variable
|
/external/skia/src/gpu/glsl/ |
D | GrGLSLTextureSampler.h | 22 , fConfig(access.getTexture()->config()) { in GrGLSLTextureSampler() 23 SkASSERT(kUnknown_GrPixelConfig != fConfig); in GrGLSLTextureSampler() 26 GrPixelConfig config() const { return fConfig; } in config() 30 GrPixelConfig fConfig; variable
|
/external/skia/tests/ |
D | ReadWriteAlphaTest.cpp | 46 desc.fConfig = kAlpha_8_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 70 texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 79 texture->readPixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 104 texture->readPixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, readback.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 141 desc.fConfig = cfg; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 156 if (!rt && kRGBA_8888_GrPixelConfig == desc.fConfig) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | SRGBReadWritePixelsTest.cpp | 161 desc.fConfig = kSRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 162 if (context->caps()->isConfigRenderable(desc.fConfig, false) && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 163 context->caps()->isConfigTexturable(desc.fConfig)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 203 desc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | FloatingPointTextureTest.cpp | 45 desc.fConfig = config; in runFPTest() 54 fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer.begin(), 0); in runFPTest()
|
D | GrSurfaceTest.cpp | 23 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_NULL_CONTEXT() 50 backendDesc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_NULL_CONTEXT()
|
D | SpecialSurfaceTest.cpp | 85 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 98 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | RectangleTextureTest.cpp | 57 copyDstDesc.fConfig = kRGBA_8888_GrPixelConfig; in test_copy_surface_src() 78 copySrcDesc.fConfig = kRGBA_8888_GrPixelConfig; in test_copy_surface_dst() 170 rectangleDesc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | GLProgramsTest.cpp | 159 texDesc.fConfig = kRGBA_8888_GrPixelConfig; in random_render_target() 309 dummyDesc.fConfig = kSkia8888_GrPixelConfig; in ProgramUnitTest() 315 dummyDesc.fConfig = kAlpha_8_GrPixelConfig; in ProgramUnitTest() 374 rtDesc.fConfig = kRGBA_8888_GrPixelConfig; in ProgramUnitTest()
|
/external/skia/src/gpu/gl/command_buffer/ |
D | SkCommandBufferGLContext.cpp | 218 if (!gfChooseConfig(fDisplay, configAttribs, static_cast<EGLConfig*>(&fConfig), 1, in initializeGLContext() 227 static_cast<EGLConfig>(fConfig), in initializeGLContext() 232 static_cast<EGLConfig>(fConfig), in initializeGLContext() 245 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), nullptr, contextAttribs); in initializeGLContext() 345 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_STENCIL_SIZE, &result); in getStencilBits() 351 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &result); in getSampleCount()
|
/external/skia/src/gpu/vk/ |
D | GrVkRenderTarget.h | 111 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in onGpuMemorySize() 112 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in onGpuMemorySize() 113 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize()
|
D | GrVkGpu.cpp | 275 if (GrPixelConfigIsCompressed(vkTex->desc().fConfig)) { in onWritePixels() 277 SkASSERT(config == vkTex->desc().fConfig); in onWritePixels() 471 if (!GrPixelConfigToVkFormat(desc.fConfig, &pixelFormat)) { in onCreateTexture() 475 if (!fVkCaps->isConfigTexturable(desc.fConfig)) { in onCreateTexture() 481 if (fVkCaps->isConfigTexurableLinearly(desc.fConfig) && in onCreateTexture() 482 (!renderTarget || fVkCaps->isConfigRenderableLinearly(desc.fConfig, false))) { in onCreateTexture() 532 if (!this->uploadTexData(tex, 0, 0, desc.fWidth, desc.fHeight, desc.fConfig, srcData, in onCreateTexture() 556 if (!GrPixelConfigToVkFormat(desc.fConfig, &format)) { in onWrapBackendTexture() 587 surfDesc.fConfig = desc.fConfig; in onWrapBackendTexture() 627 desc.fConfig = wrapDesc.fConfig; in onWrapBackendRenderTarget()
|
/external/skia/src/gpu/gl/ |
D | GrGLGpu.cpp | 598 surfDesc.fConfig = desc.fConfig; in onWrapBackendTexture() 645 desc.fConfig = wrapDesc.fConfig; in onWrapBackendRenderTarget() 699 surfDesc.fConfig = desc.fConfig; in onWrapBackendTextureAsRenderTarget() 752 tempDrawInfo->fTempSurfaceDesc.fConfig = srcConfig; in onGetWritePixelsInfo() 763 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo() 769 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo() 777 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo() 824 if (GrPixelConfigIsCompressed(glTex->desc().fConfig)) { in onWritePixels() 826 SkASSERT(config == glTex->desc().fConfig); in onWritePixels() 853 if (GrPixelConfigIsCompressed(glTex->desc().fConfig)) { in onTransferPixels() [all …]
|
D | GrGLRenderTarget.cpp | 180 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in totalBytesPerSample() 181 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in totalBytesPerSample() 182 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in totalBytesPerSample()
|
/external/skia/include/gpu/ |
D | GrTypes.h | 489 , fConfig(kUnknown_GrPixelConfig) in GrSurfaceDesc() 502 GrPixelConfig fConfig; member 583 GrPixelConfig fConfig; //<! color format member 612 GrPixelConfig fConfig; //<! color format member
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 217 yDesc.fConfig = kConfig; in NewFromYUVTexturesCopy() 225 uDesc.fConfig = kConfig; in NewFromYUVTexturesCopy() 233 vDesc.fConfig = kConfig; in NewFromYUVTexturesCopy() 256 dstDesc.fConfig = kRGBA_8888_GrPixelConfig; in NewFromYUVTexturesCopy()
|