Home
last modified time | relevance | path

Searched refs:maskFormat (Results 1 – 24 of 24) sorted by relevance

/external/skqp/src/gpu/text/
DGrTextBlobVertexRegenerator.cpp152 if (kARGB_GrMaskFormat != fSubRun->maskFormat() && fSubRun->color() != color) { in VertexRegenerator()
186 auto vertexStride = GetVertexStride(fSubRun->maskFormat(), hasW); in doRegen()
204 SkASSERT(glyph && glyph->fMaskFormat == fSubRun->maskFormat()); in doRegen()
210 fLazyCache->get(), fSubRun->maskFormat(), in doRegen()
250 : fFullAtlasManager->atlasGeneration(fSubRun->maskFormat())); in doRegen()
255 fSubRun->maskFormat()); in doRegen()
261 uint64_t currentAtlasGen = fFullAtlasManager->atlasGeneration(fSubRun->maskFormat()); in regenerate()
276 auto vertexStride = GetVertexStride(fSubRun->maskFormat(), hasW); in regenerate()
287 fSubRun->maskFormat()); in regenerate()
DGrTextBlob.cpp171 GrMaskFormat format = info.maskFormat(); in makeOp()
174 target->makeGrPaint(info.maskFormat(), paint, viewMatrix, &grPaint); in makeOp()
193 geometry.fColor = info.maskFormat() == kARGB_GrMaskFormat ? SK_PMColor4fWHITE : filteredColor; in makeOp()
449 SkASSERT_RELEASE(lSubRun.maskFormat() == rSubRun.maskFormat()); in AssertEqual()
DGrTextBlob.h156 static size_t GetVertexStride(GrMaskFormat maskFormat, bool hasWCoord) { in GetVertexStride() argument
157 switch (maskFormat) { in GetVertexStride()
309 GrMaskFormat maskFormat() const { return fMaskFormat; } in maskFormat() function
/external/skqp/src/ports/
DSkFontHost_FreeType_common.cpp567 SkMask::Format maskFormat = static_cast<SkMask::Format>(glyph.fMaskFormat); in generateGlyphImage() local
575 SkASSERT(SkMask::kBW_Format == maskFormat || in generateGlyphImage()
576 SkMask::kA8_Format == maskFormat || in generateGlyphImage()
577 SkMask::kARGB32_Format == maskFormat || in generateGlyphImage()
578 SkMask::kLCD16_Format == maskFormat); in generateGlyphImage()
610 if (SkMask::kBW_Format != maskFormat && SkMask::kLCD16_Format != maskFormat) { in generateGlyphImage()
616 SkColorType_for_SkMaskFormat(maskFormat), in generateGlyphImage()
619 if (SkMask::kBW_Format == maskFormat || SkMask::kLCD16_Format == maskFormat) { in generateGlyphImage()
649 if (SkMask::kBW_Format == maskFormat) { in generateGlyphImage()
654 } else if (SkMask::kLCD16_Format == maskFormat) { in generateGlyphImage()
/external/skqp/src/gpu/ops/
DGrAtlasTextOp.cpp29 GrMaskFormat maskFormat, in MakeBitmap() argument
36 switch (maskFormat) { in MakeBitmap()
287 GrMaskFormat maskFormat = this->maskFormat(); in onPrepareDraws() local
290 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in onPrepareDraws()
321 samplerState, maskFormat, localMatrix, vmPerspective); in onPrepareDraws()
400 GrMaskFormat maskFormat = this->maskFormat(); in flush() local
403 const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(maskFormat, &numActiveProxies); in flush()
DGrAtlasTextOp.h45 GrMaskFormat maskFormat,
118 GrMaskFormat maskFormat() const { in maskFormat() function
/external/skia/src/gpu/ops/
DGrAtlasTextOp.cpp212 GrMaskFormat maskFormat = this->maskFormat(); in onPrepareDraws() local
215 const GrSurfaceProxyView* views = atlasManager->getViews(maskFormat, &numActiveViews); in onPrepareDraws()
249 false, views, numActiveViews, filter, maskFormat, localMatrix, fHasPerspective); in onPrepareDraws()
345 GrMaskFormat maskFormat = this->maskFormat(); in createDrawForGeneratedGlyphs() local
348 const GrSurfaceProxyView* views = atlasManager->getViews(maskFormat, &numActiveViews); in createDrawForGeneratedGlyphs()
DGrAtlasTextOp.h199 GrMaskFormat maskFormat() const { in maskFormat() function
/external/skia/tests/
DDrawOpAtlasTest.cpp247 GrMaskFormat maskFormat, SkISize expectedDimensions, in test_atlas_config() argument
250 REPORTER_ASSERT(reporter, config.atlasDimensions(maskFormat) == expectedDimensions); in test_atlas_config()
251 REPORTER_ASSERT(reporter, config.plotDimensions(maskFormat) == expectedPlotDimensions); in test_atlas_config()
/external/skqp/tests/
DDrawOpAtlasTest.cpp237 GrMaskFormat maskFormat, SkISize expectedDimensions, in test_atlas_config() argument
240 REPORTER_ASSERT(reporter, config.atlasDimensions(maskFormat) == expectedDimensions); in test_atlas_config()
241 REPORTER_ASSERT(reporter, config.plotDimensions(maskFormat) == expectedPlotDimensions); in test_atlas_config()
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp1116 SkMask::Format maskFormat = static_cast<SkMask::Format>(glyph.fMaskFormat); in generateGlyphImage() local
1124 SkASSERT(SkMask::kBW_Format == maskFormat || in generateGlyphImage()
1125 SkMask::kA8_Format == maskFormat || in generateGlyphImage()
1126 SkMask::kARGB32_Format == maskFormat || in generateGlyphImage()
1127 SkMask::kLCD16_Format == maskFormat); in generateGlyphImage()
1158 if (SkMask::kBW_Format != maskFormat && SkMask::kLCD16_Format != maskFormat) { in generateGlyphImage()
1164 SkColorType_for_SkMaskFormat(maskFormat), in generateGlyphImage()
1167 if (SkMask::kBW_Format == maskFormat || SkMask::kLCD16_Format == maskFormat) { in generateGlyphImage()
1188 if (SkMask::kBW_Format == maskFormat) { in generateGlyphImage()
1192 } else if (SkMask::kLCD16_Format == maskFormat) { in generateGlyphImage()
DSkScalerContext_mac_ct.cpp168 if (SkMask::kBW_Format != glyph.maskFormat()) { in getCG()
174 if (!generateA8FromLCD && SkMask::kA8_Format == glyph.maskFormat()) { in getCG()
182 if (SkMask::kARGB32_Format == glyph.maskFormat()) { in getCG()
/external/skia/src/gpu/text/
DGrAtlasManager.cpp66 GrMaskFormat grMaskFormat = GrGlyph::FormatFromSkGlyph(glyph.maskFormat()); in get_packed_glyph_image()
70 if (glyph.maskFormat() != SkMask::kBW_Format) { in get_packed_glyph_image()
152 GrMaskFormat glyphFormat = GrGlyph::FormatFromSkGlyph(skGlyph.maskFormat()); in addGlyphToAtlas()
DGrTextBlob.cpp321 GrMaskFormat maskFormat,
368 GrMaskFormat maskFormat, in regenerateAtlas() argument
375 uint64_t currentAtlasGen = atlasManager->atlasGeneration(maskFormat); in regenerateAtlas()
395 if (!atlasManager->hasGlyph(maskFormat, grGlyph)) { in regenerateAtlas()
406 &fBulkUseToken, maskFormat, grGlyph, in regenerateAtlas()
415 fAtlasGeneration = atlasManager->atlasGeneration(maskFormat); in regenerateAtlas()
426 maskFormat); in regenerateAtlas()
1577 GrMaskFormat format = GrGlyph::FormatFromSkGlyph(glyph->maskFormat()); in addMultiMaskFormat()
1581 GrMaskFormat nextFormat = GrGlyph::FormatFromSkGlyph(glyph->maskFormat()); in addMultiMaskFormat()
2302 GrMaskFormat format = GrGlyph::FormatFromSkGlyph(glyph->maskFormat()); in processDeviceMasks()
[all …]
/external/skia/src/core/
DSkStrikeForGPU.cpp19 return FitsInAtlas(glyph) && glyph.maskFormat() == SkMask::kSDF_Format; in CanDrawAsSDFT()
DSkGlyph.cpp69 return format_alignment(this->maskFormat()); in formatAlignment()
84 SkDEBUGCODE(SkMask::Format oldFormat = this->maskFormat()); in setImage()
87 SkASSERT(oldFormat == this->maskFormat()); in setImage()
DSkRemoteGlyphCache.cpp386 serializer->write<uint8_t>(glyph.maskFormat()); in writeGlyph()
951 uint8_t maskFormat; in ReadGlyph() local
952 if (!deserializer->read<uint8_t>(&maskFormat)) return false; in ReadGlyph()
953 if (!SkMask::IsValidFormat(maskFormat)) return false; in ReadGlyph()
954 glyph->fMaskFormat = static_cast<SkMask::Format>(maskFormat); in ReadGlyph()
DSkGlyph.h304 SkMask::Format maskFormat() const { return fMaskFormat; } in maskFormat() function
/external/skqp/src/gpu/effects/
DGrBitmapTextGeoProc.cpp72 if (btgp.maskFormat() == kARGB_GrMaskFormat) { in onEmitCode()
105 key |= btgp.maskFormat() << 1; in GenKey()
DGrBitmapTextGeoProc.h44 GrMaskFormat maskFormat() const { return fMaskFormat; } in maskFormat() function
/external/skia/src/gpu/effects/
DGrBitmapTextGeoProc.cpp70 if (btgp.maskFormat() == kARGB_GrMaskFormat) { in onEmitCode()
107 b->addBits(2, btgp.maskFormat(), "maskFormat"); in GenKey()
DGrBitmapTextGeoProc.h51 GrMaskFormat maskFormat() const { return fMaskFormat; } in maskFormat() function
/external/skqp/src/core/
DSkGlyphRunPainter.cpp608 auto maskFormat = this->maskFormat(); in appendGlyph() local
609 size_t vertexStride = GetVertexStride(maskFormat, hasW); in appendGlyph()
647 if (fInitialized && subRun->maskFormat() != format) { in switchSubRunIfNeededAndAppendGlyph()
/external/skqp/src/gpu/
DGrRenderTargetContext.cpp79 void makeGrPaint(GrMaskFormat maskFormat, const SkPaint& skPaint, const SkMatrix& viewMatrix, in makeGrPaint() argument
83 if (kARGB_GrMaskFormat == maskFormat) { in makeGrPaint()