/external/skqp/src/gpu/vk/ |
D | GrVkCaps.cpp | 115 bool GrVkCaps::canCopyImage(GrPixelConfig dstConfig, int dstSampleCnt, GrSurfaceOrigin dstOrigin, in canCopyImage() argument 118 if ((dstSampleCnt > 1 || srcSampleCnt > 1) && dstSampleCnt != srcSampleCnt) { in canCopyImage() 137 bool GrVkCaps::canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt, bool dstIsLinear, in canCopyAsBlit() argument 153 if (dstSampleCnt > 1 || srcSampleCnt > 1) { in canCopyAsBlit() 160 bool GrVkCaps::canCopyAsResolve(GrPixelConfig dstConfig, int dstSampleCnt, in canCopyAsResolve() argument 169 if (dstSampleCnt > 1) { in canCopyAsResolve() 217 int dstSampleCnt = 0; in onCanCopySurface() local 226 dstSampleCnt = rtProxy->numColorSamples(); in onCanCopySurface() 237 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); in onCanCopySurface() 240 return this->canCopyImage(dstConfig, dstSampleCnt, dstOrigin, in onCanCopySurface() [all …]
|
D | GrVkCaps.h | 133 bool canCopyImage(GrPixelConfig dstConfig, int dstSampleCnt, GrSurfaceOrigin dstOrigin, 136 bool canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt, bool dstIsLinear, 139 bool canCopyAsResolve(GrPixelConfig dstConfig, int dstSampleCnt, GrSurfaceOrigin dstOrigin,
|
D | GrVkGpu.cpp | 1821 int dstSampleCnt = get_surface_sample_cnt(dst); in copySurfaceAsCopyImage() local 1823 SkASSERT(this->vkCaps().canCopyImage(dst->config(), dstSampleCnt, dstOrigin, in copySurfaceAsCopyImage() 1881 int dstSampleCnt = get_surface_sample_cnt(dst); in copySurfaceAsBlit() local 1883 SkASSERT(this->vkCaps().canCopyAsBlit(dst->config(), dstSampleCnt, dstImage->isLinearTiled(), in copySurfaceAsBlit() 1983 int dstSampleCnt = get_surface_sample_cnt(dst); in onCopySurface() local 1986 if (this->vkCaps().canCopyAsResolve(dstConfig, dstSampleCnt, dstOrigin, in onCopySurface() 2023 if (this->vkCaps().canCopyImage(dstConfig, dstSampleCnt, dstOrigin, in onCopySurface() 2030 if (this->vkCaps().canCopyAsBlit(dstConfig, dstSampleCnt, dstImage->isLinearTiled(), in onCopySurface()
|
/external/skia/src/gpu/d3d/ |
D | GrD3DCaps.cpp | 63 bool GrD3DCaps::canCopyTexture(DXGI_FORMAT dstFormat, int dstSampleCnt, in canCopyTexture() argument 65 if ((dstSampleCnt > 1 || srcSampleCnt > 1) && dstSampleCnt != srcSampleCnt) { in canCopyTexture() 74 bool GrD3DCaps::canCopyAsResolve(DXGI_FORMAT dstFormat, int dstSampleCnt, in canCopyAsResolve() argument 82 if (dstSampleCnt > 1) { in canCopyAsResolve() 102 int dstSampleCnt = 0; in onCanCopySurface() local 105 dstSampleCnt = rtProxy->numSamples(); in onCanCopySurface() 110 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); in onCanCopySurface() 117 return this->canCopyTexture(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt) || in onCanCopySurface() 118 this->canCopyAsResolve(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt); in onCanCopySurface()
|
D | GrD3DCaps.h | 81 bool canCopyTexture(DXGI_FORMAT dstFormat, int dstSampleCnt, 84 bool canCopyAsResolve(DXGI_FORMAT dstFormat, int dstSampleCnt,
|
D | GrD3DGpu.cpp | 427 int dstSampleCnt = get_surface_sample_cnt(dst); in onCopySurface() local 452 if (this->d3dCaps().canCopyAsResolve(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt)) { in onCopySurface() 457 if (this->d3dCaps().canCopyTexture(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt)) { in onCopySurface() 470 int dstSampleCnt = get_surface_sample_cnt(dst); in copySurfaceAsCopyTexture() local 475 SkASSERT(this->d3dCaps().canCopyTexture(dstFormat, dstSampleCnt, srcFormat, srcSampleCnt)); in copySurfaceAsCopyTexture()
|
/external/skia/src/gpu/vk/ |
D | GrVkCaps.h | 206 int dstSampleCnt, 213 int dstSampleCnt, 222 int dstSampleCnt,
|
D | GrVkCaps.cpp | 135 bool GrVkCaps::canCopyImage(VkFormat dstFormat, int dstSampleCnt, bool dstHasYcbcr, in canCopyImage() argument 137 if ((dstSampleCnt > 1 || srcSampleCnt > 1) && dstSampleCnt != srcSampleCnt) { in canCopyImage() 150 bool GrVkCaps::canCopyAsBlit(VkFormat dstFormat, int dstSampleCnt, bool dstIsLinear, in canCopyAsBlit() argument 162 if (dstSampleCnt > 1 || srcSampleCnt > 1) { in canCopyAsBlit() 173 bool GrVkCaps::canCopyAsResolve(VkFormat dstFormat, int dstSampleCnt, bool dstHasYcbcr, in canCopyAsResolve() argument 181 if (dstSampleCnt > 1) { in canCopyAsResolve() 210 int dstSampleCnt = 0; in onCanCopySurface() local 221 dstSampleCnt = 1; in onCanCopySurface() 223 dstSampleCnt = rtProxy->numSamples(); in onCanCopySurface() 240 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); in onCanCopySurface() [all …]
|
D | GrVkGpu.cpp | 2123 int dstSampleCnt = dstImage->vkImageInfo().fSampleCount; in copySurfaceAsCopyImage() local 2130 SkASSERT(this->vkCaps().canCopyImage(dstFormat, dstSampleCnt, dstHasYcbcr, in copySurfaceAsCopyImage() 2184 int dstSampleCnt = dstImage->vkImageInfo().fSampleCount; in copySurfaceAsBlit() local 2191 SkASSERT(this->vkCaps().canCopyAsBlit(dstFormat, dstSampleCnt, dstImage->isLinearTiled(), in copySurfaceAsBlit() 2310 int dstSampleCnt = dstImage->vkImageInfo().fSampleCount; in onCopySurface() local 2316 if (this->vkCaps().canCopyAsResolve(dstFormat, dstSampleCnt, dstHasYcbcr, in onCopySurface() 2322 if (this->vkCaps().canCopyImage(dstFormat, dstSampleCnt, dstHasYcbcr, in onCopySurface() 2328 if (this->vkCaps().canCopyAsBlit(dstFormat, dstSampleCnt, dstImage->isLinearTiled(), in onCopySurface()
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlCaps.mm | 174 int dstSampleCnt = 0; 177 dstSampleCnt = rtProxy->numColorSamples(); 182 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); 185 return this->canCopyAsBlit(dst->config(), dstSampleCnt, dstOrigin,
|
D | GrMtlGpu.mm | 597 int dstSampleCnt = get_surface_sample_cnt(dst); 599 SkASSERT(this->mtlCaps().canCopyAsBlit(dst->config(), dstSampleCnt, dstOrigin, 648 int dstSampleCnt = get_surface_sample_cnt(dst); 650 SkASSERT(dstSampleCnt == 0); // dst shouldn't be a render target 651 SkASSERT(!this->mtlCaps().canCopyAsBlit(dst->config(), dstSampleCnt, dstOrigin, 718 int dstSampleCnt = get_surface_sample_cnt(dst); 721 if (dstSampleCnt > 1 || srcSampleCnt > 1) { 731 } else if (this->mtlCaps().canCopyAsBlit(dstConfig, dstSampleCnt, dstOrigin,
|
/external/skqp/src/gpu/gl/ |
D | GrGLCaps.cpp | 2155 bool GrGLCaps::canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt, in canCopyAsBlit() argument 2188 if (1 == dstSampleCnt) { in canCopyAsBlit() 2198 if (dstSampleCnt > 1) { in canCopyAsBlit() 2252 int dstSampleCnt = 0; in onCanCopySurface() local 2255 dstSampleCnt = rtProxy->numColorSamples(); in onCanCopySurface() 2260 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); in onCanCopySurface() 2282 if (this->canCopyAsBlit(dstConfig, dstSampleCnt, SkToBool(dstTex), in onCanCopySurface() 2294 this->canCopyAsBlit(dstConfig, dstSampleCnt, SkToBool(dstTex), in onCanCopySurface()
|
D | GrGLCaps.h | 404 bool canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt,
|
D | GrGLGpu.cpp | 3131 int dstSampleCnt = 0; in can_blit_framebuffer_for_copy_surface() local 3134 dstSampleCnt = rt->numColorSamples(); in can_blit_framebuffer_for_copy_surface() 3139 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTarget())); in can_blit_framebuffer_for_copy_surface() 3148 return caps.canCopyAsBlit(dst->config(), dstSampleCnt, SkToBool(dstTex), dstIsGLTexture2D, in can_blit_framebuffer_for_copy_surface()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlCaps.mm | 242 int dstSampleCnt = 1; 245 dstSampleCnt = rtProxy->numSamples(); 253 if (this->canCopyAsBlit(GrBackendFormatAsMTLPixelFormat(dst->backendFormat()), dstSampleCnt, 261 return this->canCopyAsResolve(dstFormat, dstSampleCnt,
|
/external/skia/src/gpu/gl/ |
D | GrGLCaps.h | 406 bool canCopyAsBlit(GrGLFormat dstFormat, int dstSampleCnt,
|
D | GrGLCaps.cpp | 3265 bool GrGLCaps::canCopyAsBlit(GrGLFormat dstFormat, int dstSampleCnt, in canCopyAsBlit() argument 3290 if (1 == dstSampleCnt) { in canCopyAsBlit() 3300 if (dstSampleCnt > 1) { in canCopyAsBlit() 3345 int dstSampleCnt = 0; in onCanCopySurface() local 3348 dstSampleCnt = rtProxy->numSamples(); in onCanCopySurface() 3353 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); in onCanCopySurface() 3376 this->canCopyAsBlit(dstFormat, dstSampleCnt, dstTexTypePtr, srcFormat, srcSampleCnt, in onCanCopySurface()
|
D | GrGLGpu.cpp | 2832 int dstSampleCnt = 0; in can_blit_framebuffer_for_copy_surface() local 2835 dstSampleCnt = rt->numSamples(); in can_blit_framebuffer_for_copy_surface() 2840 SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTarget())); in can_blit_framebuffer_for_copy_surface() 2862 return caps.canCopyAsBlit(dstFormat, dstSampleCnt, dstTexTypePtr, in can_blit_framebuffer_for_copy_surface()
|