Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CapturingShaderErrorHandler Class Reference
Inheritance diagram for CapturingShaderErrorHandler:
skgpu::ShaderErrorHandler

Public Member Functions

void compileError (const char *shader, const char *errors) override
 
void reset ()
 
- Public Member Functions inherited from skgpu::ShaderErrorHandler
virtual ~ShaderErrorHandler ()=default
 
virtual void compileError (const char *shader, const char *errors, bool shaderWasCached)
 

Public Attributes

TArray< SkStringfShaders
 
TArray< SkStringfErrors
 

Additional Inherited Members

- Protected Member Functions inherited from skgpu::ShaderErrorHandler
 ShaderErrorHandler ()=default
 
 ShaderErrorHandler (const ShaderErrorHandler &)=delete
 
ShaderErrorHandleroperator= (const ShaderErrorHandler &)=delete
 

Detailed Description

Definition at line 149 of file Viewer.cpp.

Member Function Documentation

◆ compileError()

void CapturingShaderErrorHandler::compileError ( const char *  shader,
const char *  errors 
)
inlineoverridevirtual

compileError(shader, errors) is kept for backward compatibility with older clients.

Reimplemented from skgpu::ShaderErrorHandler.

Definition at line 151 of file Viewer.cpp.

151 {
152 fShaders.push_back(SkString(shader));
153 fErrors.push_back(SkString(errors));
154 }
TArray< SkString > fErrors
Definition Viewer.cpp:162
TArray< SkString > fShaders
Definition Viewer.cpp:161

◆ reset()

void CapturingShaderErrorHandler::reset ( )
inline

Definition at line 156 of file Viewer.cpp.

156 {
157 fShaders.clear();
158 fErrors.clear();
159 }

Member Data Documentation

◆ fErrors

TArray<SkString> CapturingShaderErrorHandler::fErrors

Definition at line 162 of file Viewer.cpp.

◆ fShaders

TArray<SkString> CapturingShaderErrorHandler::fShaders

Definition at line 161 of file Viewer.cpp.


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