Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrAuditTrail::AutoEnable Class Reference

#include <GrAuditTrail.h>

Public Member Functions

 AutoEnable (GrAuditTrail *auditTrail)
 
 ~AutoEnable ()
 

Detailed Description

Definition at line 35 of file GrAuditTrail.h.

Constructor & Destructor Documentation

◆ AutoEnable()

GrAuditTrail::AutoEnable::AutoEnable ( GrAuditTrail auditTrail)
inline

Definition at line 37 of file GrAuditTrail.h.

38 : fAuditTrail(auditTrail) {
39 SkASSERT(!fAuditTrail->isEnabled());
40 fAuditTrail->setEnabled(true);
41 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
void setEnabled(bool enabled)
Definition: GrAuditTrail.h:99
bool isEnabled()
Definition: GrAuditTrail.h:98

◆ ~AutoEnable()

GrAuditTrail::AutoEnable::~AutoEnable ( )
inline

Definition at line 43 of file GrAuditTrail.h.

43 {
44 SkASSERT(fAuditTrail->isEnabled());
45 fAuditTrail->setEnabled(false);
46 }

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