/third_party/skia/src/gpu/ |
D | SurfaceContext.cpp | 87 if (!alpha_types_compatible(this->colorInfo().alphaType(), dst.alphaType())) { in readPixels() 107 SkColorSpaceXformSteps{this->colorInfo(), dst.info()}.flags; in readPixels() 121 GrColorType srcColorType = this->colorInfo().colorType(); in readPixels() 146 : this->colorInfo().colorType(); in readPixels() 148 : this->colorInfo().alphaType(); in readPixels() 151 this->colorInfo().refColorSpace(), in readPixels() 161 this->readSurfaceView(), this->colorInfo().alphaType())); in readPixels() 169 fp = GrTextureEffect::Make(this->readSurfaceView(), this->colorInfo().alphaType()); in readPixels() 181 this->colorInfo().colorType()); in readPixels() 209 tempCtx = dContext->priv().makeSC(std::move(view), this->colorInfo()); in readPixels() [all …]
|
D | SurfaceFillContext.h | 108 const GrColorInfo& colorInfo) in SurfaceFillContext() argument 109 : SurfaceContext(rContext, std::move(readView), colorInfo) in SurfaceFillContext() 146 this->colorInfo().alphaType() == kUnknown_SkAlphaType) { in adjustColorAlphaType() 149 return (AlphaType == this->colorInfo().alphaType()) ? color.array() : ConvertColor(color); in adjustColorAlphaType()
|
D | GrImageInfo.h | 20 : fColorInfo(info.colorInfo()), fDimensions(info.dimensions()) {} in GrImageInfo() 40 return {this->colorInfo().makeColorType(ct), this->dimensions()}; in makeColorType() 59 const GrColorInfo& colorInfo() const { return fColorInfo; } in colorInfo() function
|
D | BaseDevice.cpp | 54 SkColorType colorType = GrColorTypeToSkColorType(sc->colorInfo().colorType()); in MakeInfo() 58 sc->colorInfo().refColorSpace()); in MakeInfo()
|
D | GrPixmap.h | 18 const GrColorInfo& colorInfo() const { return fInfo.colorInfo(); } in colorInfo() function
|
/third_party/skia/include/core/ |
D | SkImageInfo.h | 328 static SkImageInfo Make(SkISize dimensions, const SkColorInfo& colorInfo) { in Make() 329 return SkImageInfo(dimensions, colorInfo); in Make() 331 static SkImageInfo Make(SkISize dimensions, SkColorInfo&& colorInfo) { in Make() 332 return SkImageInfo(dimensions, std::move(colorInfo)); in Make() 493 const SkColorInfo& colorInfo() const { return fColorInfo; } in colorInfo() function 721 SkImageInfo(SkISize dimensions, const SkColorInfo& colorInfo) in SkImageInfo() 722 : fColorInfo(colorInfo), fDimensions(dimensions) {} in SkImageInfo() 724 SkImageInfo(SkISize dimensions, SkColorInfo&& colorInfo) in SkImageInfo() 725 : fColorInfo(std::move(colorInfo)), fDimensions(dimensions) {} in SkImageInfo()
|
/third_party/skia/src/gpu/v1/ |
D | Device.cpp | 88 const GrColorInfo& colorInfo, in init_vertices_paint() argument 98 colorInfo, in init_vertices_paint() 104 return SkPaintToGrPaint(rContext, colorInfo, skPaint, matrixProvider, grPaint); in init_vertices_paint() 141 SkColorType ct = GrColorTypeToSkColorType(sdc->colorInfo().colorType()); in Make() 326 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, in drawPaint() 350 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, in drawPoints() 396 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, in drawPoints() 427 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, in drawRect() 445 SkPMColor4f dstColor = SkColor4fPrepForDst(color, fSurfaceDrawContext->colorInfo()).premul(); in drawEdgeAAQuad() 493 if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, in drawRRect() [all …]
|
D | Device_drawTexture.cpp | 356 const GrColorInfo& dstInfo = sdc->colorInfo(); in draw_texture() 357 auto textureXform = GrColorSpaceXform::Make(srcColorInfo, sdc->colorInfo()); in draw_texture() 438 GrColorInfo info(image.imageInfo().colorInfo()); in draw_image() 511 image.imageInfo().colorInfo(), in draw_image() 512 sdc->colorInfo()); in draw_image() 516 GrFPArgs(rContext, matrixProvider, &sdc->colorInfo())); in draw_image() 530 rContext, sdc->colorInfo(), paint, matrixProvider, std::move(fp), &grPaint)) { in draw_image() 723 SkColorInfo colorInfo(special->colorType(), in drawSpecial() local 731 std::move(colorInfo)); in drawSpecial() 893 auto textureXform = GrColorSpaceXform::Make(set[base].fImage->imageInfo().colorInfo(), in drawEdgeAAImageSet() [all …]
|
D | SurfaceFillContext_v1.cpp | 43 const GrColorInfo& colorInfo, in SurfaceFillContext() argument 48 std::move(colorInfo)) in SurfaceFillContext() 74 GrClampType clampType = GrColorTypeClampType(this->colorInfo().colorType()); in addDrawOp()
|
/third_party/skia/experimental/graphite/src/ |
D | CommandBuffer.cpp | 30 auto& colorInfo = renderPassDesc.fColorAttachment; in beginRenderPass() local 31 if (colorInfo.fTextureProxy) { in beginRenderPass() 32 this->trackResource(colorInfo.fTextureProxy->refTexture()); in beginRenderPass() 34 if (colorInfo.fStoreOp == StoreOp::kStore) { in beginRenderPass()
|
/third_party/skia/gm/verifiers/ |
D | gmverifier.cpp | 62 SkBitmap GMVerifier::RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo) { in RenderGoldBmp() argument 68 goldBmp.allocPixels(SkImageInfo::Make(size, colorInfo)); in RenderGoldBmp() 110 VerifierResult VerifierList::verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual) { in verifyAll() argument 114 goldBmp = GMVerifier::RenderGoldBmp(fGM, colorInfo); in verifyAll()
|
D | gmverifier.h | 100 static SkBitmap RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo); 175 VerifierResult verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual);
|
/third_party/skia/tests/ |
D | EGLImageTest.cpp | 154 GrColorInfo colorInfo(GrColorType::kRGBA_8888, kPremul_SkAlphaType, nullptr); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local 166 colorInfo.colorType()); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 168 auto surfaceContext = context0->priv().makeSC(std::move(view), colorInfo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 187 auto temp = context0->priv().makeSFCFromBackendTexture(colorInfo, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 209 colorInfo.colorType(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | SwizzlerTest.cpp | 82 const SkImageInfo colorInfo = SkImageInfo::MakeN32(width, height, kUnknown_SkAlphaType); in DEF_TEST() local 83 const SkImageInfo grayInfo = colorInfo.makeColorType(kGray_8_SkColorType); in DEF_TEST() 84 const SkImageInfo color565Info = colorInfo.makeColorType(kRGB_565_SkColorType); in DEF_TEST() 104 check_fill(r, colorInfo, startRow, endRow, colorRowBytes, offset); in DEF_TEST()
|
/third_party/skia/src/core/ |
D | SkBlenderBase.h | 37 const SkColorInfo& colorInfo, skvm::Uniforms* uniforms, in program() argument 39 return this->onProgram(p, src, dst, colorInfo, uniforms, alloc); in program() 60 const SkColorInfo& colorInfo, skvm::Uniforms* uniforms,
|
D | SkRuntimeEffect.cpp | 845 const GrColorInfo& colorInfo) const override { in asFragmentProcessor() 847 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in asFragmentProcessor() 850 GrFPArgs childArgs(context, SkSimpleMatrixProvider(SkMatrix::I()), &colorInfo); in asFragmentProcessor() 866 const SkColorInfo& colorInfo, in onProgram() argument 869 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in onProgram() 876 colorInfo, uniforms, alloc); in onProgram() 882 return as_CFB(colorFilter)->program(p, color, colorInfo, uniforms, alloc); in onProgram() 888 return as_BB(blender)->program(p, src, dst, colorInfo, uniforms, alloc); in onProgram() 1024 const SkColorInfo& colorInfo, in onProgram() argument 1027 get_xformed_uniforms(fEffect.get(), fUniforms, colorInfo.colorSpace()); in onProgram() [all …]
|
/third_party/skia/src/image/ |
D | SkImage_GpuBase.cpp | 115 GrColorInfo colorInfo(ct, this->alphaType(), this->refColorSpace()); in getROPixels() local 116 auto sContext = dContext->priv().makeSC(std::move(view), std::move(colorInfo)); in getROPixels() 157 this->imageInfo().colorInfo()); in onMakeSubset() 175 GrColorInfo colorInfo(ct, this->alphaType(), this->refColorSpace()); in onReadPixels() local 176 auto sContext = dContext->priv().makeSC(std::move(view), colorInfo); in onReadPixels()
|
D | SkImage_Gpu.cpp | 190 SkColorInfo colorInfo) { in MakeWithVolatileSrc() argument 216 std::move(colorInfo))); in MakeWithVolatileSrc() 222 std::move(colorInfo)); in MakeWithVolatileSrc() 303 auto ct = GrColorTypeToSkColorType(sfc->colorInfo().colorType()); in onMakeColorTypeAndColorSpace() 310 this->imageInfo().colorInfo(), in onMakeColorTypeAndColorSpace() 327 this->imageInfo().colorInfo().makeColorSpace(std::move(newCS))); in onReinterpretColorSpace() 342 auto ctx = dContext->priv().makeSC(this->makeView(dContext), this->imageInfo().colorInfo()); in onAsyncRescaleAndReadPixels() 365 auto ctx = dContext->priv().makeSC(this->makeView(dContext), this->imageInfo().colorInfo()); in onAsyncRescaleAndReadPixelsYUV420() 565 SkColorInfo colorInfo(GrColorTypeToSkColorType(ct), this->alphaType(), this->refColorSpace()); in makeTextureImage() local 569 std::move(colorInfo)); in makeTextureImage() [all …]
|
/third_party/skia/src/gpu/vk/ |
D | GrVkOpsRenderPass.cpp | 223 bool GrVkOpsRenderPass::init(const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, in init() argument 228 get_vk_load_store_ops(colorInfo.fLoadOp, colorInfo.fStoreOp, &loadOp, &storeOp); in init() 259 vkClearColor.color.float32[0] = colorInfo.fClearColor[0]; in init() 260 vkClearColor.color.float32[1] = colorInfo.fClearColor[1]; in init() 261 vkClearColor.color.float32[2] = colorInfo.fClearColor[2]; in init() 262 vkClearColor.color.float32[3] = colorInfo.fClearColor[3]; in init() 340 const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, in set() argument 389 return this->init(colorInfo, resolveInfo, stencilInfo); in set()
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlOpsRenderPass.mm | 28 const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, 33 this->setupRenderPass(colorInfo, stencilInfo); 238 const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, 248 SkASSERT(colorInfo.fLoadOp <= GrLoadOp::kDiscard); 257 SkASSERT(colorInfo.fStoreOp <= GrStoreOp::kDiscard); 264 const std::array<float, 4>& clearColor = colorInfo.fClearColor; 267 colorAttachment.loadAction = mtlLoadAction[static_cast<int>(colorInfo.fLoadOp)]; 268 colorAttachment.storeAction = mtlStoreAction[static_cast<int>(colorInfo.fStoreOp)]; 283 if (colorInfo.fLoadOp == GrLoadOp::kClear || stencilInfo.fLoadOp == GrLoadOp::kClear) {
|
D | GrMtlOpsRenderPass.h | 27 GrSurfaceOrigin origin, const GrOpsRenderPass::LoadAndStoreInfo& colorInfo, 63 void setupRenderPass(const GrOpsRenderPass::LoadAndStoreInfo& colorInfo,
|
/third_party/skia/experimental/graphite/src/mtl/ |
D | MtlCommandBuffer.mm | 91 auto& colorInfo = renderPassDesc.fColorAttachment; 92 if (colorInfo.fTextureProxy) { 94 const Texture* colorTexture = (const Texture*)colorInfo.fTextureProxy->texture(); 99 colorAttachment.loadAction = mtlLoadAction[static_cast<int>(colorInfo.fLoadOp)]; 100 colorAttachment.storeAction = mtlStoreAction[static_cast<int>(colorInfo.fStoreOp)];
|
/third_party/skia/src/gpu/mock/ |
D | GrMockOpsRenderPass.h | 19 LoadAndStoreInfo colorInfo) in GrMockOpsRenderPass() argument 22 , fColorLoadOp(colorInfo.fLoadOp) { in GrMockOpsRenderPass()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnOpsRenderPass.cpp | 44 const LoadAndStoreInfo& colorInfo, in GrDawnOpsRenderPass() argument 48 , fColorInfo(colorInfo) { in GrDawnOpsRenderPass() 50 wgpu::LoadOp colorOp = to_dawn_load_op(colorInfo.fLoadOp); in GrDawnOpsRenderPass()
|
/third_party/skia/gm/ |
D | clockwise.cpp | 272 GrColorType sdcColorType = sdc->colorInfo().colorType(); in onDraw() 282 sdc->colorInfo().alphaType(), in onDraw() 306 sdc->colorInfo().alphaType(), in onDraw()
|