Home
last modified time | relevance | path

Searched refs:fConfig (Results 1 – 25 of 90) sorted by relevance

1234

/external/skia/src/gpu/
DGrTexture.cpp36 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()
DGrGpu.cpp95 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 …]
DGrSurface.cpp28 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()
DGrTextureProvider.cpp39 !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()
DGrBatchAtlas.cpp30 , 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()
DGrSWMaskHelper.cpp235 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()
DGrTextureParamsAdjuster.cpp41 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()
DGrTextureToYUVPlanes.cpp73 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()
DGrBlurUtils.cpp81 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/
DResultsWriter.h82 , 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/
DGrGLSLTextureSampler.h22 , 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/
DReadWriteAlphaTest.cpp46 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()
DSRGBReadWritePixelsTest.cpp161 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()
DFloatingPointTextureTest.cpp45 desc.fConfig = config; in runFPTest()
54 fpTexture->readPixels(0, 0, DEV_W, DEV_H, desc.fConfig, readBuffer.begin(), 0); in runFPTest()
DGrSurfaceTest.cpp23 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_NULL_CONTEXT()
50 backendDesc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_NULL_CONTEXT()
DSpecialSurfaceTest.cpp85 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 desc.fConfig = kSkia8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DRectangleTextureTest.cpp57 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()
DGLProgramsTest.cpp159 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/
DSkCommandBufferGLContext.cpp218 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/
DGrVkRenderTarget.h111 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in onGpuMemorySize()
112 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in onGpuMemorySize()
113 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize()
DGrVkGpu.cpp275 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/
DGrGLGpu.cpp598 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 …]
DGrGLRenderTarget.cpp180 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/
DGrTypes.h489 , 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/
DSkImage_Gpu.cpp217 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()

1234