Flutter Engine
The Flutter Engine
Public Member Functions | Friends | List of all members
sk_gpu_test::ContextInfo Class Reference

#include <GrContextFactory.h>

Public Member Functions

 ContextInfo ()=default
 
 ContextInfo (const ContextInfo &)=default
 
ContextInfooperator= (const ContextInfo &)=default
 
skgpu::ContextType type () const
 
GrBackendApi backend () const
 
GrDirectContextdirectContext () const
 
TestContexttestContext () const
 
const GrContextOptionsoptions () const
 

Friends

class GrContextFactory
 

Detailed Description

Definition at line 102 of file GrContextFactory.h.

Constructor & Destructor Documentation

◆ ContextInfo() [1/2]

sk_gpu_test::ContextInfo::ContextInfo ( )
default

◆ ContextInfo() [2/2]

sk_gpu_test::ContextInfo::ContextInfo ( const ContextInfo )
default

Member Function Documentation

◆ backend()

GrBackendApi sk_gpu_test::ContextInfo::backend ( ) const
inline

Definition at line 109 of file GrContextFactory.h.

109{ return skgpu::ganesh::ContextTypeBackend(fType); }
GrBackendApi ContextTypeBackend(skgpu::ContextType type)
Definition: ContextType.cpp:92

◆ directContext()

GrDirectContext * sk_gpu_test::ContextInfo::directContext ( ) const
inline

Definition at line 111 of file GrContextFactory.h.

111{ return fContext; }

◆ operator=()

ContextInfo & sk_gpu_test::ContextInfo::operator= ( const ContextInfo )
default

◆ options()

const GrContextOptions & sk_gpu_test::ContextInfo::options ( ) const
inline

Definition at line 121 of file GrContextFactory.h.

121{ return fOptions; }

◆ testContext()

TestContext * sk_gpu_test::ContextInfo::testContext ( ) const
inline

Definition at line 112 of file GrContextFactory.h.

112{ return fTestContext; }

◆ type()

skgpu::ContextType sk_gpu_test::ContextInfo::type ( ) const
inline

Definition at line 108 of file GrContextFactory.h.

108{ return fType; }

Friends And Related Function Documentation

◆ GrContextFactory

friend class GrContextFactory
friend

Definition at line 136 of file GrContextFactory.h.


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