Home
last modified time | relevance | path

Searched refs:colorInfo (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/skia/src/gpu/
DSurfaceContext.cpp87 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 …]
DSurfaceFillContext.h108 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()
DGrImageInfo.h20 : 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
DBaseDevice.cpp54 SkColorType colorType = GrColorTypeToSkColorType(sc->colorInfo().colorType()); in MakeInfo()
58 sc->colorInfo().refColorSpace()); in MakeInfo()
DGrPixmap.h18 const GrColorInfo& colorInfo() const { return fInfo.colorInfo(); } in colorInfo() function
/third_party/skia/include/core/
DSkImageInfo.h328 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/
DDevice.cpp88 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 …]
DDevice_drawTexture.cpp356 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 …]
DSurfaceFillContext_v1.cpp43 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/
DCommandBuffer.cpp30 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/
Dgmverifier.cpp62 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()
Dgmverifier.h100 static SkBitmap RenderGoldBmp(skiagm::GM* gm, const SkColorInfo& colorInfo);
175 VerifierResult verifyAll(const SkColorInfo& colorInfo, const SkBitmap& actual);
/third_party/skia/tests/
DEGLImageTest.cpp154 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()
DSwizzlerTest.cpp82 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/
DSkBlenderBase.h37 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,
DSkRuntimeEffect.cpp845 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/
DSkImage_GpuBase.cpp115 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()
DSkImage_Gpu.cpp190 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/
DGrVkOpsRenderPass.cpp223 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/
DGrMtlOpsRenderPass.mm28 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) {
DGrMtlOpsRenderPass.h27 GrSurfaceOrigin origin, const GrOpsRenderPass::LoadAndStoreInfo& colorInfo,
63 void setupRenderPass(const GrOpsRenderPass::LoadAndStoreInfo& colorInfo,
/third_party/skia/experimental/graphite/src/mtl/
DMtlCommandBuffer.mm91 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/
DGrMockOpsRenderPass.h19 LoadAndStoreInfo colorInfo) in GrMockOpsRenderPass() argument
22 , fColorLoadOp(colorInfo.fLoadOp) { in GrMockOpsRenderPass()
/third_party/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.cpp44 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/
Dclockwise.cpp272 GrColorType sdcColorType = sdc->colorInfo().colorType(); in onDraw()
282 sdc->colorInfo().alphaType(), in onDraw()
306 sdc->colorInfo().alphaType(), in onDraw()

1234