#include <DrawAtlas.h>
Definition at line 270 of file DrawAtlas.h.
◆ DrawAtlasConfig()
skgpu::graphite::DrawAtlasConfig::DrawAtlasConfig |
( |
int |
maxTextureSize, |
|
|
size_t |
maxBytes |
|
) |
| |
Definition at line 533 of file DrawAtlas.cpp.
533 {
534 static const SkISize kARGBDimensions[] = {
535 {256, 256},
536 {512, 256},
537 {512, 512},
538 {1024, 512},
539 {1024, 1024},
540 {2048, 1024},
541 };
542
543
544 maxBytes >>= 18;
545
546 int index = maxBytes > 0
548 : 0;
549
552 fARGBDimensions.
set(std::min<int>(kARGBDimensions[index].
width(), maxTextureSize),
553 std::min<int>(kARGBDimensions[index].
height(), maxTextureSize));
554 fMaxTextureSize = std::min<int>(maxTextureSize, kMaxAtlasDim);
555}
static int SkPrevLog2(uint32_t value)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
void set(int32_t w, int32_t h)
◆ atlasDimensions()
Definition at line 557 of file DrawAtlas.cpp.
557 {
559
560 return { std::min<int>(2 * fARGBDimensions.
width(), fMaxTextureSize),
561 std::min<int>(2 * fARGBDimensions.
height(), fMaxTextureSize) };
562 } else {
563 return fARGBDimensions;
564 }
565}
constexpr int32_t width() const
constexpr int32_t height() const
◆ plotDimensions()
Definition at line 567 of file DrawAtlas.cpp.
567 {
570
571
572
573
574
575
578
579 return { plotWidth, plotHeight };
580 } else {
581
582 return { 256, 256 };
583 }
584}
SkISize atlasDimensions(MaskFormat type) const
The documentation for this class was generated from the following files: