Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/text/gpu/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  Glyph.h   Sprache: C

 
/*
 * Copyright 2010 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef sktext_gpu_Glyph_DEFINED
#define sktext_gpu_Glyph_DEFINED

#include "src/core/SkGlyph.h"
#include "src/core/SkMask.h"
#include "src/gpu/AtlasTypes.h"

namespace sktext::gpu {

class Glyph {
public:
    static skgpu::MaskFormat FormatFromSkGlyph(SkMask::Format format) {
        switch (format) {
            case SkMask::kBW_Format:
            case SkMask::kSDF_Format:
                // fall through to kA8 -- we store BW and SDF glyphs in our 8-bit cache
            case SkMask::kA8_Format:
                return skgpu::MaskFormat::kA8;
            case SkMask::k3D_Format:
                return skgpu::MaskFormat::kA8; // ignore the mul and add planes, just use the mask
            case SkMask::kLCD16_Format:
                return skgpu::MaskFormat::kA565;
            case SkMask::kARGB32_Format:
                return skgpu::MaskFormat::kARGB;
        }

        SkUNREACHABLE;
    }

    Glyph(SkPackedGlyphID packedGlyphID) : fPackedID(packedGlyphID) {}

    const SkPackedGlyphID       fPackedID;
    skgpu::AtlasLocator         fAtlasLocator;
};

}  // namespace sktext::gpu

#endif  // sktext_gpu_Glyph_DEFINED

Messung V0.5
C=99 H=96 G=97

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.