Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkDebugfStream Class Referencefinal

#include <SkStreamPriv.h>

Inheritance diagram for SkDebugfStream:
SkWStream

Public Member Functions

bool write (const void *buffer, size_t size) override
 
size_t bytesWritten () const override
 
- Public Member Functions inherited from SkWStream
virtual ~SkWStream ()
 
 SkWStream ()
 
virtual void flush ()
 
bool write8 (U8CPU value)
 
bool write16 (U16CPU value)
 
bool write32 (uint32_t v)
 
bool writeText (const char text[])
 
bool newline ()
 
bool writeDecAsText (int32_t)
 
bool writeBigDecAsText (int64_t, int minDigits=0)
 
bool writeHexAsText (uint32_t, int minDigits=0)
 
bool writeScalarAsText (SkScalar)
 
bool writeBool (bool v)
 
bool writeScalar (SkScalar)
 
bool writePackedUInt (size_t)
 
bool writeStream (SkStream *input, size_t length)
 

Additional Inherited Members

- Static Public Member Functions inherited from SkWStream
static int SizeOfPackedUInt (size_t value)
 

Detailed Description

A SkWStream that writes all output to SkDebugf, for debugging purposes.

Definition at line 34 of file SkStreamPriv.h.

Member Function Documentation

◆ bytesWritten()

size_t SkDebugfStream::bytesWritten ( ) const
overridevirtual

Implements SkWStream.

Definition at line 904 of file SkStream.cpp.

904 {
905 return fBytesWritten;
906}

◆ write()

bool SkDebugfStream::write ( const void *  buffer,
size_t  size 
)
overridevirtual

Called to write bytes to a SkWStream. Returns true on success

Parameters
bufferthe address of at least size bytes to be written to the stream
sizeThe number of bytes in buffer to write to the stream
Returns
true on success

Implements SkWStream.

Definition at line 898 of file SkStream.cpp.

898 {
899 SkDebugf("%.*s", (int)size, (const char*)buffer);
900 fBytesWritten += size;
901 return true;
902}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static const uint8_t buffer[]
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
Definition switches.h:259

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