/third_party/flutter/skia/third_party/externals/imgui/misc/freetype/ |
D | imgui_freetype.cpp | 280 bool ImFontAtlasBuildWithFreeType(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_fla… in ImFontAtlasBuildWithFreeType() argument 282 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithFreeType() 284 ImFontAtlasBuildRegisterDefaultCustomRects(atlas); in ImFontAtlasBuildWithFreeType() 287 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithFreeType() 288 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithFreeType() 289 atlas->TexUvScale = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithFreeType() 290 atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithFreeType() 291 atlas->ClearTexData(); in ImFontAtlasBuildWithFreeType() 296 src_tmp_array.resize(atlas->ConfigData.Size); in ImFontAtlasBuildWithFreeType() 297 dst_tmp_array.resize(atlas->Fonts.Size); in ImFontAtlasBuildWithFreeType() [all …]
|
D | imgui_freetype.h | 30 IMGUI_API bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int extra_flags = 0);
|
/third_party/skia/third_party/externals/imgui/misc/freetype/ |
D | imgui_freetype.cpp | 389 bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, unsigned int extra_f… in ImFontAtlasBuildWithFreeTypeEx() argument 391 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithFreeTypeEx() 393 ImFontAtlasBuildInit(atlas); in ImFontAtlasBuildWithFreeTypeEx() 396 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithFreeTypeEx() 397 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithFreeTypeEx() 398 atlas->TexUvScale = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithFreeTypeEx() 399 atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithFreeTypeEx() 400 atlas->ClearTexData(); in ImFontAtlasBuildWithFreeTypeEx() 406 src_tmp_array.resize(atlas->ConfigData.Size); in ImFontAtlasBuildWithFreeTypeEx() 407 dst_tmp_array.resize(atlas->Fonts.Size); in ImFontAtlasBuildWithFreeTypeEx() [all …]
|
D | imgui_freetype.h | 48 …ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atla…
|
/third_party/skia/tests/ |
D | DrawOpAtlasTest.cpp | 81 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check() argument 83 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages()); in check() 84 REPORTER_ASSERT(r, expectedMax == atlas->maxPages()); in check() 85 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly()); in check() 113 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot() argument 125 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize, in fill_plot() 149 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 158 check(reporter, atlas.get(), 0, 4, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 164 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 166 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/third_party/flutter/skia/tests/ |
D | DrawOpAtlasTest.cpp | 79 static void check(skiatest::Reporter* r, GrDrawOpAtlas* atlas, in check() argument 81 REPORTER_ASSERT(r, expectedActive == atlas->numActivePages()); in check() 82 REPORTER_ASSERT(r, expectedMax == atlas->maxPages()); in check() 83 REPORTER_ASSERT(r, expectedAlloced == atlas->numAllocated_TestingOnly()); in check() 111 static bool fill_plot(GrDrawOpAtlas* atlas, in fill_plot() argument 124 code = atlas->addToAtlas(resourceProvider, atlasID, target, kPlotSize, kPlotSize, in fill_plot() 145 std::unique_ptr<GrDrawOpAtlas> atlas = GrDrawOpAtlas::Make( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 153 check(reporter, atlas.get(), 0, 4, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 158 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasIDs[i], i*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 160 check(reporter, atlas.get(), 1, 4, 1); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrCCPerFlushResources.cpp | 540 for (GrCCAtlasStack::Iter atlas(fCopyAtlasStack); atlas.next();) { in finalize() local 541 int endCopyRange = atlas->getFillBatchID(); in finalize() 544 sk_sp<GrRenderTargetContext> rtc = atlas->makeRenderTargetContext(onFlushRP); in finalize() 551 baseCopyInstance, endCopyInstance, atlas->drawBounds()); in finalize() 564 for (GrCCAtlasStack::Iter atlas(fRenderedAtlasStack); atlas.next();) { in finalize() local 569 if (texture && atlas->currentHeight() == texture->height() && in finalize() 570 atlas->currentWidth() == texture->width()) { in finalize() 576 if (auto rtc = atlas->makeRenderTargetContext(onFlushRP, std::move(backingTexture))) { in finalize() 580 rtc->surfPriv().getContext(), sk_ref_sp(this), atlas->getFillBatchID(), in finalize() 581 atlas->getStrokeBatchID(), baseStencilResolveInstance, in finalize() [all …]
|
D | GrCCDrawPathsOp.cpp | 385 if (auto atlas = resources->renderShapeInAtlas( in setupResources() local 390 op->recordInstance(coverageMode, atlas->textureProxy(), resources->nextPathInstanceIdx()); in setupResources() 399 onFlushRP, atlas, devToAtlasOffset, octoBounds, devIBounds, fCachedMaskShift); in setupResources() 438 const GrTextureProxy* atlas = range.fAtlasProxy; in onExecute() local 439 SkASSERT(atlas->isInstantiated()); in onExecute() 442 range.fCoverageMode, atlas->peekTexture(), atlas->textureSwizzle(), atlas->origin(), in onExecute()
|
D | GrCCPathCache.cpp | 357 GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, const SkIVector& atlasOffset, in setCoverageCountAtlas() argument 368 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in setCoverageCountAtlas() 379 GrCCPathCache* pathCache, GrOnFlushResourceProvider* onFlushRP, GrCCAtlas* atlas, in upgradeToLiteralCoverageAtlas() argument 388 fCachedAtlas = atlas->refOrMakeCachedAtlas(onFlushRP); in upgradeToLiteralCoverageAtlas()
|
/third_party/skia/third_party/externals/imgui/ |
D | imgui_draw.cpp | 2337 static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) in ImFontAtlasBuildWithStbTruetype() argument 2339 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithStbTruetype() 2341 ImFontAtlasBuildInit(atlas); in ImFontAtlasBuildWithStbTruetype() 2344 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithStbTruetype() 2345 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithStbTruetype() 2346 atlas->TexUvScale = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 2347 atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 2348 atlas->ClearTexData(); in ImFontAtlasBuildWithStbTruetype() 2353 src_tmp_array.resize(atlas->ConfigData.Size); in ImFontAtlasBuildWithStbTruetype() 2354 dst_tmp_array.resize(atlas->Fonts.Size); in ImFontAtlasBuildWithStbTruetype() [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleLitAtlas.cpp | 223 SkBitmap atlas; in MakeAtlas() local 224 atlas.allocN32Pixels(kAtlasWidth, kAtlasHeight); in MakeAtlas() 229 *atlas.getAddr32(x, y) = SK_ColorTRANSPARENT; in MakeAtlas() 232 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0x88, 0x88, 0xFF); in MakeAtlas() 245 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0); in MakeAtlas() 247 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0xFF, 0, 0); in MakeAtlas() 253 &atlas, SkIRect::MakeXYWH(kNormXOff, kBigYOff, kBigSize, kBigSize)); in MakeAtlas() 260 *atlas.getAddr32(x, y) = SkPackARGB32(0xFF, 0, 0xFF, 0); in MakeAtlas() 265 &atlas, SkIRect::MakeXYWH(kNormXOff, kMedYOff, kMedSize, kMedSize)); in MakeAtlas() 277 *atlas.getAddr32(x, y) = SkPreMultiplyARGB(0, 0, 0, 0); in MakeAtlas() [all …]
|
D | SampleShip.cpp | 25 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument 28 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, cull, paint); in draw_atlas() 31 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument 40 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint, in draw_atlas_sim()
|
D | SampleAtlas.cpp | 20 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument 23 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, cull, paint); in draw_atlas() 26 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument 35 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), paint, in draw_atlas_sim()
|
/third_party/flutter/skia/third_party/externals/imgui/ |
D | imgui_draw.cpp | 1774 bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) in ImFontAtlasBuildWithStbTruetype() argument 1776 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithStbTruetype() 1778 ImFontAtlasBuildRegisterDefaultCustomRects(atlas); in ImFontAtlasBuildWithStbTruetype() 1781 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithStbTruetype() 1782 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithStbTruetype() 1783 atlas->TexUvScale = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 1784 atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 1785 atlas->ClearTexData(); in ImFontAtlasBuildWithStbTruetype() 1790 src_tmp_array.resize(atlas->ConfigData.Size); in ImFontAtlasBuildWithStbTruetype() 1791 dst_tmp_array.resize(atlas->Fonts.Size); in ImFontAtlasBuildWithStbTruetype() [all …]
|
/third_party/mesa3d/src/imgui/ |
D | imgui_draw.cpp | 1785 bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas) in ImFontAtlasBuildWithStbTruetype() argument 1787 IM_ASSERT(atlas->ConfigData.Size > 0); in ImFontAtlasBuildWithStbTruetype() 1789 ImFontAtlasBuildRegisterDefaultCustomRects(atlas); in ImFontAtlasBuildWithStbTruetype() 1792 atlas->TexID = (ImTextureID)NULL; in ImFontAtlasBuildWithStbTruetype() 1793 atlas->TexWidth = atlas->TexHeight = 0; in ImFontAtlasBuildWithStbTruetype() 1794 atlas->TexUvScale = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 1795 atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f); in ImFontAtlasBuildWithStbTruetype() 1796 atlas->ClearTexData(); in ImFontAtlasBuildWithStbTruetype() 1801 src_tmp_array.resize(atlas->ConfigData.Size); in ImFontAtlasBuildWithStbTruetype() 1802 dst_tmp_array.resize(atlas->Fonts.Size); in ImFontAtlasBuildWithStbTruetype() [all …]
|
/third_party/flutter/skia/tools/gpu/atlastext/ |
D | GLTestAtlasTextRenderer.cpp | 292 AtlasTexture* atlas = new AtlasTexture; in createTexture() local 293 atlas->fID = id; in createTexture() 294 atlas->fFormat = format; in createTexture() 295 atlas->fWidth = width; in createTexture() 296 atlas->fHeight = height; in createTexture() 297 return atlas; in createTexture() 340 auto atlas = reinterpret_cast<const AtlasTexture*>(textureHandle); in drawSDFGlyphs() local 345 callgl(BindTexture, GR_GL_TEXTURE_2D, atlas->fID); in drawSDFGlyphs() 351 callgl(Uniform2f, fAtlasInvSizeLocation, 1.f / atlas->fWidth, 1.f / atlas->fHeight); in drawSDFGlyphs()
|
/third_party/skia/tools/viewer/ |
D | ImGuiLayer.cpp | 25 static void build_ImFontAtlas(ImFontAtlas& atlas, SkPaint& fontPaint) { in build_ImFontAtlas() argument 28 atlas.GetTexDataAsAlpha8(&pixels, &w, &h); in build_ImFontAtlas() 36 atlas.TexID = &fontPaint; in build_ImFontAtlas() 75 ImFontAtlas& atlas = *ImGui::GetIO().Fonts; in setScaleFactor() local 76 atlas.Clear(); in setScaleFactor() 79 atlas.AddFontDefault(&cfg)->DisplayOffset.y = scaleFactor; in setScaleFactor() 80 build_ImFontAtlas(atlas, fFontPaint); in setScaleFactor()
|
/third_party/skia/samplecode/ |
D | SampleShip.cpp | 26 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument 29 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, sampling, in draw_atlas() 33 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument 42 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
|
D | SampleAtlas.cpp | 22 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas() argument 25 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, in draw_atlas() 29 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[], in draw_atlas_sim() argument 38 canvas->drawImageRect(atlas, tex[i], tex[i].makeOffset(-tex[i].x(), -tex[i].y()), in draw_atlas_sim()
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrSmallPathRenderer.cpp | 240 GrDrawOpAtlas* atlas, in Make() argument 246 atlas, shapeCache, shapeList, gammaCorrect, in Make() 251 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache, in SmallPathOp() argument 270 fAtlas = atlas; in SmallPathOp() 500 bool addToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, GrDrawOpAtlas* atlas, in addToAtlas() argument 506 GrDrawOpAtlas::ErrorCode code = atlas->addToAtlas(resourceProvider, id, in addToAtlas() 516 code = atlas->addToAtlas(resourceProvider, id, uploadTarget, width, height, in addToAtlas() 524 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addDFPathToAtlas() argument 614 if (!this->addToAtlas(target, flushInfo, atlas, in addDFPathToAtlas() 651 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addBMPathToAtlas() argument [all …]
|
/third_party/skia/gm/ |
D | runtimecolorfilter.cpp | 128 auto atlas = surf->makeImageSnapshot(); variable 153 paint.setShader(useShader ? atlas->makeShader(SkSamplingOptions{}) : nullptr); in __anonbef478180202() 170 canvas->drawAtlas(atlas.get(), in __anonbef478180402()
|
D | drawatlascolor.cpp | 86 auto atlas = make_atlas(canvas, kAtlasSize); in onDraw() local 157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw() 161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
|
/third_party/flutter/skia/gm/ |
D | drawatlascolor.cpp | 86 auto atlas = make_atlas(canvas, kAtlasSize); in onDraw() local 157 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw() 161 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors, in onDraw()
|
/third_party/flutter/skia/src/core/ |
D | SkDraw_atlas.cpp | 44 void SkDraw::drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect textures[], in drawAtlas() argument 46 sk_sp<SkShader> atlasShader = atlas->makeShader(); in drawAtlas()
|
/third_party/flutter/skia/include/core/ |
D | SkCanvas.h | 2217 void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], 2240 void drawAtlas(const sk_sp<SkImage>& atlas, const SkRSXform xform[], const SkRect tex[], in drawAtlas() argument 2243 this->drawAtlas(atlas.get(), xform, tex, colors, count, mode, cullRect, paint); in drawAtlas() 2262 void drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect tex[], int count, in drawAtlas() argument 2264 this->drawAtlas(atlas, xform, tex, nullptr, count, SkBlendMode::kDst, cullRect, paint); in drawAtlas() 2283 void drawAtlas(const sk_sp<SkImage>& atlas, const SkRSXform xform[], const SkRect tex[], in drawAtlas() argument 2285 this->drawAtlas(atlas.get(), xform, tex, nullptr, count, SkBlendMode::kDst, in drawAtlas() 2469 virtual void onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect rect[],
|