Home
last modified time | relevance | path

Searched refs:sampleCnt (Results 1 – 25 of 81) sorted by relevance

1234

/external/skqp/src/image/
DSkSurface_Gpu.cpp293 GrSurfaceOrigin origin, int sampleCnt, in MakeFromBackendTexture() argument
302 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
307 sampleCnt, in MakeFromBackendTexture()
323 int sampleCnt, SkColorType ct, sk_sp<SkColorSpace> cs, in validate_backend_texture() argument
337 if (!ctx->caps()->isConfigRenderable(*config, sampleCnt > 1)) { in validate_backend_texture()
341 if (ctx->caps()->getSampleCount(sampleCnt, *config) != sampleCnt) { in validate_backend_texture()
352 GrSurfaceOrigin origin, int sampleCnt, in MakeFromBackendTexture() argument
359 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
362 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture()
366 return MakeFromBackendTexture(context, texCopy, origin, sampleCnt, colorSpace, props); in MakeFromBackendTexture()
[all …]
/external/skia/src/image/
DSkSurface_Gpu.cpp322 GrSurfaceOrigin origin, int sampleCnt, in MakeFromBackendTexture() argument
331 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
336 sampleCnt, in MakeFromBackendTexture()
352 int sampleCnt, SkColorType ct, sk_sp<SkColorSpace> cs, in validate_backend_texture() argument
368 if (!ctx->caps()->getRenderTargetSampleCount(sampleCnt, *config)) { in validate_backend_texture()
379 GrSurfaceOrigin origin, int sampleCnt, in MakeFromBackendTexture() argument
386 sampleCnt = SkTMax(1, sampleCnt); in MakeFromBackendTexture()
389 sampleCnt, colorType, colorSpace, true)) { in MakeFromBackendTexture()
393 return MakeFromBackendTexture(context, texCopy, origin, sampleCnt, colorSpace, props); in MakeFromBackendTexture()
441 if (rt.sampleCnt() > 1) { in validate_backend_render_target()
[all …]
/external/skia/src/gpu/
DGrProxyProvider.cpp204 int sampleCnt, in createTextureProxy() argument
222 sampleCnt = this->caps()->getRenderTargetSampleCount(sampleCnt, config); in createTextureProxy()
223 if (!sampleCnt) { in createTextureProxy()
230 if (fCaps->usesMixedSamples() && sampleCnt > 1) { in createTextureProxy()
243 desc.fSampleCnt = sampleCnt; in createTextureProxy()
462 int sampleCnt) { in createWrappedTextureProxy() argument
467 sampleCnt = this->caps()->getRenderTargetSampleCount(sampleCnt, backendTex.config()); in createWrappedTextureProxy()
468 if (!sampleCnt) { in createWrappedTextureProxy()
478 desc.fSampleCnt = sampleCnt; in createWrappedTextureProxy()
482 if (fCaps->usesMixedSamples() && sampleCnt > 1) { in createWrappedTextureProxy()
[all …]
DGrTexture.cpp91 bool isRenderTarget, int sampleCnt, in ComputeScratchKey() argument
97 SkASSERT(sampleCnt > 0); in ComputeScratchKey()
98 SkASSERT(1 == sampleCnt || isRenderTarget); in ComputeScratchKey()
103 SkASSERT(sampleCnt < (1 << 8)); in ComputeScratchKey()
110 builder[2] = config | (static_cast<uint8_t>(mipMapped) << 5) | (sampleCnt << 6) | (flags << 14); in ComputeScratchKey()
DGrBackendSurface.cpp153 int sampleCnt, in GrBackendRenderTarget() argument
158 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
167 int sampleCnt, in GrBackendRenderTarget() argument
173 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
181 int sampleCnt, in GrBackendRenderTarget() argument
186 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
DGrStencilAttachment.h34 static void ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt,
38 GrStencilAttachment(GrGpu* gpu, int width, int height, int bits, int sampleCnt) in GrStencilAttachment() argument
43 , fSampleCnt(sampleCnt) in GrStencilAttachment()
DGrGpu.cpp134 int sampleCnt, GrWrapOwnership ownership) { in wrapRenderableBackendTexture() argument
136 if (sampleCnt < 1) { in wrapRenderableBackendTexture()
140 !this->caps()->getRenderTargetSampleCount(sampleCnt, backendTex.config())) { in wrapRenderableBackendTexture()
148 sk_sp<GrTexture> tex = this->onWrapRenderableBackendTexture(backendTex, sampleCnt, ownership); in wrapRenderableBackendTexture()
157 if (0 == this->caps()->getRenderTargetSampleCount(backendRT.sampleCnt(), backendRT.config())) { in wrapBackendRenderTarget()
165 int sampleCnt) { in wrapBackendTextureAsRenderTarget() argument
166 if (0 == this->caps()->getRenderTargetSampleCount(sampleCnt, tex.config())) { in wrapBackendTextureAsRenderTarget()
174 return this->onWrapBackendTextureAsRenderTarget(tex, sampleCnt); in wrapBackendTextureAsRenderTarget()
DGrStencilAttachment.cpp11 void GrStencilAttachment::ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt, in ComputeSharedStencilAttachmentKey() argument
17 builder[2] = sampleCnt; in ComputeSharedStencilAttachmentKey()
/external/skqp/tests/
DBlendTest.cpp87 GrContext* context, int sampleCnt, int width, int height, SkColorType colorType, in create_gpu_surface_backend_texture_as_render_target() argument
96 backingDesc.fSampleCnt = sampleCnt; in create_gpu_surface_backend_texture_as_render_target()
109 sampleCnt, colorType, nullptr, nullptr); in create_gpu_surface_backend_texture_as_render_target()
143 for (int sampleCnt : {1, 4}) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
146 testCases.push_back({rectAndPoints, clip, sampleCnt, origin}); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
154 int sampleCnt = testCase.fSampleCnt; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
163 context, sampleCnt, kWidth, kHeight, kColorType, kConfig, origin, &backingSurface); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
165 if (!surface && sampleCnt > 1) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/tests/
DBlendTest.cpp87 GrContext* context, int sampleCnt, int width, int height, SkColorType colorType, in create_gpu_surface_backend_texture_as_render_target() argument
96 backingDesc.fSampleCnt = sampleCnt; in create_gpu_surface_backend_texture_as_render_target()
109 sampleCnt, colorType, nullptr, nullptr); in create_gpu_surface_backend_texture_as_render_target()
143 for (int sampleCnt : {1, 4}) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
146 testCases.push_back({rectAndPoints, clip, sampleCnt, origin}); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
154 int sampleCnt = testCase.fSampleCnt; in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
163 context, sampleCnt, kWidth, kHeight, kColorType, kConfig, origin, &backingSurface); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
165 if (!surface && sampleCnt > 1) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skia/debugger/QT/
DSkGLWidget.cpp89 int sampleCnt; in getBackendRenderTarget() local
91 GR_GL_GetIntegerv(fCurIntf.get(), GR_GL_SAMPLES, &sampleCnt); in getBackendRenderTarget()
92 sampleCnt = SkTMax(sampleCnt, 1); in getBackendRenderTarget()
98 sampleCnt, in getBackendRenderTarget()
/external/skqp/debugger/QT/
DSkGLWidget.cpp89 int sampleCnt; in getBackendRenderTarget() local
91 GR_GL_GetIntegerv(fCurIntf.get(), GR_GL_SAMPLES, &sampleCnt); in getBackendRenderTarget()
92 sampleCnt = SkTMax(sampleCnt, 1); in getBackendRenderTarget()
98 sampleCnt, in getBackendRenderTarget()
/external/skqp/src/gpu/
DGrBackendSurface.cpp104 int sampleCnt, in GrBackendRenderTarget() argument
109 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
118 int sampleCnt, in GrBackendRenderTarget() argument
124 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
132 int sampleCnt, in GrBackendRenderTarget() argument
137 , fSampleCnt(SkTMax(1, sampleCnt)) in GrBackendRenderTarget()
DGrTexture.cpp91 bool isRenderTarget, int sampleCnt, in ComputeScratchKey() argument
97 SkASSERT(sampleCnt > 0); in ComputeScratchKey()
98 SkASSERT(1 == sampleCnt || isRenderTarget); in ComputeScratchKey()
103 SkASSERT(sampleCnt < (1 << 8)); in ComputeScratchKey()
110 builder[2] = config | (static_cast<uint8_t>(mipMapped) << 5) | (sampleCnt << 6) | (flags << 14); in ComputeScratchKey()
DGrStencilAttachment.h34 static void ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt,
38 GrStencilAttachment(GrGpu* gpu, int width, int height, int bits, int sampleCnt) in GrStencilAttachment() argument
43 , fSampleCnt(sampleCnt) in GrStencilAttachment()
DGrGpu.cpp189 int sampleCnt, GrWrapOwnership ownership) { in wrapRenderableBackendTexture() argument
191 if (sampleCnt < 1) { in wrapRenderableBackendTexture()
195 !this->caps()->isConfigRenderable(backendTex.config(), sampleCnt > 1)) { in wrapRenderableBackendTexture()
203 sk_sp<GrTexture> tex = this->onWrapRenderableBackendTexture(backendTex, sampleCnt, ownership); in wrapRenderableBackendTexture()
212 if (!this->caps()->isConfigRenderable(backendRT.config(), backendRT.sampleCnt() > 1)) { in wrapBackendRenderTarget()
220 int sampleCnt) { in wrapBackendTextureAsRenderTarget() argument
222 if (!this->caps()->isConfigRenderable(tex.config(), sampleCnt > 1)) { in wrapBackendTextureAsRenderTarget()
229 return this->onWrapBackendTextureAsRenderTarget(tex, sampleCnt); in wrapBackendTextureAsRenderTarget()
DGrStencilAttachment.cpp11 void GrStencilAttachment::ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt, in ComputeSharedStencilAttachmentKey() argument
17 builder[2] = sampleCnt; in ComputeSharedStencilAttachmentKey()
DGrContext.cpp869 int sampleCnt, in makeBackendTextureRenderTargetContext() argument
873 SkASSERT(sampleCnt > 0); in makeBackendTextureRenderTargetContext()
876 sampleCnt)); in makeBackendTextureRenderTargetContext()
906 int sampleCnt, in makeBackendTextureAsRenderTargetRenderTargetContext() argument
910 SkASSERT(sampleCnt > 0); in makeBackendTextureAsRenderTargetRenderTargetContext()
912 sampleCnt)); in makeBackendTextureAsRenderTargetRenderTargetContext()
956 int sampleCnt, in makeDeferredRenderTargetContextWithFallback() argument
961 SkASSERT(sampleCnt > 0); in makeDeferredRenderTargetContextWithFallback()
962 if (!this->caps()->isConfigRenderable(config, sampleCnt > 1)) { in makeDeferredRenderTargetContextWithFallback()
967 sampleCnt, mipMapped, origin, surfaceProps, in makeDeferredRenderTargetContextWithFallback()
[all …]
DGrProxyProvider.h86 int sampleCnt,
134 int sampleCnt);
147 int sampleCnt);
/external/skqp/include/gpu/
DGrBackendSurface.h119 int sampleCnt,
127 int sampleCnt,
134 int sampleCnt,
141 int sampleCnt() const { return fSampleCnt; } in sampleCnt() function
/external/skia/include/gpu/
DGrBackendSurface.h184 int sampleCnt,
192 int sampleCnt,
199 int sampleCnt,
206 int sampleCnt() const { return fSampleCnt; } in sampleCnt() function
/external/skia/include/core/
DSkSurface.h183 GrSurfaceOrigin origin, int sampleCnt,
215 GrSurfaceOrigin origin, int sampleCnt,
297 int sampleCnt,
325 int sampleCnt,
/external/skqp/include/core/
DSkSurface.h98 GrSurfaceOrigin origin, int sampleCnt,
116 GrSurfaceOrigin origin, int sampleCnt,
151 int sampleCnt,
171 int sampleCnt,
/external/skia/src/gpu/mock/
DGrMockStencilAttachment.h16 GrMockStencilAttachment(GrMockGpu* gpu, int width, int height, int bits, int sampleCnt) in GrMockStencilAttachment() argument
17 : INHERITED(gpu, width, height, bits, sampleCnt) { in GrMockStencilAttachment()
/external/skqp/src/gpu/mock/
DGrMockStencilAttachment.h16 GrMockStencilAttachment(GrMockGpu* gpu, int width, int height, int bits, int sampleCnt) in GrMockStencilAttachment() argument
17 : INHERITED(gpu, width, height, bits, sampleCnt) { in GrMockStencilAttachment()

1234