Home
last modified time | relevance | path

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

1234

/external/skia/src/effects/
DSkHighContrastFilter.cpp28 fConfig = config; in SkHighContrast_Filter()
30 fConfig.fContrast = SkScalarPin(fConfig.fContrast, in SkHighContrast_Filter()
54 SkHighContrastConfig fConfig; member in SkHighContrast_Filter
81 if (fConfig.fGrayscale) { in onAppendStages()
92 if (fConfig.fInvertStyle == InvertStyle::kInvertBrightness) { in onAppendStages()
97 } else if (fConfig.fInvertStyle == InvertStyle::kInvertLightness) { in onAppendStages()
106 if (fConfig.fContrast != 0.0) { in onAppendStages()
108 float c = fConfig.fContrast; in onAppendStages()
136 buffer.writeBool(fConfig.fGrayscale); in flatten()
137 buffer.writeInt(static_cast<int>(fConfig.fInvertStyle)); in flatten()
[all …]
/external/skia/src/gpu/
DGrBackendSurface.cpp21 , fConfig(GrVkFormatToPixelConfig(vkInfo.fFormat)) in GrBackendTexture()
32 , fConfig(config) in GrBackendTexture()
42 , fConfig(config) in GrBackendTexture()
49 , fConfig(desc.fConfig) in GrBackendTexture()
59 fConfig = GrVkFormatToPixelConfig(vkInfo->fFormat); in GrBackendTexture()
68 fConfig = kUnknown_GrPixelConfig; in GrBackendTexture()
108 , fConfig(GrVkFormatToPixelConfig(vkInfo.fFormat)) in GrBackendRenderTarget()
123 , fConfig(config) in GrBackendRenderTarget()
133 , fConfig(desc.fConfig) in GrBackendRenderTarget()
142 fConfig = GrVkFormatToPixelConfig(vkInfo->fFormat); in GrBackendRenderTarget()
[all …]
DGrSurfaceProxy.cpp25 , fConfig(fTarget->config()) in GrSurfaceProxy()
48 desc.fConfig = fConfig; in createSurfaceImpl()
162 if (!caps->isConfigTexturable(desc.fConfig)) { in MakeDeferred()
167 if (willBeRT && !caps->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in MakeDeferred()
188 copyDesc.fSampleCnt = caps->getSampleCount(desc.fSampleCnt, desc.fConfig); in MakeDeferred()
275 dstDesc.fConfig = src->config(); in Copy()
DGrSurface.cpp32 SkASSERT(kUnknown_GrPixelConfig != desc.fConfig); in WorstCaseSize()
33 size_t colorBytes = (size_t) width * height * GrBytesPerPixel(desc.fConfig); in WorstCaseSize()
42 size = (size_t) width * height * GrBytesPerPixel(desc.fConfig); in WorstCaseSize()
DGrGpu.cpp95 if (!caps.isConfigTexturable(desc.fConfig)) { in check_texture_creation_params()
99 if (GrPixelConfigIsSint(desc.fConfig) && mipLevelCount > 1) { in check_texture_creation_params()
104 if (*isRT && !caps.isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in check_texture_creation_params()
146 desc.fSampleCnt = caps->getSampleCount(desc.fSampleCnt, desc.fConfig); in createTexture()
287 !this->caps()->isConfigRenderable(tempDrawInfo->fTempSurfaceDesc.fConfig, false)) { in getReadPixelsInfo()
312 !this->caps()->isConfigTexturable(tempDrawInfo->fTempSurfaceDesc.fConfig)) { in getWritePixelsInfo()
DGrYUVProvider.cpp101 yuvDesc.fConfig = kAlpha_8_GrPixelConfig; in refAsTextureProxy()
129 desc.fConfig, nullptr, in refAsTextureProxy()
149 if (GrPixelConfigIsSRGB(desc.fConfig)) { in refAsTextureProxy()
DGrOpFlushState.cpp66 desc.fConfig = surface->config(); in doUpload()
75 if (!fGpu->writePixels(temp.get(), 0, 0, width, height, desc.fConfig, buffer, rowBytes)) { in doUpload()
DGrResourceProvider.cpp58 if (!caps.isConfigTexturable(desc.fConfig)) { in validate_desc()
62 if (!caps.isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) { in validate_desc()
70 if (levelCount > 1 && (GrPixelConfigIsSint(desc.fConfig) || !caps.mipMapSupport())) { in validate_desc()
141 if (make_info(desc.fWidth, desc.fHeight, desc.fConfig, &srcInfo)) { in createTextureProxy()
/external/skia/bench/
DResultsWriter.h86 , fConfig(nullptr) {} in NanoJSONResultsWriter()
107 fConfig = &(*fBench)[name]; in config()
110 (*fConfig)["options"][name] = value; in configOption()
117 SkASSERT(fConfig); in metric()
118 (*fConfig)[name] = ms; in metric()
121 SkASSERT(fConfig); in metrics()
128 (*fConfig)[name] = std::move(value); in metrics()
149 Json::Value* fConfig; variable
/external/skia/tests/
DGrSurfaceTest.cpp27 desc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
117 desc.fConfig = config; in DEF_GPUTEST_FOR_ALL_CONTEXTS()
120 … REPORTER_ASSERT(reporter, SkToBool(tex.get()) == caps->isConfigTexturable(desc.fConfig)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
122 size_t rowBytes = desc.fWidth * GrBytesPerPixel(desc.fConfig); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
132 (caps->isConfigTexturable(desc.fConfig) && in DEF_GPUTEST_FOR_ALL_CONTEXTS()
134 !GrPixelConfigIsSint(desc.fConfig))); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
158 desc.fConfig = static_cast<GrPixelConfig>(c); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
159 if (!context_info.grContext()->caps()->isConfigTexturable(desc.fConfig)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
164 if (rt && !context->caps()->isConfigRenderable(desc.fConfig, false)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
195 uint32_t cmp = GrPixelConfigIsOpaque(desc.fConfig) ? 0xFF000000 : 0; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DImageStorageTest.cpp108 GrPixelConfig fConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() member
126 if (!context->caps()->canConfigBeImageStorage(test.fConfig)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
129 desc.fConfig = test.fConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DSRGBReadWritePixelsTest.cpp174 desc.fConfig = kSRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
175 if (context->caps()->isConfigRenderable(desc.fConfig, false) && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 context->caps()->isConfigTexturable(desc.fConfig)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
217 desc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProxyConversionTest.cpp27 desc.fConfig, fboInfo); in make_wrapped_FBO0()
63 desc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
127 desc.fConfig = kRGBA_8888_GrPixelConfig; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DReadWriteAlphaTest.cpp53 desc.fConfig = kAlpha_8_GrPixelConfig; // it is a single channel texture in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
156 desc.fConfig = config; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
172 if (!rt && kRGBA_8888_GrPixelConfig == desc.fConfig) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp53 desc.fConfig = config; in runFPTest()
69 desc.fConfig, nullptr, in runFPTest()
DTestUtils.cpp73 copyDstDesc.fConfig = kRGBA_8888_GrPixelConfig; in test_copy_from_surface()
105 copySrcDesc.fConfig = kRGBA_8888_GrPixelConfig; in test_copy_to_surface()
/external/skia/include/gpu/
DGrBackendSurface.h22 GrBackendTexture() : fConfig(kUnknown_GrPixelConfig) {} in GrBackendTexture()
42 GrPixelConfig config() const { return fConfig; } in config()
60 bool isValid() const { return fConfig != kUnknown_GrPixelConfig; } in isValid()
71 GrPixelConfig fConfig; variable
104 GrPixelConfig config() const { return fConfig; } in config()
129 GrPixelConfig fConfig; variable
DGrSurface.h49 GrPixelConfig config() const { return fConfig; } in config()
82 , fConfig(desc.fConfig) in GrSurface()
93 GrPixelConfig fConfig;
DGrTypes.h598 , fConfig(kUnknown_GrPixelConfig) in GrSurfaceDesc()
612 GrPixelConfig fConfig; member
688 GrPixelConfig fConfig; //<! color format member
718 GrPixelConfig fConfig; //<! color format member
/external/skia/src/gpu/gl/
DGrGLTexture.cpp54 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), in GrGLTexture()
55 highest_filter_mode(idDesc, desc.fConfig), false) { in GrGLTexture()
64 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), in GrGLTexture()
65 highest_filter_mode(idDesc, desc.fConfig), in GrGLTexture()
73 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), in GrGLTexture()
74 highest_filter_mode(idDesc, desc.fConfig), false) { in GrGLTexture()
82 , INHERITED(gpu, desc, sampler_type(idDesc, desc.fConfig, gpu), in GrGLTexture()
83 highest_filter_mode(idDesc, desc.fConfig), in GrGLTexture()
DGrGLGpu.cpp574 surfDesc.fConfig = backendTex.config(); in onWrapBackendTexture()
615 desc.fConfig = backendRT.config(); in onWrapBackendRenderTarget()
649 surfDesc.fConfig = tex.config(); in onWrapBackendTextureAsRenderTarget()
714 tempDrawInfo->fTempSurfaceDesc.fConfig = srcConfig; in onGetWritePixelsInfo()
725 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo()
731 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo()
739 tempDrawInfo->fTempSurfaceDesc.fConfig = dstSurface->config(); in onGetWritePixelsInfo()
1274 if (!this->glCaps().getRenderbufferFormat(desc.fConfig, &colorRenderbufferFormat)) { in createRenderTargetObjects()
1298 if (!this->glCaps().isConfigVerifiedColorAttachment(desc.fConfig)) { in createRenderTargetObjects()
1303 fGLContext->caps()->markConfigAsValidColorAttachment(desc.fConfig); in createRenderTargetObjects()
[all …]
/external/skia/tools/gpu/gl/command_buffer/
DGLTestContext_command_buffer.cpp176 if (!gfChooseConfig(fDisplay, configAttribs, static_cast<EGLConfig *>(&fConfig), 1, in CommandBufferGLTestContext()
184 static_cast<EGLConfig>(fConfig), in CommandBufferGLTestContext()
199 fContext = gfCreateContext(fDisplay, static_cast<EGLConfig>(fConfig), eglShareContext, in CommandBufferGLTestContext()
296 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_STENCIL_SIZE, &result); in getStencilBits()
302 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &result); in getSampleCount()
/external/skia/include/private/
DGrSurfaceProxy.h211 GrPixelConfig config() const { return fConfig; } in config()
342 : fConfig(desc.fConfig) in GrSurfaceProxy()
384 GrPixelConfig fConfig; variable
/external/skia/src/gpu/vk/
DGrVkTexture.cpp36 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig), in GrVkTexture()
51 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig), in GrVkTexture()
66 , INHERITED(gpu, desc, kTexture2DSampler_GrSLType, highest_filter_mode(desc.fConfig), in GrVkTexture()
/external/skia/gm/
Dhighcontrastfilter.cpp93 SkHighContrastConfig fConfig; in HighContrastFilterGM() local
94 fFilter = SkHighContrastFilter::Make(fConfig); in HighContrastFilterGM()

1234