Home
last modified time | relevance | path

Searched refs:atlas (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/flutter/skia/third_party/externals/imgui/misc/freetype/
Dimgui_freetype.cpp280 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 …]
Dimgui_freetype.h30 IMGUI_API bool BuildFontAtlas(ImFontAtlas* atlas, unsigned int extra_flags = 0);
/third_party/skia/third_party/externals/imgui/misc/freetype/
Dimgui_freetype.cpp389 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 …]
Dimgui_freetype.h48 …ImFontAtlas* atlas, unsigned int flags = 0) { atlas->FontBuilderIO = GetBuilderForFreeType(); atla…
/third_party/flutter/skia/tests/
DDrawOpAtlasTest.cpp79 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/skia/tests/
DDrawOpAtlasTest.cpp81 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/src/gpu/ccpr/
DGrCCPerFlushResources.cpp540 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 …]
DGrCCDrawPathsOp.cpp385 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()
/third_party/skia/third_party/externals/imgui/
Dimgui_draw.cpp2337 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/
DSampleLitAtlas.cpp223 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 …]
DSampleShip.cpp25 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()
DSampleAtlas.cpp20 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/
Dimgui_draw.cpp1774 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/minimp3/player/
Dnuklear_sdl_gl3.h20 NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas);
66 struct nk_font_atlas atlas; member
323 nk_sdl_font_stash_begin(struct nk_font_atlas **atlas) in nk_sdl_font_stash_begin() argument
325 nk_font_atlas_init_default(&sdl.atlas); in nk_sdl_font_stash_begin()
326 nk_font_atlas_begin(&sdl.atlas); in nk_sdl_font_stash_begin()
327 *atlas = &sdl.atlas; in nk_sdl_font_stash_begin()
334 image = nk_font_atlas_bake(&sdl.atlas, &w, &h, NK_FONT_ATLAS_RGBA32); in nk_sdl_font_stash_end()
336 nk_font_atlas_end(&sdl.atlas, nk_handle_id((int)sdl.ogl.font_tex), &sdl.ogl.null); in nk_sdl_font_stash_end()
337 if (sdl.atlas.default_font) in nk_sdl_font_stash_end()
338 nk_style_set_font(&sdl.ctx, &sdl.atlas.default_font->handle); in nk_sdl_font_stash_end()
[all …]
Dplayer.cpp122 struct nk_font_atlas *atlas; in init() local
125 nk_sdl_font_stash_begin(&atlas); in init()
126atlas->default_font = nk_font_atlas_add_from_memory(atlas, FreeSans, FreeSansLen, 20, &fconfig);; in init()
Dnuklear.h2610 NK_API struct nk_font* nk_font_atlas_add_from_memory(struct nk_font_atlas *atlas, void *memory, nk_…
2612 NK_API struct nk_font* nk_font_atlas_add_from_file(struct nk_font_atlas *atlas, const char *file_pa…
2619 NK_API void nk_font_atlas_cleanup(struct nk_font_atlas *atlas);
11684 const struct nk_baked_font *baked_font, nk_handle atlas)
11698 font->texture = atlas;
12034 nk_font_atlas_init_default(struct nk_font_atlas *atlas)
12036 NK_ASSERT(atlas);
12037 if (!atlas) return;
12038 nk_zero_struct(*atlas);
12039 atlas->temporary.userdata.ptr = 0;
[all …]
/third_party/flutter/skia/tools/gpu/atlastext/
DGLTestAtlasTextRenderer.cpp292 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/
DImGuiLayer.cpp25 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/
DSampleShip.cpp26 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()
DSampleAtlas.cpp22 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/
DGrSmallPathRenderer.cpp238 GrDrawOpAtlas* atlas, in Make() argument
244 atlas, shapeCache, shapeList, gammaCorrect, in Make()
249 const SkMatrix& viewMatrix, GrDrawOpAtlas* atlas, ShapeCache* shapeCache, in SmallPathOp() argument
268 fAtlas = atlas; in SmallPathOp()
498 bool addToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, GrDrawOpAtlas* atlas, in addToAtlas() argument
504 GrDrawOpAtlas::ErrorCode code = atlas->addToAtlas(resourceProvider, id, in addToAtlas()
514 code = atlas->addToAtlas(resourceProvider, id, uploadTarget, width, height, in addToAtlas()
522 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addDFPathToAtlas() argument
612 if (!this->addToAtlas(target, flushInfo, atlas, in addDFPathToAtlas()
649 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addBMPathToAtlas() argument
[all …]
/third_party/skia/gm/
Druntimecolorfilter.cpp128 auto atlas = surf->makeImageSnapshot(); variable
153 paint.setShader(useShader ? atlas->makeShader(SkSamplingOptions{}) : nullptr); in __anon778fb2fb0202()
170 canvas->drawAtlas(atlas.get(), in __anon778fb2fb0402()
Ddrawatlascolor.cpp86 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/
Ddrawatlascolor.cpp86 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/
DSkDraw_atlas.cpp44 void SkDraw::drawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect textures[], in drawAtlas() argument
46 sk_sp<SkShader> atlasShader = atlas->makeShader(); in drawAtlas()

12345