Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
AutoFTAccess Class Reference

Public Member Functions

 AutoFTAccess (const SkTypeface_FreeType *tf)
 
 ~AutoFTAccess ()
 
FT_Face face ()
 

Detailed Description

Definition at line 421 of file SkFontHost_FreeType.cpp.

Constructor & Destructor Documentation

◆ AutoFTAccess()

AutoFTAccess::AutoFTAccess ( const SkTypeface_FreeType tf)
inline

Definition at line 423 of file SkFontHost_FreeType.cpp.

423 : fFaceRec(nullptr) {
424 f_t_mutex().acquire();
425 fFaceRec = tf->getFaceRec();
426 }
static SkMutex & f_t_mutex()
FaceRec * getFaceRec() const

◆ ~AutoFTAccess()

AutoFTAccess::~AutoFTAccess ( )
inline

Definition at line 428 of file SkFontHost_FreeType.cpp.

428 {
429 f_t_mutex().release();
430 }

Member Function Documentation

◆ face()

FT_Face AutoFTAccess::face ( )
inline

Definition at line 432 of file SkFontHost_FreeType.cpp.

432{ return fFaceRec ? fFaceRec->fFace.get() : nullptr; }

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