Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::StringKeyBuilder Class Reference

#include <KeyBuilder.h>

Inheritance diagram for skgpu::StringKeyBuilder:
skgpu::KeyBuilder

Public Member Functions

 StringKeyBuilder (skia_private::TArray< uint32_t, true > *data)
 
void addBits (uint32_t numBits, uint32_t val, std::string_view label) override
 
void appendComment (const char *comment) override
 
SkString description () const
 
- Public Member Functions inherited from skgpu::KeyBuilder
 KeyBuilder (skia_private::TArray< uint32_t, true > *data)
 
virtual ~KeyBuilder ()
 
virtual void addBits (uint32_t numBits, uint32_t val, std::string_view label)
 
void addBytes (uint32_t numBytes, const void *data, std::string_view label)
 
void addBool (bool b, std::string_view label)
 
void add32 (uint32_t v, std::string_view label="unknown")
 
virtual void appendComment (const char *comment)
 
void flush ()
 

Detailed Description

Definition at line 80 of file KeyBuilder.h.

Constructor & Destructor Documentation

◆ StringKeyBuilder()

skgpu::StringKeyBuilder::StringKeyBuilder ( skia_private::TArray< uint32_t, true > *  data)
inline

Definition at line 82 of file KeyBuilder.h.

82: KeyBuilder(data) {}
KeyBuilder(skia_private::TArray< uint32_t, true > *data)
Definition: KeyBuilder.h:22
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Member Function Documentation

◆ addBits()

void skgpu::StringKeyBuilder::addBits ( uint32_t  numBits,
uint32_t  val,
std::string_view  label 
)
inlineoverridevirtual

Reimplemented from skgpu::KeyBuilder.

Definition at line 84 of file KeyBuilder.h.

84 {
85 KeyBuilder::addBits(numBits, val, label);
86 fDescription.appendf("%.*s: %u\n", (int)label.size(), label.data(), val);
87 }
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
Definition: SkString.cpp:550
virtual void addBits(uint32_t numBits, uint32_t val, std::string_view label)
Definition: KeyBuilder.h:29

◆ appendComment()

void skgpu::StringKeyBuilder::appendComment ( const char *  comment)
inlineoverridevirtual

Reimplemented from skgpu::KeyBuilder.

Definition at line 89 of file KeyBuilder.h.

89 {
90 fDescription.appendf("%s\n", comment);
91 }

◆ description()

SkString skgpu::StringKeyBuilder::description ( ) const
inline

Definition at line 93 of file KeyBuilder.h.

93{ return fDescription; }

The documentation for this class was generated from the following file: